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

70 lines
2.6 KiB
JavaScript
Raw 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 = "yizhichan";
this.grade = 3;
this.family = FAMILIES.SHAOLIN;
this.attack_actions = [
"$N双指并拢一式<HIY>「佛恩济世」</HIY>,和身而上,左右手一前一后戳向$n的胸腹间",
"$N左掌护胸一式<HIY>「佛光普照」</HIY>,右手中指前后划了个半弧,猛地一甩,疾点$n的$l",
"$N身形闪动一式<HIY>「佛门广渡」</HIY>,双手食指端部各射出一道青气,射向$n的全身要穴",
"$N盘膝跌坐一式<HIY>「佛法无边」</HIY>,左手握拳托肘,右手拇指直立,遥遥对着$n一捺"
];
this.desc = "少林寺七十二绝技之一指禅";
//"(\w+)"(.+?)"NOR"
//<$1>$2</$1>
this.can_enables = ["unarmed"];
this.learn_condition = {
max_mp: 8000,
skill: {
unarmed: 300
}
};
this.query_enable_prop = function (lv) {
return {
unarmed: {
gj: parseInt(lv * 1.5) + 20,
str: parseInt(lv / 5) + 1,
mz: parseInt(lv * 0.8 + 3)
}
};
}
this.pfm = {
zhen:
{
name: "惊魔一指",
distime: 30000,
enable_skill: "unarmed",
weapon_type: WEAPON_TYPE.UNARMED,
mp: 20,
use: function (me, target, lv) {
var time = (lv * 5 + 2000);
if (time > 10000) time = 10000;
var sh = me.do_attack({
target: target,
gj: me.gj,
mz: me.mz, no_weapon: true,
attack_msg: "<hiy>$N大喝一声中指按出一股锐利的杀气攻向$n气势恢宏之极</hiy>",
damage_msg: "<hir>只见$p躲闪不及被$P这一指正戳在胸前不由得连声惨叫胸口鲜血直流</hir>",
miss_msg: "<cyn>可是$p身法颇为灵活轻轻一退将这道剑气化解于无形。</cyn>"
});
if (sh ) {
target.add_status({
id: "faint",
is_faint: true,
duration: time,
name: "昏迷", downside: true,
finish_msg: "<hiy>慢慢的$N又恢复了知觉...</hiy>\n",
start_msg: "<hir>$N只觉得眼前一黑接着什么都不知道了...</hir>\n"
}, me);
}
me.end_attack(target);
},
query_desc: function (me, lv) {
var time = (lv * 5 + 2000);
if (time > 10000) time = 10000;
return "一指禅之惊魔一指,运用无形剑气攻击敌人,命中后昏迷" + time/1000+"秒。";
}
}
};