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

60 lines
1.6 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 = "huntianqigong";
this.grade = 3;
this.force_rad = 0.7;
this.desc = "丐帮的高级心法";
this.family = FAMILIES.GAIBANG;
//"(\w+)"(.+?)"NOR"
//<$1>$2</$1>
this.can_enables = ["force"];
this.query_enable_prop = function (lv) {
return {
force: {
gj: parseInt(lv * 1.2) + 10,
con: parseInt(lv / 6) + 4,
limit_mp: lv * 102,
desc: "唯一将你内力的70%转化为气血"
}
};
}
this.learn_condition = {
skill: {
force: 250
}
};
this.pfm = {
power:
{
name: "混元天罡",
distime: 60000,
enable_skill: "force",
mp: 20,
release_time: 0,
use_type: 2,
use: function (me, target, lv) {
var time = 25000 + lv;
if (time > 30000) time = 30000;
var gj = 600 + lv * 2;
me.send_room("<HIy>$N使出混天气功绝学「混元天罡」大喝一声全身真气鼓动看似坚不可摧。</HIy>");
me.add_status({
id: "force",
name: "天罡",
desc: "增加防御和攻击",
prop: {
fy: gj,
gj: gj
},
duration: time
});
},
query_desc: function (me, lv) {
var time = (25000 + lv) / 1000;
if (time > 30) time = 30;
var gj = 600 + lv * 2;
return time + "秒内,提升自身,攻击防御" + gj + "。";
}
}
};