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

72 lines
2.4 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 = "lingboweibu";
this.family = FAMILIES.XIAOYAO;
this.grade = 3;
this.dodge_actions = [
"只见$n施展凌波微步步法轻盈仿佛轻云之蔽月不知怎的就到了数丈之外。",
"$n的身影飘飘兮若流风之回雪施展的正是凌波微步$N连$n的衣角都沾不到。",
"但见$n施展凌波微步左一转右一斜就已经绕到了$N的身後。",
"可是$n施展凌波微步只是轻描淡写地向旁踏出一步就巧妙地避开了$N的攻势。",
"只见$n身影滴溜溜地一转体迅飞鸟飘忽若神施展的正是凌波微步。",
"$N只觉得眼前一花头脑发昏只觉得四面都是$n的身影",
"$n左脚轻轻地踏出一步施展凌波微步若往若返把$N牵得团团乱转。"
];
this.can_enables = ["dodge"];
this.query_prop = function (lv) {
return {
ds_per: 5 + parseInt(lv / 300)
};
}
this.query_enable_prop = function (lv) {
return {
dodge: {
dex: parseInt(lv / 5) + 1,
ds: parseInt(lv * 1.5) + 100
}
};
}
this.learn_condition = {
max_mp: 5000,
skill: {
dodge: 400
}
};
this.pfm = {
lingbo:
{
name: "凌波",
distime: 40000,
enable_skill: "dodge",
release_time: 0,
mp: 20,
use: function (me, target, lv) {
var gj = lv * 10;
if (gj < 3000) gj = 3000;
else if (gj > 10000) gj = 10000;
me.add_status({
id: "dodge",
name: "凌波",
start_msg: "<him>只见$N施展凌波微步神光离合乍阴乍阳动无常则进止难期。</him>",
desc: "你施展了施展凌波微步,使敌人无法命中",
duration: gj,
on_attach: function (p) {
p.change_prop({ ds: 999999 }, true);
p.recount();
},
on_expire: function (p) {
p.change_prop({ ds: 999999 }, false);
p.recount();
}
});
},
query_desc: function (me, lv) {
var gj = lv * 10;
if (gj < 3000) gj = 3000;
else if (gj > 10000) gj = 10000;
return "全力施展凌波微步,在" + (gj / 1000) + "秒内绝对躲闪敌方攻击。";
}
}
};