1
This commit is contained in:
parent
d6985c1063
commit
12db6a6679
@ -548,7 +548,7 @@ float BattleDataContext::CalcDmg(Creature* target, IBullet* bullet)
|
|||||||
float crit = g_calc_dmg_context.is_crit ? GetCritRate(bullet) : 0;
|
float crit = g_calc_dmg_context.is_crit ? GetCritRate(bullet) : 0;
|
||||||
float dodge = IsDodge(bullet) ? GetDodgeRuduce(bullet) : 0;
|
float dodge = IsDodge(bullet) ? GetDodgeRuduce(bullet) : 0;
|
||||||
float finaly_dmg = normal_dmg * (1.0f + crit + dodge);
|
float finaly_dmg = normal_dmg * (1.0f + crit + dodge);
|
||||||
finaly_dmg *= (1 + owner_->GetAbility()->GetDmgAddition());
|
finaly_dmg *= (1 + owner_.Get()->GetAbility()->GetDmgAddition());
|
||||||
finaly_dmg *= (1 - target->GetAbility()->GetDmgRuduce());
|
finaly_dmg *= (1 - target->GetAbility()->GetDmgRuduce());
|
||||||
#if 1
|
#if 1
|
||||||
finaly_dmg *= (1 + bullet->GetStrengthenWall());
|
finaly_dmg *= (1 + bullet->GetStrengthenWall());
|
||||||
|
@ -3511,15 +3511,15 @@ void Human::ProcGemStoneItem(AddItemDTO& dto)
|
|||||||
(
|
(
|
||||||
GetWeakPtrRef(),
|
GetWeakPtrRef(),
|
||||||
kPropHp,
|
kPropHp,
|
||||||
GetHP(),
|
|
||||||
0,
|
0,
|
||||||
|
GetHP(),
|
||||||
true);
|
true);
|
||||||
room->frame_event.AddPropChg
|
room->frame_event.AddPropChg
|
||||||
(
|
(
|
||||||
GetWeakPtrRef(),
|
GetWeakPtrRef(),
|
||||||
kPropMaxHp,
|
kPropMaxHp,
|
||||||
GetMaxHP(),
|
|
||||||
0,
|
0,
|
||||||
|
GetMaxHP(),
|
||||||
true);
|
true);
|
||||||
dto.handled = true;
|
dto.handled = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user