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

9
world/obj/money/bp.js Normal file
View File

@@ -0,0 +1,9 @@
this.inherits(OBJ);
this.set({
name: "帮派积分",
desc: "可用于升级帮派和设施",
unit: "点",
grade: 2,
value: 1
});

12
world/obj/money/cash.js Normal file
View File

@@ -0,0 +1,12 @@
this.inherits(OBJ);
this.set({
name: "元宝",
desc: "这是一锭官银",
unit: "个",
value: 100,
grade:5
});
this.on_receive = function (me) {
if (!this.count) return false;
me.add_cash(this.count, "排行榜收取");
}

11
world/obj/money/coin.js Normal file
View File

@@ -0,0 +1,11 @@
this.inherits(MONEY);
this.set({
name: "铜板",
desc: "虽然少但也是钱",
unit: "枚",
value: 1,
});
this.unit_name = function () {
return UTIL.moneyToStr(this.count);
}

12
world/obj/money/exp.js Normal file
View File

@@ -0,0 +1,12 @@
this.inherits(OBJ);
this.set({
name: "经验",
desc: "你获得的经验,潜能",
unit: "点",
value: 0,
grade:1
});
this.on_receive = function (me) {
if (!this.count) return false;
me.add_exp(this.count, this.count);
}

9
world/obj/money/g100.js Normal file
View File

@@ -0,0 +1,9 @@
this.inherits(OBJ);
this.set({
name: "金锭",
desc: "金子,人见人爱的金子",
unit: "块",
grade: 3,
value: 1000000
});
this.transable = true;

8
world/obj/money/gold.js Normal file
View File

@@ -0,0 +1,8 @@
this.inherits(MONEY);
this.set({
name: "黄金",
desc: "金子,人见人爱的金子",
unit: "两",
value: 10000
});

14
world/obj/money/gongji.js Normal file
View File

@@ -0,0 +1,14 @@
this.inherits(OBJ);
this.set({
name: "门派功绩",
desc: "你对门派的贡献,可以在门派管理那里换取各种物资",
unit: "点",
value: 0,
grade:3
});
this.on_receive = function (me) {
if (!this.count) return false;
me.add_temp('gongji', this.count);
me.notify("你获得了" + UTIL.to_c(this.count) + "点<hiy>门派功绩</hiy>。");
me.set_temp('last_sm', Date.now());
}

10
world/obj/money/hua.js Normal file
View File

@@ -0,0 +1,10 @@
this.inherits(OBJ);
this.set({
name: "玫瑰花",
desc: "一朵鲜艳的玫瑰花",
unit: "朵",
value: 1000,
grade: 3
});
this.transable = true;

16
world/obj/money/p1w.js Normal file
View File

@@ -0,0 +1,16 @@
this.inherits(OBJ);
this.set({
name: "潜能",
desc: "使用后获得一万点潜能",
unit: "万点",
value: 0,
grade: 1
});
this.on_use = function (me) {
me.add_exp(0, 10000);
}
// this.unit_name = function (count) {
// count = count ?? this.count;
// return UTIL.to_c(count) + "万点<hig>潜能</hig>";
// }

12
world/obj/money/pot.js Normal file
View File

@@ -0,0 +1,12 @@
this.inherits(OBJ);
this.set({
name: "潜能",
desc: "学习或练习武功需要消耗的潜能",
unit: "点",
value: 0,
grade: 1
});
this.on_receive = function (me) {
if (!this.count) return false;
me.add_exp(0, this.count);
}

View File

@@ -0,0 +1,7 @@
this.inherits(MONEY);
this.set({
name: "银子",
desc: "银子,白花花的银子",
unit: "两",
value: 100
});