fix(Core): Correct Rest Bonus Formula (#13173)
This commit is contained in:
@@ -5429,7 +5429,8 @@ bool Player::LoadFromDB(ObjectGuid playerGuid, CharacterDatabaseQueryHolder cons
|
|||||||
? bubble1 * sWorld->getRate(RATE_REST_OFFLINE_IN_TAVERN_OR_CITY)
|
? bubble1 * sWorld->getRate(RATE_REST_OFFLINE_IN_TAVERN_OR_CITY)
|
||||||
: bubble0 * sWorld->getRate(RATE_REST_OFFLINE_IN_WILDERNESS);
|
: bubble0 * sWorld->getRate(RATE_REST_OFFLINE_IN_WILDERNESS);
|
||||||
|
|
||||||
SetRestBonus(GetRestBonus() + time_diff * ((float)GetUInt32Value(PLAYER_NEXT_LEVEL_XP) / 72000)*bubble);
|
// Client automatically doubles the value sent so we have to divide it by 2
|
||||||
|
SetRestBonus(GetRestBonus() + time_diff * ((float)GetUInt32Value(PLAYER_NEXT_LEVEL_XP) / 144000)*bubble);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32 innTriggerId = fields[72].Get<uint32>();
|
uint32 innTriggerId = fields[72].Get<uint32>();
|
||||||
|
|||||||
Reference in New Issue
Block a user