mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-10 20:19:49 +01:00
*Update heal calculation formula for Death Strike and apply improved death strike bonus if avalible
*Use floor() function for rounding in rep gain calculation *Add some debug info to WorldSession::HandleMoveWorldportAckOpcode() --HG-- branch : trunk
This commit is contained in:
@@ -255,7 +255,7 @@ bool ReputationMgr::SetOneFactionReputation(FactionEntry const* factionEntry, in
|
||||
if(incremental)
|
||||
{
|
||||
// int32 *= float cause one point loss?
|
||||
standing = (int32)((float)standing * sWorld.getRate(RATE_REPUTATION_GAIN));
|
||||
standing = floor((float)standing * sWorld.getRate(RATE_REPUTATION_GAIN) + 0.5f);
|
||||
standing += itr->second.Standing + BaseRep;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user