Skip to content

Commit 4e81f59

Browse files
authored
feat(Core/Config): Add configuration options for point multipliers for arena team brackets. (#24631)
1 parent c09ee1d commit 4e81f59

File tree

4 files changed

+20
-2
lines changed

4 files changed

+20
-2
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2501,6 +2501,20 @@ Arena.LegacyArenaPoints = 0
25012501

25022502
Rate.ArenaPoints = 1
25032503

2504+
#
2505+
# Rate.ArenaPoints2v2
2506+
# Description: Arena points gain rate for 2v2 bracket.
2507+
# Default: 0.76
2508+
2509+
Rate.ArenaPoints2v2 = 0.76
2510+
2511+
#
2512+
# Rate.ArenaPoints3v3
2513+
# Description: Arena points gain rate for 3v3 bracket.
2514+
# Default: 0.88
2515+
2516+
Rate.ArenaPoints3v3 = 0.88
2517+
25042518
#
25052519
# PvPToken.Enable
25062520
# Description: Character will receive a token after defeating another character that yields

src/server/game/Battlegrounds/ArenaTeam.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -671,9 +671,9 @@ uint32 ArenaTeam::GetPoints(uint32 memberRating)
671671

672672
// Type penalties for teams < 5v5
673673
if (Type == ARENA_TEAM_2v2)
674-
points *= 0.76f;
674+
points *= sWorld->getRate(RATE_ARENA_POINTS_2V2);
675675
else if (Type == ARENA_TEAM_3v3)
676-
points *= 0.88f;
676+
points *= sWorld->getRate(RATE_ARENA_POINTS_3V3);
677677

678678
sScriptMgr->OnGetArenaPoints(this, points);
679679

src/server/game/World/WorldConfig.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ void WorldConfig::BuildConfigCache()
117117
SetConfigValue<float>(RATE_AUCTION_CUT, "Rate.Auction.Cut", 1.0f);
118118
SetConfigValue<float>(RATE_HONOR, "Rate.Honor", 1.0f);
119119
SetConfigValue<float>(RATE_ARENA_POINTS, "Rate.ArenaPoints", 1.0f);
120+
SetConfigValue<float>(RATE_ARENA_POINTS_2V2, "Rate.ArenaPoints2v2", 0.76f);
121+
SetConfigValue<float>(RATE_ARENA_POINTS_3V3, "Rate.ArenaPoints3v3", 0.88f);
120122
SetConfigValue<float>(RATE_INSTANCE_RESET_TIME, "Rate.InstanceResetTime", 1.0f);
121123

122124
SetConfigValue<float>(RATE_MISS_CHANCE_MULTIPLIER_TARGET_CREATURE, "Rate.MissChanceMultiplier.TargetCreature", 11.0f);

src/server/game/World/WorldConfig.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,8 @@ enum ServerConfigs
471471
RATE_AUCTION_CUT,
472472
RATE_HONOR,
473473
RATE_ARENA_POINTS,
474+
RATE_ARENA_POINTS_2V2,
475+
RATE_ARENA_POINTS_3V3,
474476
RATE_TALENT,
475477
RATE_TALENT_PET,
476478
RATE_CORPSE_DECAY_LOOTED,

0 commit comments

Comments
 (0)