init: add workspace files
This commit is contained in:
28
world/map/banghui/cangku.js
Normal file
28
world/map/banghui/cangku.js
Normal file
@@ -0,0 +1,28 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "仓库"
|
||||
this.desc = "这里是你帮派的仓库,一扇厚厚的铁门紧锁着,里面堆满了你们帮会的战利品,仓库管理员可以在这里选择怎么处理这些战利品。";
|
||||
this.exits = { "south": "banghui/juyitang" };
|
||||
this.no_fight = true;
|
||||
const rollDesc = [
|
||||
"$N摸出一枚骰子,指尖一捻便抛向空中,骰子在半空划出一道弧线后坠落",
|
||||
"$N将骰子扣在掌心轻轻摇晃,伴随着清脆的碰撞声,骰子在桌面飞速旋转",
|
||||
"$N随手抄起桌上的骰子,手腕轻抖掷出,骰子在地面弹跳数下后逐渐减速"
|
||||
];
|
||||
this.add_action("roll", "掷骰子", function (me, par) {
|
||||
let rad = me.random(100) + 1;
|
||||
|
||||
me.send_room(rollDesc.random() + ",稳稳停在了" + rad + "点。");
|
||||
});
|
||||
|
||||
|
||||
this.add_action("pandian", "仓库盘点", function (me, par) {
|
||||
WORLD.COMMANDS["party"].enter(me, 'stores');
|
||||
|
||||
});
|
||||
|
||||
this.add_action("alloc", "分配战利品", function (me, par) {
|
||||
|
||||
WORLD.COMMANDS["party"].enter(me, 'alloc');
|
||||
|
||||
});
|
||||
|
||||
5
world/map/banghui/damen.js
Normal file
5
world/map/banghui/damen.js
Normal file
@@ -0,0 +1,5 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "大门"
|
||||
this.desc = "这里是你帮派的大门,左右石坛上各插着一根两丈多高的旗杆,杆上青旗飘扬。右首旗子用金线绣着一头张牙舞爪的狮子,狮子上头有一只蝙蝠飞翔。左首旗子上写着几个烫金大字,银钩铁划,刚劲非凡。";
|
||||
this.exits = { "west": "yz/banghui", "east": "banghui/yuanzi" };
|
||||
this.no_fight = true;
|
||||
4
world/map/banghui/juyitang.js
Normal file
4
world/map/banghui/juyitang.js
Normal file
@@ -0,0 +1,4 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "聚义堂"
|
||||
this.desc = "这里是你的帮会的主厅,正对面一张虎头座椅,那是你们帮主的平日里发号施令的地方,上方一块匾额,上书:聚义堂,字迹苍松,威风凛凛。";
|
||||
this.exits = { "west": "banghui/yuanzi", "north": "banghui/cangku" };
|
||||
30
world/map/banghui/liangong.js
Normal file
30
world/map/banghui/liangong.js
Normal file
@@ -0,0 +1,30 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "练功房"
|
||||
this.desc = "这是你的帮派的练功房,房间的北面各种武器玲琅满目,刀枪剑棍,十八般兵器在这里都能找到,四周石墙的青砖已经被刻满剑痕刀伤,看来经常有人在这里练功。";
|
||||
this.exits = { "south": "banghui/yuanzi" };
|
||||
this.no_fight = true;
|
||||
this.add_action("fenpei", "分配属性", null);
|
||||
this.add_action("xiulian", "修炼", null);
|
||||
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('liangong', 0) * 10 + 10;
|
||||
me.add_status({
|
||||
id: "room",
|
||||
duration: 0,
|
||||
desc: "你在练功房,心无旁骛,修炼效率得到提高",
|
||||
name: "静心",
|
||||
prop: {
|
||||
study_per: lg_level,
|
||||
lianxi_per: lg_level,
|
||||
dazuo_per: lg_level
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
29
world/map/banghui/lianyao.js
Normal file
29
world/map/banghui/lianyao.js
Normal file
@@ -0,0 +1,29 @@
|
||||
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
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
13
world/map/banghui/yuanzi.js
Normal file
13
world/map/banghui/yuanzi.js
Normal file
@@ -0,0 +1,13 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "大院"
|
||||
this.desc = "你走进帮会大院,正对面是一个屏风,高大威猛,院子里铺满青砖,四周放着几个兵器架以供练功使用,几个帮派成员零零落落的站在四周,看到你进来警惕的看了你一眼。";
|
||||
this.exits = { "west": "banghui/damen", "east": "banghui/juyitang", "south": "banghui/lianyao", "north": "banghui/liangong" };
|
||||
|
||||
|
||||
|
||||
this.is_init = false;
|
||||
this.on_before_enter = function () {
|
||||
if (this.is_init) return;
|
||||
this.is_init = true;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user