Files
wsmud/world/map/banghui/lianyao.js
2026-05-26 16:41:20 +08:00

29 lines
944 B
JavaScript

this.inherits(ROOM);
this.name = "炼药房"
this.desc = "这是你帮会的炼药房,还没进入就先闻到一股浓烈的药草香味,房间里面没有多余的设施,一个大大的炼药炉摆在房子中间,可以同时供多名帮派成员使用。";
this.exits = { "north": "banghui/yuanzi" };
this.no_fight = true;
this.add_action("lianyao", "炼药");
this.can_lianyao = true;
this.on_leave = function (me) {
me.remove_status("room");
}
this.on_enter = function (me) {
if (me.is_player) {
let pt = me.query_party();
if (pt) {
var lg_level = pt.query_temp('lianyao', 0) * 1 + 1;
me.add_status({
id: "room",
duration: 0,
desc: "你在你的炼药房,炼药效率得到提升",
name: "专心",
prop: {
lianyao1: lg_level
}
});
}
}
}