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

135 lines
4.5 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 = "yijinjing";
this.grade = 4;
this.force_rad = 0.75;
this.family = FAMILIES.SHAOLIN;
this.desc = "少林寺的高级内功心法,为少林寺镇寺之宝";
//"(\w+)"(.+?)"NOR"
//<$1>$2</$1>
this.can_enables = ["force"];
this.learn_condition = {
max_mp: 1000,
skill: {
force: 500
}
};
this.query_prop = function (lv) {
return {
diff_sh_per: 5 + parseInt(lv / 300),
};
}
this.query_enable_prop = function (lv) {
return {
force: {
max_hp: lv * 20,
fy: parseInt(lv * 2 + 5),
limit_mp: lv * 150,
desc: "唯一将你内力的75%转化为气血"
}
};
}
this.pfm = {
foguang:
{
name: "佛光守护",
distime: 30000,
enable_skill: "force",
mp: 20,
use_type: 2,
release_time: 0,
use: function (me, target, lv) {
me.send_room("<hiy>只听$N高呼佛号运起佛光普照霎那间全身竟犹如镀金一般发出灿灿金光。</hiy>");
var tm = me.team || [me];
for (var i = 0; i < tm.length; i++) {
if (tm[i].hp > 0 && tm[i].is_here(me)) {
tm[i].add_status({
id: "foguang",
name: "佛光普照",
desc: "易筋经之佛光普照增加你的气血,防御",
duration: lv + 10000,
prop: {
max_hp: lv * 10,
fy: lv
}
});
tm[i].do_recover(lv * 10);
}
}
},
query_desc: function (me, lv) {
return "召唤佛光守护,增加你和你队友的气血" + (lv * 10) + ",防御" + lv + "。";
}
},
roar:
{
name: "狮子吼",
distime: 30000,
enable_skill: "force",
mp: 20,
use_type: 2,
release_time: 1000,
use: function (me, target, lv) {
me.send_room("<hiy>$N深深地吸一囗气真力迸发发出一声惊天动地的巨吼。</hiy>");
if (!me.enemy) return false;
var list = [];
var time = lv * 10 + 2000;
if (time > 7000) time = 7000;
for (let x of me.enemy) {
if (x.hp > 0) {
list.push(x);
}
}
if (!list.length) return false;
for (var i = 0; i < list.length; i++) {
var x = list[i];
x.notify("你觉得眼前一阵金星乱冒,耳朵痛得像是要裂开一样。");
x.damage(me.max_mp / 10);
if (x.max_mp < me.max_mp) {
x.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.end_attack(x);
}
},
query_desc: function (me, lv) {
var time = lv * 10 + 2000;
if (time > 7000) time = 7000;
return "深深地吸一囗气真力迸发发出一声惊天动地的巨吼对附近敌人造成你最大内力10%(" + (me.max_mp / 10) + ")的伤害,如果敌人最大内力小于你的内力将昏迷" + (time / 1000) + "秒。";
}
}, zhao:
{
name: "金刚罩",
distime: 40000,
enable_skill: "force",
mp: 20,
use_type: 2,
release_time: 0,
use: function (me, target, lv) {
var lv = 30 + parseInt(lv / 100);
me.send_room("<hiy>$N高呼佛号全身真气鼓动犹如金铸之钟坚不可摧。</hiy>");
me.add_status({
id: "force",
name: "金刚罩",
desc: "大幅减少你受到的伤害",
duration: 10000,
prop: {
diff_sh_per2: lv
}
});
},
query_desc: function (me, lv) {
var lv = 30 + parseInt(lv / 100);
return "减少你受到的伤害10秒内增加" + lv + "%伤害减免。";
}
}
};