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

29 lines
1.0 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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');
});