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

37 lines
1019 B
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.id = "sword";
this.name = "基本剑法";
this.grade = 0;
this.type = SKILL_TYPES.BASE;
this.attack_actions = [
"$N用$W往$n的$l刺去", "$N用$W往$n的$l砍去", "$N挥动$W,斩向$n的$l"
];
this.set_default(this.id);
this.desc = "剑法类技能的基础功法,磨练你的技巧,坚持锻炼会增加你自身的命中";
this.set_pfm("lian", {
name: "连击",
distime: 5,
mp: 5,
weapon_type: WEAPON_TYPE.SWORD,
use: function (me, target, lv) {
var msg = "<hig>$N加快速度手中的$W快速向$n刺去</hig>";
me.send_room(msg, target);
me.do_attack({
target: target,
gj: me.gj,
mz: me.mz
});
me.do_attack({
target: target,
gj: me.gj,
mz: me.mz
});
me.end_attack(target);
}, query_desc: function (me, lv) {
return "快速对敌人攻击两次";
}
});
this.query_prop = function (lv) {
return { mz: lv };
}