init: add workspace files

This commit is contained in:
2026-05-26 16:41:20 +08:00
commit f4f2393f72
1041 changed files with 67405 additions and 0 deletions

39
world/map/kezhan/fang3.js Normal file
View 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);
}
}
}