init: add workspace files
This commit is contained in:
14
world/obj/money/gongji.js
Normal file
14
world/obj/money/gongji.js
Normal file
@@ -0,0 +1,14 @@
|
||||
this.inherits(OBJ);
|
||||
this.set({
|
||||
name: "门派功绩",
|
||||
desc: "你对门派的贡献,可以在门派管理那里换取各种物资",
|
||||
unit: "点",
|
||||
value: 0,
|
||||
grade:3
|
||||
});
|
||||
this.on_receive = function (me) {
|
||||
if (!this.count) return false;
|
||||
me.add_temp('gongji', this.count);
|
||||
me.notify("你获得了" + UTIL.to_c(this.count) + "点<hiy>门派功绩</hiy>。");
|
||||
me.set_temp('last_sm', Date.now());
|
||||
}
|
||||
Reference in New Issue
Block a user