Files
wsmud/world/skill/unarmed/baguaquan.js
2026-05-26 16:41:20 +08:00

83 lines
2.9 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
this.inherits(SKILL);
this.name = "八卦拳";
this.id = "baguaquan";
this.grade = 2;
this.attack_actions = [
"$N双掌一错使出「乾字决」双拳一上一下对准$n的$l连拍三招",
"$N绕着$n一转满场游走拳出如风连绵不绝地击向$n正是八卦拳中的「坤字决」",
"$N使出一招「巽字决」左拳虚击$n的前胸一错身右拳迅速横扫$n的太阳穴",
"$N使一招「坎字决」左拳击出不等招式使老右拳已从左拳之底穿出对准$n的$l「呼」地一拳",
"$N使出一招「震字决」身形一低左手护顶右手已迅雷不及掩耳的一拳击向$n的裆部",
"$N左拳突然张开拳开变掌直击化为横扫一招「兑字决」便往$n的$l招呼过去",
"$N一招「离字决」顿时幻出重重拳影气势如虹铺天盖地袭向$n全身",
"$N微微一笑手捏「艮字决」飞身跃起半空中一脚踢向$n面门却是个虚招。说时迟那时快只见$N一个倒翻双拳已到了$n的$l"
];
this.desc = "以阴阳八卦为基础创造出来的一式拳法";
//"(\w+)"(.+?)"NOR"
//<$1>$2</$1>
this.can_enables = ["unarmed"];
this.learn_condition = {
max_mp: 200,
skill: {
unarmed: 300
}
};
this.slots = [
{
prop: 'bgq_mz',
value: (lv) => 10,
format: (val) => {
return '震字诀命中增加10%';
},
},
{
prop: 'bgq_nl',
value: (lv) => 5,
format: (val) => {
return '震字诀附加的内力增加5%';
},
}
];
this.query_enable_prop = function (lv) {
return {
unarmed: {
gj: parseInt(lv * 1.2) + 20,
mz: parseInt(lv * 1.2) + 20
}
};
}
this.pfm = {
zhen:
{
name: "震字诀",
distime: 20000,
enable_skill: "unarmed",
weapon_type: WEAPON_TYPE.UNARMED,
mp: 20,
use: function (me, target, lv) {
var t = 10 + parseInt(lv / 100);
if (t > 20) t = 20;
let mz = me.mz + me.mz * me.query_prop("bgq_mz") / 100;
let add_mp = me.max_mp * t / 100;
let is_nl = me.query_prop("bgq_nl");
if (is_nl > 0) add_mp += me.max_mp * is_nl / 100;
me.do_attack({
target: target,
gj: 1,
attack_msg: "<hiy>只见$N跨立马步双拳蓄力大喝一声向$n的胸前击去。</hiy>",
damage_msg: "<hir>只听砰的一声,$N已经重重打中$p胸口跟着喀喇喇几声肋骨好像断了几根</hir>",
mz: mz,
no_weapon: true,
power_gj: add_mp
});
me.end_attack(target);
},
query_desc: function (me, lv) {
var t = 10 + parseInt(lv / 100);
if (t > 20) t = 20;
return "对敌人造成你" + t + "%最大内力的伤害。";
}
}
};