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

13
world/skill/base/bite.js Normal file
View File

@@ -0,0 +1,13 @@
this.inherits(SKILL);
this.type = SKILL_TYPES.BASE;
this.id = "bite";
this.name = "野兽扑咬";
this.grade = 0;
this.desc = "动物类技能";
this.family = FAMILIES.MONSTER;
this.attack_actions = [
"$N张嘴朝$n的$l咬去", "$N抬起前爪往$n的$l一抓", "$N往$n的$l狠狠的扑了过去",
"$N跳起来用前抓往$n的$l抓去", "$N猛的扑向$n的$l"
];
this.query_prop = lv => ({ gj: parseInt(lv / 5), mz: parseInt(lv / 5) });
this.set_default(this.id);

34
world/skill/base/blade.js Normal file
View File

@@ -0,0 +1,34 @@
this.inherits(SKILL);
this.id = "blade";
this.name = "基本刀法";
this.type = SKILL_TYPES.BASE;
this.grade = 0;
this.desc = "刀法类武功的基础功法,坚持锻炼会使你的技巧熟练,增加自身的命中";
this.attack_actions = [
"$N用$W往$n的$l刺去", "$N用$W往$n的$l砍去", "$N挥动$W,斩向$n的$l"
];
this.set_default(this.id);
this.set_pfm("zhan", {
name: "斩击",
distime: 5000,
mp: 5,
use: function (me, target, lv) {
var msg = "<hic>$N看$n露出破绽挥动$W斩向$n的$l</hic>";
var gj = 10 + lv;
me.do_attack({
target: target,
gj:me.gj + gj,
mz: me.mz,
attack_msg:msg
});
me.end_attack(target);
},
query_desc: function (me, lv) {
var gj = 10 + lv;
return "强力的一击,对敌人造成基本攻击附加" + gj + "的伤害。";
}
});
this.query_prop = function (lv) {
return { mz: lv };
}

13
world/skill/base/club.js Normal file
View File

@@ -0,0 +1,13 @@
this.inherits(SKILL);
this.id = "club";
this.name = "基本棍法";
this.grade = 0;
this.type = SKILL_TYPES.BASE;
this.attack_actions = [
"$N用$W往$n的$l捅去", "$N用$W往$n的$l敲去", "$N挥动$W,扫向$n的$l"
];
this.set_default(this.id);
this.desc = "棍法类技能的基础功法,坚持锻炼会增加你的招架能力";
this.query_prop = function (lv) {
return { zj: lv };
}

15
world/skill/base/dodge.js Normal file
View File

@@ -0,0 +1,15 @@
this.inherits(SKILL);
this.id = "dodge";
this.name = "基本轻功";
this.grade = 0;
this.desc = "轻功的基础功法坚持锻炼会身轻如燕。每10级增加1点后天身法";
this.type = SKILL_TYPES.BASE;
this.dodge_actions = ["但是和$p$l偏了几寸。",
"但是被$p机灵地躲开了。",
"但是$n身子一侧闪了开去。",
"但是被$p及时避开。",
"但是$n已有准备不慌不忙的躲开。"];
this.set_default(this.id);
this.query_prop = lv => ({ dex: parseInt(lv / 10) });

View File

@@ -0,0 +1,9 @@
this.inherits(SKILL);
this.name = "基本内功";
this.id = "force";
this.grade = 0;
this.type = SKILL_TYPES.BASE;
this.set_default(this.id);
this.desc = "内功的基础功法坚持锻炼会增强体质。每10级增加1点后天根骨增加内力上限";
this.query_prop = lv => ({ con: parseInt(lv / 10), limit_mp: 100 + lv * 5, desc: "唯一将你内力的10%转化为气血" });

24
world/skill/base/parry.js Normal file
View File

@@ -0,0 +1,24 @@
this.inherits(SKILL);
this.id = "parry";
this.name = "基本招架";
this.grade = 0;
this.type = SKILL_TYPES.BASE;
this. weapon_vs_weapon_actions = [
"只听见「锵」一声,被$p用手中$i格开了。",
"结果「当」地一声被$p挡开了。",
"但是被$n用手中$i架开。",
"但是$n身子一侧用手中$i格开。"
];
this.parry_actions = [
"但是被$p格开了。",
"结果被$p挡开了。"
];
this.unarmed_vs_weapon_actions =[
"但是被$p轻轻一推$w失了准头和$p的$l偏了几寸。",
"$p往$N的手腕轻轻一按结果$w偏向一边。"
];
this.desc = "招架类技能的基础功法,坚持锻炼会提高你的招架能力";
this.query_prop = lv => ({ zj: lv });
this.set_default(this.id);

13
world/skill/base/staff.js Normal file
View File

@@ -0,0 +1,13 @@
this.inherits(SKILL);
this.id = "staff";
this.name = "基本杖法";
this.grade = 0;
this.type = SKILL_TYPES.BASE;
this.attack_actions = [
"$N用$W往$n的$l捅去", "$N用$W往$n的$l敲去", "$N挥动$W,扫向$n的$l"
];
this.set_default(this.id);
this.desc = "杖法类技能的基础功法,坚持锻炼会增加你的招架能力";
this.query_prop = function (lv) {
return { zj: lv };
}

36
world/skill/base/sword.js Normal file
View File

@@ -0,0 +1,36 @@
this.inherits(SKILL);
this.id = "sword";
this.name = "基本剑法";
this.grade = 0;
this.type = SKILL_TYPES.BASE;
this.attack_actions = [
"$N用$W往$n的$l刺去", "$N用$W往$n的$l砍去", "$N挥动$W,斩向$n的$l"
];
this.set_default(this.id);
this.desc = "剑法类技能的基础功法,磨练你的技巧,坚持锻炼会增加你自身的命中";
this.set_pfm("lian", {
name: "连击",
distime: 5,
mp: 5,
weapon_type: WEAPON_TYPE.SWORD,
use: function (me, target, lv) {
var msg = "<hig>$N加快速度手中的$W快速向$n刺去</hig>";
me.send_room(msg, target);
me.do_attack({
target: target,
gj: me.gj,
mz: me.mz
});
me.do_attack({
target: target,
gj: me.gj,
mz: me.mz
});
me.end_attack(target);
}, query_desc: function (me, lv) {
return "快速对敌人攻击两次";
}
});
this.query_prop = function (lv) {
return { mz: lv };
}

View File

@@ -0,0 +1,13 @@
this.inherits(SKILL);
this.id = "throwing";
this.name = "基本暗器";
this.grade = 0;
this.type = SKILL_TYPES.BASE;
this.set_default(this.id);
this.desc = "暗器类技能的基础功法,磨练你的技巧,坚持锻炼会增加你自身的命中";
this.attack_actions = [
"$N用$T往$n的$l刺去", "一道$T射向$n的$l", "$T飞向$n的$l"
];
this.query_prop = function (lv) {
return { mz: lv };
}

View File

@@ -0,0 +1,35 @@
this.inherits(SKILL);
this.id = "unarmed";
this.name = "基本拳脚";
this.type = SKILL_TYPES.BASE;
this.grade = 0;
this.desc = "拳脚类武功的基础功法坚持锻炼必成大器。每10级会增加1点后天臂力";
this.attack_actions = [
"$N挥拳攻击$n的$l", "$N往$n的$l一抓", "$N往$n的$l狠狠地踢了一脚",
"$N提起拳头往$n的$l捶去", "$N对准$n的$l用力挥出一拳"
];
this.set_default(this.id);
this.set_pfm("zhong", {
name: "重击",
distime: 5000,
mp: 5,
release_time:0,
use: function(me, target, lv) {
var msg = "<hig>$N看准时机双拳蓄力对准$n的$l用力砸去</hig>";
var gj = 10 + lv;
me.do_attack({
target: target,
gj: me.gj + gj,
mz: me.mz,
attack_msg:msg,
no_weapon:true
});
me.end_attack(target);
},
query_desc: function (me, lv) {
var gj = 10 + lv;
return "强力的一击,对敌人造成基本攻击附加" + gj + "的伤害。";
}
});
this.query_prop = lv => ({ str: parseInt(lv / 10) });

14
world/skill/base/whip.js Normal file
View File

@@ -0,0 +1,14 @@
this.inherits(SKILL);
this.id = "whip";
this.name = "基本鞭法";
this.grade = 0;
this.type = SKILL_TYPES.BASE;
this.attack_actions = [
"$N用$W往$n的$l抽去", "$N甩动$W往$n的$l抽去", "$N挥动$W,扫向$n的$l"
];
this.set_default(this.id);
this.desc = "鞭法类技能的基础功法,坚持锻炼会磨练你的技巧增加命中";
this.query_prop = function (lv) {
return { mz: lv };
}