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

76 lines
2.8 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 = "wuduyanluobu";
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_enable_prop = function (lv) {
return {
dodge: {
ds: parseInt(lv * 1.5) + 130,
dex: parseInt(lv / 7)
}
};
}
this.learn_condition = {
max_mp: 10000,
skill: {
dodge: 500
}
};
this.slots = [
{
prop: "wdylb_ds",
value: lv => 100,
format: (val) => {
return "金蛇游身判定时的有效等级增加" + val;
}
}, {
prop: "wdylb_tm",
value: lv => 1000,
format: (val) => {
return "金蛇游身成功后对方的忙乱时间+1秒";
}
}
];
this.pfm = {
snake:
{
name: "金蛇游身",
distime: 30000,
enable_skill: "dodge",
mp: 20,
use: function (me, target, lv) {
var time = 2000 + lv * 3;
if (time > 10000) time = 10000;
var msg = "<HIC>$N身行忽的一变使出「金蛇游身」的绝技身法越来越快。\n\n只见$N飞快的绕场游走瞻之在前望之在后一时间到处都是$N的身影。</HIC>\n";
if (me.random(lv / 2) + lv
+ me.query_prop('wdylb_ds') > target.query_skill(target.dodge_skill.id, 0)) {
msg += "<hiy>$n不由得一阵手足无措被$N连攻数招\n</hiy>";
target.add_status({
id: "busy",
is_busy: true,
duration: time + me.query_prop('wdylb_tm'),
name: "忙乱",
downside: true
}, me);
} else {
msg += "<hir>可是$n以静制动紧守门户丝毫不受$N的影响,$N自己倒累的满头大汗\n</hir>";
}
me.send_room(msg, target);
},
query_desc: function (me, lv) {
var time = 2000 + lv * 4;
if (time > 10000) time = 10000;
return "金蛇游身,如有万蛇缠身,成功后使敌人忙乱" + (time / 1000) + "秒。";
}
}
};