init: add workspace files
This commit is contained in:
11
world/obj/money/coin.js
Normal file
11
world/obj/money/coin.js
Normal file
@@ -0,0 +1,11 @@
|
||||
this.inherits(MONEY);
|
||||
this.set({
|
||||
name: "铜板",
|
||||
desc: "虽然少但也是钱",
|
||||
unit: "枚",
|
||||
value: 1,
|
||||
});
|
||||
|
||||
this.unit_name = function () {
|
||||
return UTIL.moneyToStr(this.count);
|
||||
}
|
||||
Reference in New Issue
Block a user