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

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