mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-15 05:25:08 +00:00
Missing code for XP Battlegrounds
This commit is contained in:
@@ -158,7 +158,7 @@ namespace Trinity
|
||||
return baseGain;
|
||||
}
|
||||
|
||||
inline uint32 Gain(Player* player, Unit* u)
|
||||
inline uint32 Gain(Player* player, Unit* u, bool isBattleGround = false)
|
||||
{
|
||||
Creature* creature = u->ToCreature();
|
||||
uint32 gain = 0;
|
||||
|
||||
@@ -499,6 +499,7 @@ void World::LoadConfigSettings(bool reload)
|
||||
rate_values[RATE_DROP_ITEM_REFERENCED_AMOUNT] = sConfigMgr->GetFloatDefault("Rate.Drop.Item.ReferencedAmount", 1.0f);
|
||||
rate_values[RATE_DROP_MONEY] = sConfigMgr->GetFloatDefault("Rate.Drop.Money", 1.0f);
|
||||
rate_values[RATE_XP_KILL] = sConfigMgr->GetFloatDefault("Rate.XP.Kill", 1.0f);
|
||||
rate_values[RATE_XP_BG_KILL] = sConfigMgr->GetFloatDefault("Rate.XP.BattlegroundKill", 1.0f);
|
||||
rate_values[RATE_XP_QUEST] = sConfigMgr->GetFloatDefault("Rate.XP.Quest", 1.0f);
|
||||
rate_values[RATE_XP_EXPLORE] = sConfigMgr->GetFloatDefault("Rate.XP.Explore", 1.0f);
|
||||
rate_values[RATE_REPAIRCOST] = sConfigMgr->GetFloatDefault("Rate.RepairCost", 1.0f);
|
||||
|
||||
@@ -346,6 +346,7 @@ enum Rates
|
||||
RATE_DROP_ITEM_REFERENCED_AMOUNT,
|
||||
RATE_DROP_MONEY,
|
||||
RATE_XP_KILL,
|
||||
RATE_XP_BG_KILL,
|
||||
RATE_XP_QUEST,
|
||||
RATE_XP_EXPLORE,
|
||||
RATE_REPAIRCOST,
|
||||
|
||||
@@ -2167,7 +2167,7 @@ Rate.Drop.Item.ReferencedAmount = 1
|
||||
# Rate.XP.Kill
|
||||
# Rate.XP.Quest
|
||||
# Rate.XP.Explore
|
||||
# Description: Experience rates.
|
||||
# Description: Experience rates (outside battleground)
|
||||
# Default: 1 - (Rate.XP.Kill)
|
||||
# 1 - (Rate.XP.Quest)
|
||||
# 1 - (Rate.XP.Explore)
|
||||
@@ -2176,6 +2176,14 @@ Rate.XP.Kill = 1
|
||||
Rate.XP.Quest = 1
|
||||
Rate.XP.Explore = 1
|
||||
|
||||
#
|
||||
# Rate.XP.BattlegroundKill
|
||||
# Description: Experience rate for honorable kills in battlegrounds,
|
||||
# it works when Battleground.GiveXPForKills = 1
|
||||
# Default: 1
|
||||
|
||||
Rate.XP.BattlegroundKill = 1
|
||||
|
||||
#
|
||||
# Rate.RepairCost
|
||||
# Description: Repair cost rate.
|
||||
|
||||
Reference in New Issue
Block a user