init: add workspace files
This commit is contained in:
24
world/obj/res/cao.js
Normal file
24
world/obj/res/cao.js
Normal file
@@ -0,0 +1,24 @@
|
||||
this.inherits(OBJ);
|
||||
this.set({
|
||||
unit: "株",
|
||||
name: "当归",
|
||||
desc: "这是一株草药",
|
||||
value: 1000,
|
||||
transable: true,
|
||||
});
|
||||
this.otype = 3;
|
||||
|
||||
this.on_create = function (path, par) {
|
||||
if (!par) return;
|
||||
par = par.substr(1);
|
||||
var lv = parseInt(par);
|
||||
if (!(lv >= 0 && lv < 23)) return;
|
||||
this.name = ["当归", "芦荟", "山楂叶", "金银花", "石楠叶", "柴胡", "熟地黄", "沉香", "茯苓",
|
||||
"九香虫", "冬虫夏草", "络石藤", "人参", "何首乌", "凌霄花", "灵芝", "盘龙参", "天仙藤",
|
||||
"神血藤", "龙鳞草", "沉天叶", "轮回蛊", "凤鸣花"][lv];
|
||||
this.grade = parseInt(lv / 3);
|
||||
if (this.grade > 6) this.grade = 6;
|
||||
if (this.grade === 6) this.desc = "这是一株神奇的药草,可以炼制出传说中的神丹";
|
||||
this.value = [100, 1000, 5000, 10000, 50000, 100000, 680000][this.grade];
|
||||
|
||||
}
|
||||
12
world/obj/res/eyupi.js
Normal file
12
world/obj/res/eyupi.js
Normal file
@@ -0,0 +1,12 @@
|
||||
this.inherits(OBJ);
|
||||
this.set({
|
||||
name: "鳄鱼皮",
|
||||
desc: "云梦沼泽巨鳄的皮,很是坚固。",
|
||||
unit: "块",
|
||||
grade: 1,
|
||||
value: 100,
|
||||
combined: true
|
||||
});
|
||||
|
||||
this.otype = 3;
|
||||
this.transable = true;
|
||||
32
world/obj/res/huang.js
Normal file
32
world/obj/res/huang.js
Normal file
@@ -0,0 +1,32 @@
|
||||
this.inherits(OBJ);
|
||||
this.set({
|
||||
name: "雄黄",
|
||||
desc: "一块雄黄,驱蛇效果俱佳",
|
||||
unit: "块",
|
||||
value: 10,
|
||||
grade: 1,
|
||||
combined: true,
|
||||
allow_fight: true
|
||||
});
|
||||
this.transable = true;
|
||||
this.on_use = function (me) {
|
||||
me.notify("<hic>你把雄黄捏碎,朝四周撒去。</hic>");
|
||||
var list = [];
|
||||
for (var i = 0; i < me.environment.items.length; i++) {
|
||||
if (me.environment.items[i].is('yz/lw/she')) {
|
||||
list.push(me.environment.items[i]);
|
||||
}
|
||||
}
|
||||
if (!list.length) return;
|
||||
var exits = [];
|
||||
for (var dir in me.environment.exits) {
|
||||
exits.push(me.environment.exits[dir]);
|
||||
}
|
||||
if (!exits.length) return;
|
||||
|
||||
for (var i = 0; i < list.length; i++) {
|
||||
list[i].hp = list[i].max_hp;
|
||||
list[i].moveto(ROOM.Get(exits.random()).query_copy2(me), '毒蛇被熏的四散逃去。');
|
||||
}
|
||||
|
||||
}
|
||||
11
world/obj/res/huolongpi.js
Normal file
11
world/obj/res/huolongpi.js
Normal file
@@ -0,0 +1,11 @@
|
||||
this.inherits(OBJ);
|
||||
this.set({
|
||||
name: "火龙筋",
|
||||
desc: "坚固耐用的火龙筋,是做鞭子的好材料",
|
||||
unit: "块",
|
||||
grade: 1,
|
||||
value: 200,
|
||||
combined: true
|
||||
});
|
||||
this.transable = true;
|
||||
this.otype = 3;
|
||||
20
world/obj/res/langpi.js
Normal file
20
world/obj/res/langpi.js
Normal file
@@ -0,0 +1,20 @@
|
||||
this.inherits(OBJ);
|
||||
this.set({
|
||||
name: "狼皮",
|
||||
desc: "一块完整的狼皮",
|
||||
unit: "块",
|
||||
value: 10,
|
||||
grade: 1,
|
||||
combined: true
|
||||
});
|
||||
this.on_use = function (me) {
|
||||
me.add_status({
|
||||
id: "langpi",
|
||||
name: "伪装",
|
||||
desc: "你伪装成一只狼",
|
||||
duration: 10000
|
||||
});
|
||||
me.set_temp('langpi', 1, 10000);
|
||||
me.notify("<hic>你把一块完整的狼皮当作衣服披在身上。</hic>");
|
||||
}
|
||||
this.transable = true;
|
||||
9
world/obj/res/pimao1.js
Normal file
9
world/obj/res/pimao1.js
Normal file
@@ -0,0 +1,9 @@
|
||||
this.inherits(OBJ);
|
||||
this.set({
|
||||
name: "动物皮毛",
|
||||
desc: "品质一般的动物皮毛。",
|
||||
unit: "块",
|
||||
value: 10,
|
||||
combined: true
|
||||
});
|
||||
this.transable = true;
|
||||
9
world/obj/res/pimao2.js
Normal file
9
world/obj/res/pimao2.js
Normal file
@@ -0,0 +1,9 @@
|
||||
this.inherits(OBJ);
|
||||
this.set({
|
||||
name: "高级皮毛",
|
||||
desc: "品质很好的动物皮毛。",
|
||||
unit: "块",
|
||||
value: 100,
|
||||
combined: true
|
||||
});
|
||||
this.transable = true;
|
||||
10
world/obj/res/shexue.js
Normal file
10
world/obj/res/shexue.js
Normal file
@@ -0,0 +1,10 @@
|
||||
this.inherits(OBJ);
|
||||
this.set({
|
||||
name: "怪蟒蛇血",
|
||||
desc: "白驼山使饲养的一条怪蟒的血,使用很多天才地宝喂养而成,所以它的血异常珍惜",
|
||||
unit: "份",
|
||||
grade: 3,
|
||||
value: 10000,
|
||||
combined: true
|
||||
});
|
||||
this.transable = true;
|
||||
26
world/obj/res/yu.js
Normal file
26
world/obj/res/yu.js
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
this.inherits(OBJ);
|
||||
this.set({
|
||||
unit: "条",
|
||||
name: "鲢鱼",
|
||||
desc: "一条活蹦乱跳的鲢鱼",
|
||||
value: 100
|
||||
});
|
||||
this.transable = true;
|
||||
this.otype = 3;
|
||||
this.on_create = function (path, par) {
|
||||
if (!par) {
|
||||
par = 0;
|
||||
} else
|
||||
par = par.substr(1);
|
||||
var lv = parseInt(par);
|
||||
if (!(lv >= 0 && lv < 18)) return;
|
||||
this.name = ["鲢鱼", "草鱼", "鲤鱼", "鳊鱼", "鲮鱼", "鲂鱼", "黄颡鱼", "黄金鳉",
|
||||
"太湖银鱼", "反天刀", "虹鳟", "孔雀鱼", "罗汉鱼", "银龙鱼", "黑龙鱼", "七星刀鱼",
|
||||
"巨骨舌鱼", "帝王老虎魟"][lv];
|
||||
this.grade = Math.floor(lv / 3);
|
||||
this.value = [500, 1000, 5000, 10000, 50000, 100000, 680000][this.grade];
|
||||
this.desc = "一条活蹦乱跳的" + this.name;
|
||||
}
|
||||
//100, 1000, 5000, 10000, 50000, 100000, 680000][this.grade];
|
||||
//100 200 300 500 1000
|
||||
Reference in New Issue
Block a user