init: add workspace files

This commit is contained in:
2026-05-26 16:41:20 +08:00
commit f4f2393f72
1041 changed files with 67405 additions and 0 deletions

25
os/item/money.js Normal file
View File

@@ -0,0 +1,25 @@
require("../item/obj.js");
MONEY = function () {
this.is_cash = false;
this.combined = true;
this.count = 1;
}
MONEY.inherits(OBJ);
MONEY.prototype.is_money = true;
MONEY.prototype.transable = true;
MONEY.prototype.create = function () {
this.create_id();
if (this.is_cash) {
this.color_name = "<hio>" + this.name + "</hio>";
} else {
if (this.value == 1)
this.color_name = "<yel>" + this.name + "</yel>";
else if (this.value == 100)
this.color_name = "<hiw>" + this.name + "</hiw>";
else
this.color_name = "<hiy>" + this.name + "</hiy>";
}
}