10级兵器连招特效判断算法
ap = 你的武学修养等级dp = 对手的有效招架 = 基本parry/2+特殊parry + 各种buff造成的有效招架增加
当(0.5-1.5)* ap > dp/2连招特效命中, 否则被躲闪
------------------
ap = me->query_skill("martial-cognize",1);
dp = victim->query_skill("parry");
if (ap / 2 + random(ap) > dp / 2)
msg += HIR "$n" HIR "大骇之下连忙后退,可已然不及闪避,慌乱"
"中不禁破绽迭出。\n" HIW "$N" HIW "盯住$n" HIW "招中"
"破绽,疾速旋转手中" + weapon->name() + HIW ",电光火"
"石间已朝$n" HIW "攻出" + chinese_number(times) + HIW
"招!\n" NOR;
else
{
msg += CYN "可是$n" CYN "冥神抵挡,将$N"
CYN "此招的所有变化全然封住。\n" NOR;
message_combatd(msg, me, victim);
return;
}
页:
[1]