Skip to content

Commit e9241db

Browse files
authored
Merge branch 'azerothcore:master' into master
2 parents b8d2838 + 65d39b5 commit e9241db

File tree

5 files changed

+10
-2
lines changed

5 files changed

+10
-2
lines changed

src/server/apps/worldserver/worldserver.conf.dist

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2423,6 +2423,13 @@ Rate.XP.BattlegroundKillEOTS = 1
24232423
Rate.XP.BattlegroundKillSOTA = 1
24242424
Rate.XP.BattlegroundKillIC = 1
24252425

2426+
#
2427+
# Rate.XP.BattlegroundBonus
2428+
# Description: Experience rate multiplier for battleground objectives (flag captures, base assaults, etc.).
2429+
# Default: 1
2430+
2431+
Rate.XP.BattlegroundBonus = 1
2432+
24262433
#
24272434
# Rate.Pet.LevelXP
24282435
# Description: Modifies the amount of experience required to level up a pet.

src/server/game/Entities/Player/Player.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6365,7 +6365,7 @@ bool Player::RewardHonor(Unit* uVictim, uint32 groupsize, int32 honor, bool awar
63656365
// Xinef: Only for BG activities
63666366
if (!uVictim)
63676367
{
6368-
uint32 xp = uint32(honor * (3 + GetLevel() * 0.30f));
6368+
uint32 xp = static_cast<uint32>(honor * (3 + GetLevel() * 0.30f) * sWorld->getRate(RATE_XP_BATTLEGROUND_BONUS));
63696369
sScriptMgr->OnPlayerGiveXP(this, xp, nullptr, PlayerXPSource::XPSOURCE_BATTLEGROUND);
63706370
GiveXP(xp, nullptr);
63716371
}

src/server/game/Entities/Unit/Unit.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6915,7 +6915,6 @@ void Unit::SendSpellNonMeleeDamageLog(SpellNonMeleeDamage* log)
69156915
data << uint8 (log->unused); // unused
69166916
data << uint32(log->blocked); // blocked
69176917
data << uint32(log->HitInfo);
6918-
data << uint32(log->HitInfo);
69196918
data << uint8(log->HitInfo & (SPELL_HIT_TYPE_CRIT_DEBUG | SPELL_HIT_TYPE_HIT_DEBUG | SPELL_HIT_TYPE_ATTACK_TABLE_DEBUG));
69206919
//if (log->HitInfo & SPELL_HIT_TYPE_CRIT_DEBUG)
69216920
//{

src/server/game/World/WorldConfig.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ void WorldConfig::BuildConfigCache()
6464
SetConfigValue<float>(RATE_XP_EXPLORE, "Rate.XP.Explore", 1.0f);
6565
SetConfigValue<float>(RATE_XP_PET, "Rate.XP.Pet", 1.0f);
6666
SetConfigValue<float>(RATE_XP_PET_NEXT_LEVEL, "Rate.Pet.LevelXP", 0.05f);
67+
SetConfigValue<float>(RATE_XP_BATTLEGROUND_BONUS, "Rate.XP.BattlegroundBonus", 1.0f);
6768
SetConfigValue<float>(RATE_REPAIRCOST, "Rate.RepairCost", 1.0f, ConfigValueCache::Reloadable::Yes, [](float const& value) { return value >= 0.0f; }, ">= 0");
6869

6970
SetConfigValue<float>(RATE_SELLVALUE_ITEM_POOR, "Rate.SellValue.Item.Poor", 1.0f);

src/server/game/World/WorldConfig.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ enum ServerConfigs
437437
RATE_XP_EXPLORE,
438438
RATE_XP_PET,
439439
RATE_XP_PET_NEXT_LEVEL,
440+
RATE_XP_BATTLEGROUND_BONUS,
440441
RATE_REPAIRCOST,
441442
RATE_REPUTATION_GAIN,
442443
RATE_REPUTATION_GAIN_AB,

0 commit comments

Comments
 (0)