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

View File

@@ -0,0 +1,45 @@
this.inherits(SKILL);
this.type = SKILL_TYPES.SKILL;
this.id = "bite2";
this.name = "野兽扑咬";
this.grade = 3;
this.family = FAMILIES.MONSTER;
this.desc = "高级动物类技能";
this.attack_actions = [
"$N张嘴朝$n的$l咬去", "$N抬起前爪往$n的$l一抓", "$N往$n的$l狠狠的扑了过去",
"$N跳起来用前抓往$n的$l抓去", "$N猛的扑向$n的$l"
];
this.query_prop = lv => ({ gj: lv * 2, mz: lv * 2, fy: lv * 2, zj: lv * 2, ds: lv * 2 });
this.can_enables = ["bite"];
this.pfm = {
puyao:
{
name: "撕咬",
distime: 7000,
enable_skill: "bite",
weapon_type: WEAPON_TYPE.UNARMED,
release_time: 3000,
mp: 10,
attacks: [
"<hir>$N张嘴朝$n的$l咬去</hir>", "<hir>$N抬起前爪往$n的$l一抓</hir>", "<hir>$N往$n的$l狠狠的扑了过去</hir>",
"<hir>$N跳起来用前抓往$n的$l抓去</hir>", "<hir>$N猛的扑向$n的$l</hir>"
],
use: function (me, target,lv) {
var count = 5;
me.send_room("<red>$N目露凶光猛的朝$n扑了过去</red>", target);
for (var i = 0; i < count; i++) {
me.do_attack({
target: target,
gj: me.gj,
mz: me.mz * 2,
attack_msg: this.attacks[i]
});
}
me.end_attack(target);
},
query_desc: function (me,lv) {
return "野兽类撕咬";
}
}
};

View File

@@ -0,0 +1,45 @@
this.inherits(SKILL);
this.name = "毒蛇攻击";
this.id = "dushegongji";
this.grade = 1;
this.family = FAMILIES.MONSTER;
this.attack_actions = [
"$N张嘴朝$n的$l咬去", "$N往$n的$l狠狠的扑了过去",
"$N猛的扑向$n的$l", "$N扑上来张嘴往$n的$l咬去"
];
this.desc = "毒蛇攻击方式,会中毒";
//"(\w+)"(.+?)"NOR"
//<$1>$2</$1>
this.can_enables = ["bite"];
this.query_enable_prop = function (lv) {
return {
bite: {
gj: lv,
mz: lv,
ds: lv,
desc: "你的攻击有可能让对方中毒"
}
};
}
this.on_attack_over = function (me, target, par) {
if (!par.is_dodge && !par.is_parry) {
var lv = me.query_skill("dushegongji", 0);
var sh = parseInt((lv / 10) + 10);
if (this.random(lv) > 100) {
target.add_status({
id: "shedu",
name: "蛇毒",
desc: "你中了蛇毒,每三秒减少" + sh + "气血",
duration: 3000,
duration_count: 4,
on_interval: function (me, count) {
me.from_attack(sh * count, 999999, null, "<hir>$N觉得被蛇咬中的地方一阵发麻。</hir>");
},
downside: true,
override: 1
});
}
}
}