fix(Core/GroupHandler): Adjust maximum value for rolls. (#22686)
This commit is contained in:
@@ -3141,6 +3141,16 @@ LeaveGroupOnLogout.Enabled = 0
|
|||||||
|
|
||||||
Group.Raid.LevelRestriction = 10
|
Group.Raid.LevelRestriction = 10
|
||||||
|
|
||||||
|
#
|
||||||
|
# Group.RandomRollMaximum
|
||||||
|
#
|
||||||
|
# The maximum value for use with the client '/roll' command.
|
||||||
|
# Blizzlike and maximum value is 1000000. (Based on Classic and 3.3.5a client testing respectively)
|
||||||
|
# Default: 1000000
|
||||||
|
#
|
||||||
|
|
||||||
|
Group.RandomRollMaximum = 1000000
|
||||||
|
|
||||||
#
|
#
|
||||||
###################################################################################################
|
###################################################################################################
|
||||||
|
|
||||||
|
|||||||
@@ -543,10 +543,8 @@ void WorldSession::HandleRandomRollOpcode(WorldPackets::Misc::RandomRollClient&
|
|||||||
maximum = packet.Max;
|
maximum = packet.Max;
|
||||||
|
|
||||||
/** error handling **/
|
/** error handling **/
|
||||||
if (minimum > maximum || maximum > 10000) // < 32768 for urand call
|
if (minimum > maximum || maximum > sWorld->getIntConfig(CONFIG_RANDOM_ROLL_MAXIMUM))
|
||||||
{
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
GetPlayer()->DoRandomRoll(minimum, maximum);
|
GetPlayer()->DoRandomRoll(minimum, maximum);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -492,6 +492,8 @@ void WorldConfig::BuildConfigCache()
|
|||||||
|
|
||||||
SetConfigValue<bool>(CONFIG_LEAVE_GROUP_ON_LOGOUT, "LeaveGroupOnLogout.Enabled", false);
|
SetConfigValue<bool>(CONFIG_LEAVE_GROUP_ON_LOGOUT, "LeaveGroupOnLogout.Enabled", false);
|
||||||
|
|
||||||
|
SetConfigValue<uint32>(CONFIG_RANDOM_ROLL_MAXIMUM, "Group.RandomRollMaximum", 1000000);
|
||||||
|
|
||||||
SetConfigValue<bool>(CONFIG_QUEST_POI_ENABLED, "QuestPOI.Enabled", true);
|
SetConfigValue<bool>(CONFIG_QUEST_POI_ENABLED, "QuestPOI.Enabled", true);
|
||||||
|
|
||||||
SetConfigValue<uint32>(CONFIG_CHANGE_FACTION_MAX_MONEY, "ChangeFaction.MaxMoney", 0);
|
SetConfigValue<uint32>(CONFIG_CHANGE_FACTION_MAX_MONEY, "ChangeFaction.MaxMoney", 0);
|
||||||
|
|||||||
@@ -129,6 +129,7 @@ enum ServerConfigs
|
|||||||
CONFIG_ALLOW_JOIN_BG_AND_LFG,
|
CONFIG_ALLOW_JOIN_BG_AND_LFG,
|
||||||
CONFIG_MISS_CHANCE_MULTIPLIER_ONLY_FOR_PLAYERS,
|
CONFIG_MISS_CHANCE_MULTIPLIER_ONLY_FOR_PLAYERS,
|
||||||
CONFIG_LEAVE_GROUP_ON_LOGOUT,
|
CONFIG_LEAVE_GROUP_ON_LOGOUT,
|
||||||
|
CONFIG_RANDOM_ROLL_MAXIMUM,
|
||||||
CONFIG_QUEST_POI_ENABLED,
|
CONFIG_QUEST_POI_ENABLED,
|
||||||
CONFIG_VMAP_BLIZZLIKE_PVP_LOS,
|
CONFIG_VMAP_BLIZZLIKE_PVP_LOS,
|
||||||
CONFIG_VMAP_BLIZZLIKE_LOS_OPEN_WORLD,
|
CONFIG_VMAP_BLIZZLIKE_LOS_OPEN_WORLD,
|
||||||
|
|||||||
Reference in New Issue
Block a user