mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-02 18:43:48 +00:00
[CORE] Arena points rate , thanks to Mik1983 for import
This commit is contained in:
@@ -601,6 +601,12 @@ void World::LoadConfigSettings(bool reload)
|
||||
sLog->outError("DurabilityLossChance.Block (%f) must be >=0. Using 0.0 instead.", rate_values[RATE_DURABILITY_LOSS_BLOCK]);
|
||||
rate_values[RATE_DURABILITY_LOSS_BLOCK] = 0.0f;
|
||||
}
|
||||
rate_values[RATE_ARENA_POINTS] = sConfigMgr->GetFloatDefault("Arena.Points.Rate", 1.0f);
|
||||
if (rate_values[RATE_ARENA_POINTS] < 1.0f)
|
||||
{
|
||||
sLog->outError("Rate.ArenaPoints (%f) must be >=1. Using 1.0 instead.", rate_values[RATE_ARENA_POINTS]);
|
||||
rate_values[RATE_ARENA_POINTS] = 1.0f;
|
||||
}
|
||||
///- Read other configuration items from the config file
|
||||
|
||||
m_bool_configs[CONFIG_DURABILITY_LOSS_IN_PVP] = sConfigMgr->GetBoolDefault("DurabilityLoss.InPvP", false);
|
||||
|
||||
@@ -375,6 +375,7 @@ enum Rates
|
||||
RATE_AUCTION_DEPOSIT,
|
||||
RATE_AUCTION_CUT,
|
||||
RATE_HONOR,
|
||||
RATE_ARENA_POINTS,
|
||||
RATE_TALENT,
|
||||
RATE_CORPSE_DECAY_LOOTED,
|
||||
RATE_INSTANCE_RESET_TIME,
|
||||
|
||||
Reference in New Issue
Block a user