init: add workspace files
This commit is contained in:
23
world/map/wudao/south.js
Normal file
23
world/map/wudao/south.js
Normal file
@@ -0,0 +1,23 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "朱雀台"
|
||||
this.desc = "这里是武道塔顶部的北面平台,一座朱雀的雕塑凭空而立,传说中的四大守护神兽之一。";
|
||||
this.exits = { "north": "wudao/ding" };
|
||||
this.max_item_count = 1;
|
||||
this.is_shadow = true;
|
||||
this.no_relive = true;
|
||||
// this.add_action('biguan', '聚魂', function (me) {
|
||||
// WORLD.COMMANDS['wsxl'].enter(me);
|
||||
// });
|
||||
this.on_enter = function (me) {
|
||||
let npc = NPC.CLONE('pub/wudao_ss');
|
||||
npc.init_from(me, 3);
|
||||
|
||||
this.item_changed(npc, true);
|
||||
npc.do_kill(me);
|
||||
}
|
||||
|
||||
this.on_leave = function (me) {
|
||||
let npc = this.find_obj_bypath('pub/wudao_ss');
|
||||
if (npc) npc.destroy();
|
||||
me.remove_status('ss');
|
||||
}
|
||||
Reference in New Issue
Block a user