init: add workspace files
This commit is contained in:
15
world/area/map/leitai.js
Normal file
15
world/area/map/leitai.js
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
this.inherits(AREA);
|
||||
this.set({
|
||||
id: "letai",
|
||||
name: "擂台",
|
||||
room_path: "yz/leitai/"
|
||||
});
|
||||
this.map = [{ n: "擂台", id: "yz/leitai/leitai", p: [0, 0], exits: ["s1d"] },
|
||||
{ n: "雷台下", id: "yz/leitai/ltx", p: [0, 1] },
|
||||
];
|
||||
this.on_leave = function (me) {
|
||||
if (me.is_in('yz/leitai/leitai'))
|
||||
return me.notify_fail('结束比武后才可离开擂台。');
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user