1
This commit is contained in:
parent
84194d5c9b
commit
1c1f59d1d5
@ -365,7 +365,7 @@ void Skill::ProcSSJS()
|
|||||||
if (GetLeftTime() <= 0) {
|
if (GetLeftTime() <= 0) {
|
||||||
#endif
|
#endif
|
||||||
if (owner->GetHPRate() <= SkillHelper::GetSsjsHpRate(skill_meta) &&
|
if (owner->GetHPRate() <= SkillHelper::GetSsjsHpRate(skill_meta) &&
|
||||||
rnd % 100 < SkillHelper::GetSsjsProb(skill_meta) &&
|
rnd % 100 < SkillHelper::GetSsjsProb(skill_meta) * 100 &&
|
||||||
add_speed_timer.expired()) {
|
add_speed_timer.expired()) {
|
||||||
owner->GetAbility()->AddSpeedAddition(speed_rate);
|
owner->GetAbility()->AddSpeedAddition(speed_rate);
|
||||||
xtimer_list* timer = owner->room->xtimer.AddDeadLineTimerAndAttach
|
xtimer_list* timer = owner->room->xtimer.AddDeadLineTimerAndAttach
|
||||||
@ -392,9 +392,10 @@ void Skill::ProcSSJS()
|
|||||||
{
|
{
|
||||||
std::string dbg_msg = a8::Format
|
std::string dbg_msg = a8::Format
|
||||||
(
|
(
|
||||||
"skill_id:%d 受伤加速 rnd:%d ratio2:%f probability:%f speed:%f time:%f 是否加速:%d",
|
"skill_id:%d 受伤加速 hp_rate:%f rnd:%d ratio2:%f probability:%f speed:%f time:%f 是否加速:%d",
|
||||||
{
|
{
|
||||||
meta->i->skill_id(),
|
meta->i->skill_id(),
|
||||||
|
owner->GetHPRate(),
|
||||||
rnd % 100,
|
rnd % 100,
|
||||||
meta->number_meta->float_ratio2,
|
meta->number_meta->float_ratio2,
|
||||||
meta->number_meta->float_probability,
|
meta->number_meta->float_probability,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user