init: add workspace files
This commit is contained in:
16
world/obj/drug/xiongdan.js
Normal file
16
world/obj/drug/xiongdan.js
Normal file
@@ -0,0 +1,16 @@
|
||||
this.inherits(OBJ);
|
||||
this.set({
|
||||
unit: "块",
|
||||
name: "熊胆",
|
||||
grade: 1,
|
||||
desc: "一块新鲜的熊胆,还冒着热气",
|
||||
value: 1000
|
||||
});
|
||||
this.transable = true;
|
||||
this.on_use = function (me) {
|
||||
if (me.max_mp >= me.limit_mp + me.query_prop("limit_mp")) {
|
||||
return me.notify_fail("你觉得你的经脉容纳不了再多的内力了。");
|
||||
}
|
||||
me.send_room("<hiw>$N拿出一块熊胆,三下五除二得就吞了下去。</hiw>");
|
||||
me.add_maxmp(40);
|
||||
}
|
||||
Reference in New Issue
Block a user