feat(Core/Config): Add configuration options for point multipliers for arena team brackets. (#24631)
This commit is contained in:
@@ -2501,6 +2501,20 @@ Arena.LegacyArenaPoints = 0
|
|||||||
|
|
||||||
Rate.ArenaPoints = 1
|
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
|
# PvPToken.Enable
|
||||||
# Description: Character will receive a token after defeating another character that yields
|
# Description: Character will receive a token after defeating another character that yields
|
||||||
|
|||||||
@@ -671,9 +671,9 @@ uint32 ArenaTeam::GetPoints(uint32 memberRating)
|
|||||||
|
|
||||||
// Type penalties for teams < 5v5
|
// Type penalties for teams < 5v5
|
||||||
if (Type == ARENA_TEAM_2v2)
|
if (Type == ARENA_TEAM_2v2)
|
||||||
points *= 0.76f;
|
points *= sWorld->getRate(RATE_ARENA_POINTS_2V2);
|
||||||
else if (Type == ARENA_TEAM_3v3)
|
else if (Type == ARENA_TEAM_3v3)
|
||||||
points *= 0.88f;
|
points *= sWorld->getRate(RATE_ARENA_POINTS_3V3);
|
||||||
|
|
||||||
sScriptMgr->OnGetArenaPoints(this, points);
|
sScriptMgr->OnGetArenaPoints(this, points);
|
||||||
|
|
||||||
|
|||||||
@@ -117,6 +117,8 @@ void WorldConfig::BuildConfigCache()
|
|||||||
SetConfigValue<float>(RATE_AUCTION_CUT, "Rate.Auction.Cut", 1.0f);
|
SetConfigValue<float>(RATE_AUCTION_CUT, "Rate.Auction.Cut", 1.0f);
|
||||||
SetConfigValue<float>(RATE_HONOR, "Rate.Honor", 1.0f);
|
SetConfigValue<float>(RATE_HONOR, "Rate.Honor", 1.0f);
|
||||||
SetConfigValue<float>(RATE_ARENA_POINTS, "Rate.ArenaPoints", 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_INSTANCE_RESET_TIME, "Rate.InstanceResetTime", 1.0f);
|
||||||
|
|
||||||
SetConfigValue<float>(RATE_MISS_CHANCE_MULTIPLIER_TARGET_CREATURE, "Rate.MissChanceMultiplier.TargetCreature", 11.0f);
|
SetConfigValue<float>(RATE_MISS_CHANCE_MULTIPLIER_TARGET_CREATURE, "Rate.MissChanceMultiplier.TargetCreature", 11.0f);
|
||||||
|
|||||||
@@ -471,6 +471,8 @@ enum ServerConfigs
|
|||||||
RATE_AUCTION_CUT,
|
RATE_AUCTION_CUT,
|
||||||
RATE_HONOR,
|
RATE_HONOR,
|
||||||
RATE_ARENA_POINTS,
|
RATE_ARENA_POINTS,
|
||||||
|
RATE_ARENA_POINTS_2V2,
|
||||||
|
RATE_ARENA_POINTS_3V3,
|
||||||
RATE_TALENT,
|
RATE_TALENT,
|
||||||
RATE_TALENT_PET,
|
RATE_TALENT_PET,
|
||||||
RATE_CORPSE_DECAY_LOOTED,
|
RATE_CORPSE_DECAY_LOOTED,
|
||||||
|
|||||||
Reference in New Issue
Block a user