*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:
1 parent
7b1a842041
commit
8499812eb6
3 files changed
+17
-5
No files matched your search
@@ -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