init: add workspace files
This commit is contained in:
39
world/map/kezhan/fang1.js
Normal file
39
world/map/kezhan/fang1.js
Normal file
@@ -0,0 +1,39 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "人字号客房";
|
||||
this.desc = "这是客栈里的一间客房,房间不大,还算干净整洁,这里面很安静,你都听不到房间外面的声音。没有你的允许是没有人进来的,你在里面可以做任何事情,只要不打扰到别人。";
|
||||
this.exits = { "down": "yz/kedian" };
|
||||
this.max_item_count = 1;
|
||||
this.is_shadow = true;
|
||||
this.on_enter = function (me) {
|
||||
if (check_moveout(me)) {
|
||||
me.add_status({
|
||||
id: "room",
|
||||
duration: 0,
|
||||
desc: "你在客栈人字号客房,安安静静的是个练功的好地方",
|
||||
name: "人字号",
|
||||
prop: {
|
||||
study_per: 10,
|
||||
lianxi_per: 10,
|
||||
dazuo_per: 10
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
this.on_leave = function (me) {
|
||||
me.remove_status("room");
|
||||
}
|
||||
function check_moveout(me) {
|
||||
if (!me.query_temp("kezhan")) {
|
||||
me.moveto("yz/kedian", null, me.name + "走了下来。");
|
||||
me.send_room("店小二对$N说道:这位客官,你需要付钱才可以继续住店。");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
this.on_heart_beat = function () {
|
||||
for (let item of this.items) {
|
||||
if (item.hp > 0) {
|
||||
return check_moveout(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
40
world/map/kezhan/fang2.js
Normal file
40
world/map/kezhan/fang2.js
Normal file
@@ -0,0 +1,40 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "地字号客房";
|
||||
this.desc = "这是客栈里的一间客房,房间虽然不大,但是干净整洁。这里的老板为了吸引江湖人士,专门请高人打造了这些客房,这间地字号房间的位置,方位,摆设都是有讲究的,在这里练功会大有裨益。";
|
||||
this.exits = { "down": "yz/kedian" };
|
||||
|
||||
this.is_shadow = true;
|
||||
this.max_item_count = 1;
|
||||
this.on_enter = function (me) {
|
||||
if (check_moveout(me)) {
|
||||
me.add_status({
|
||||
id: "room",
|
||||
duration: 0,
|
||||
desc: "你在客栈地字号客房,这里的设施,方位,对练功大有好处",
|
||||
name: "地字号",
|
||||
prop: {
|
||||
study_per: 20,
|
||||
lianxi_per: 20,
|
||||
dazuo_per: 20
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
this.on_leave = function (me) {
|
||||
me.remove_status("room");
|
||||
}
|
||||
function check_moveout(me) {
|
||||
if (!me.query_temp("kezhan")) {
|
||||
me.moveto("yz/kedian", null, me.name + "走了下来。");
|
||||
me.send_room("店小二对$N说道:这位客官,你需要付钱才可以继续住店。");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
this.on_heart_beat = function () {
|
||||
for (let item of this.items) {
|
||||
if (item.hp > 0) {
|
||||
return check_moveout(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
39
world/map/kezhan/fang3.js
Normal file
39
world/map/kezhan/fang3.js
Normal file
@@ -0,0 +1,39 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "天字号客房";
|
||||
this.desc = "这是客栈里面最好的客房,房间里面空间很大,门口竖有张屏风,看上去很贵重的样子,据说这里面的布置,物件都是客栈老板花大价钱买来的天材地宝,在这里练功对你大有益处。";
|
||||
this.exits = { "down": "yz/kedian" };
|
||||
this.is_shadow = true;
|
||||
this.max_item_count = 1;
|
||||
this.on_enter = function (me) {
|
||||
if (check_moveout(me)) {
|
||||
me.add_status({
|
||||
id: "room",
|
||||
duration: 0,
|
||||
desc: "你在客栈天字号房间,这里一堆天才地宝,简直就是练功圣地",
|
||||
name: "天字号",
|
||||
prop: {
|
||||
study_per: 50,
|
||||
lianxi_per: 50,
|
||||
dazuo_per: 50
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
this.on_leave = function (me) {
|
||||
me.remove_status("room");
|
||||
}
|
||||
function check_moveout(me) {
|
||||
if (!me.query_temp("kezhan")) {
|
||||
me.moveto("yz/kedian", null, me.name + "走了下来。");
|
||||
me.send_room("店小二对$N说道:这位客官,你需要付钱才可以继续住店。");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
this.on_heart_beat = function () {
|
||||
for (let item of this.items) {
|
||||
if (item.hp > 0) {
|
||||
return check_moveout(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user