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

21
world/cmd/obj/unequip.js Normal file
View File

@@ -0,0 +1,21 @@
this.inherits(COMMAND);
this.command = "uneq";
this.enter = function (me, oid) {
var obj;
if (me.equipment) {
for (var i = 0; i < me.equipment.length; i++) {
if (me.equipment[i] && me.equipment[i].id == oid) {
obj = me.equipment[i];
break;
}
}
}
if (!obj) return me.notify("你要取消装备什么?");
if (me.unequip(obj) != false && obj.on_use) {
if (!obj.is_shortcut)
obj.notify_action(me, false);
}
}