feat(Core/Config): Add configuration options for point multipliers for arena team brackets. (#24631)

This commit is contained in:
Benjamin Jackson
2026-02-06 17:10:02 -05:00
committed by GitHub
parent c09ee1ddf3
commit 4e81f59d62
4 changed files with 20 additions and 2 deletions

View File

@@ -2501,6 +2501,20 @@ Arena.LegacyArenaPoints = 0
Rate.ArenaPoints = 1
#
# Rate.ArenaPoints2v2
# Description: Arena points gain rate for 2v2 bracket.
# Default: 0.76
Rate.ArenaPoints2v2 = 0.76
#
# Rate.ArenaPoints3v3
# Description: Arena points gain rate for 3v3 bracket.
# Default: 0.88
Rate.ArenaPoints3v3 = 0.88
#
# PvPToken.Enable
# Description: Character will receive a token after defeating another character that yields

View File

@@ -671,9 +671,9 @@ uint32 ArenaTeam::GetPoints(uint32 memberRating)
// Type penalties for teams < 5v5
if (Type == ARENA_TEAM_2v2)
points *= 0.76f;
points *= sWorld->getRate(RATE_ARENA_POINTS_2V2);
else if (Type == ARENA_TEAM_3v3)
points *= 0.88f;
points *= sWorld->getRate(RATE_ARENA_POINTS_3V3);
sScriptMgr->OnGetArenaPoints(this, points);

View File

@@ -117,6 +117,8 @@ void WorldConfig::BuildConfigCache()
SetConfigValue<float>(RATE_AUCTION_CUT, "Rate.Auction.Cut", 1.0f);
SetConfigValue<float>(RATE_HONOR, "Rate.Honor", 1.0f);
SetConfigValue<float>(RATE_ARENA_POINTS, "Rate.ArenaPoints", 1.0f);
SetConfigValue<float>(RATE_ARENA_POINTS_2V2, "Rate.ArenaPoints2v2", 0.76f);
SetConfigValue<float>(RATE_ARENA_POINTS_3V3, "Rate.ArenaPoints3v3", 0.88f);
SetConfigValue<float>(RATE_INSTANCE_RESET_TIME, "Rate.InstanceResetTime", 1.0f);
SetConfigValue<float>(RATE_MISS_CHANCE_MULTIPLIER_TARGET_CREATURE, "Rate.MissChanceMultiplier.TargetCreature", 11.0f);

View File

@@ -471,6 +471,8 @@ enum ServerConfigs
RATE_AUCTION_CUT,
RATE_HONOR,
RATE_ARENA_POINTS,
RATE_ARENA_POINTS_2V2,
RATE_ARENA_POINTS_3V3,
RATE_TALENT,
RATE_TALENT_PET,
RATE_CORPSE_DECAY_LOOTED,