feat(Core/Config): Enable/Disable Debug BG/Arena (#3001)
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1588709577858892600');
|
||||||
|
|
||||||
|
DELETE FROM `acore_string` WHERE `entry` IN (30085,30086);
|
||||||
|
INSERT INTO `acore_string` (`entry`, `content_default`) VALUES
|
||||||
|
(30085, 'Battleground Debugging is already enabled in the config, thus you are unable to enable/disable it with command.'),
|
||||||
|
(30086, 'Arena Debugging is already enabled in the config, thus you are unable to enable/disable it with command.');
|
||||||
@@ -793,14 +793,30 @@ uint8 BattlegroundMgr::BGArenaType(BattlegroundQueueTypeId bgQueueTypeId)
|
|||||||
|
|
||||||
void BattlegroundMgr::ToggleTesting()
|
void BattlegroundMgr::ToggleTesting()
|
||||||
{
|
{
|
||||||
m_Testing = !m_Testing;
|
if (sWorld->getBoolConfig(CONFIG_DEBUG_BATTLEGROUND))
|
||||||
sWorld->SendWorldText(m_Testing ? LANG_DEBUG_BG_ON : LANG_DEBUG_BG_OFF);
|
{
|
||||||
|
m_Testing = true;
|
||||||
|
sWorld->SendWorldText(LANG_DEBUG_BG_CONF);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
m_Testing = !m_Testing;
|
||||||
|
sWorld->SendWorldText(m_Testing ? LANG_DEBUG_BG_ON : LANG_DEBUG_BG_OFF);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void BattlegroundMgr::ToggleArenaTesting()
|
void BattlegroundMgr::ToggleArenaTesting()
|
||||||
{
|
{
|
||||||
m_ArenaTesting = !m_ArenaTesting;
|
if (sWorld->getBoolConfig(CONFIG_DEBUG_ARENA))
|
||||||
sWorld->SendWorldText(m_ArenaTesting ? LANG_DEBUG_ARENA_ON : LANG_DEBUG_ARENA_OFF);
|
{
|
||||||
|
m_ArenaTesting = true;
|
||||||
|
sWorld->SendWorldText(LANG_DEBUG_ARENA_CONF);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
m_ArenaTesting = !m_ArenaTesting;
|
||||||
|
sWorld->SendWorldText(m_ArenaTesting ? LANG_DEBUG_ARENA_ON : LANG_DEBUG_ARENA_OFF);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void BattlegroundMgr::SetHolidayWeekends(uint32 mask)
|
void BattlegroundMgr::SetHolidayWeekends(uint32 mask)
|
||||||
|
|||||||
@@ -1320,6 +1320,9 @@ enum AcoreStrings
|
|||||||
LANG_REMOVEITEM_ERROR = 30082,
|
LANG_REMOVEITEM_ERROR = 30082,
|
||||||
|
|
||||||
LANG_BG_SHARE_QUEST_ERROR = 30083,
|
LANG_BG_SHARE_QUEST_ERROR = 30083,
|
||||||
LANG_BG_READY_CHECK_ERROR = 30084
|
LANG_BG_READY_CHECK_ERROR = 30084,
|
||||||
|
|
||||||
|
LANG_DEBUG_BG_CONF = 30085,
|
||||||
|
LANG_DEBUG_ARENA_CONF = 30086
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1404,6 +1404,10 @@ void World::LoadConfigSettings(bool reload)
|
|||||||
|
|
||||||
m_int_configs[CONFIG_WAYPOINT_MOVEMENT_STOP_TIME_FOR_PLAYER] = sConfigMgr->GetIntDefault("WaypointMovementStopTimeForPlayer", 120);
|
m_int_configs[CONFIG_WAYPOINT_MOVEMENT_STOP_TIME_FOR_PLAYER] = sConfigMgr->GetIntDefault("WaypointMovementStopTimeForPlayer", 120);
|
||||||
|
|
||||||
|
//Debug
|
||||||
|
m_bool_configs[CONFIG_DEBUG_BATTLEGROUND] = sConfigMgr->GetBoolDefault("Debug.Battleground", false);
|
||||||
|
m_bool_configs[CONFIG_DEBUG_ARENA] = sConfigMgr->GetBoolDefault("Debug.Arena", false);
|
||||||
|
|
||||||
// call ScriptMgr if we're reloading the configuration
|
// call ScriptMgr if we're reloading the configuration
|
||||||
sScriptMgr->OnAfterConfigLoad(reload);
|
sScriptMgr->OnAfterConfigLoad(reload);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -176,6 +176,8 @@ enum WorldBoolConfigs
|
|||||||
CONFIG_ITEMDELETE_METHOD,
|
CONFIG_ITEMDELETE_METHOD,
|
||||||
CONFIG_ITEMDELETE_VENDOR,
|
CONFIG_ITEMDELETE_VENDOR,
|
||||||
CONFIG_SET_ALL_CREATURES_WITH_WAYPOINT_MOVEMENT_ACTIVE,
|
CONFIG_SET_ALL_CREATURES_WITH_WAYPOINT_MOVEMENT_ACTIVE,
|
||||||
|
CONFIG_DEBUG_BATTLEGROUND,
|
||||||
|
CONFIG_DEBUG_ARENA,
|
||||||
BOOL_CONFIG_VALUE_COUNT
|
BOOL_CONFIG_VALUE_COUNT
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
# CHARACTER DELETE OPTIONS
|
# CHARACTER DELETE OPTIONS
|
||||||
# ITEM DELETE OPTIONS
|
# ITEM DELETE OPTIONS
|
||||||
# CUSTOM SERVER OPTIONS
|
# CUSTOM SERVER OPTIONS
|
||||||
|
# DEBUG
|
||||||
#
|
#
|
||||||
###################################################################################################
|
###################################################################################################
|
||||||
|
|
||||||
@@ -3515,7 +3516,6 @@ ICC.Buff.Alliance = 73828
|
|||||||
###################################################################################################
|
###################################################################################################
|
||||||
|
|
||||||
###################################################################################################
|
###################################################################################################
|
||||||
#
|
|
||||||
# Packet Spoof Protection Settings
|
# Packet Spoof Protection Settings
|
||||||
#
|
#
|
||||||
# These settings determine which action to take when harmful packet spoofing is detected.
|
# These settings determine which action to take when harmful packet spoofing is detected.
|
||||||
@@ -3549,3 +3549,24 @@ PacketSpoof.BanDuration = 86400
|
|||||||
|
|
||||||
#
|
#
|
||||||
###################################################################################################
|
###################################################################################################
|
||||||
|
|
||||||
|
###################################################################################################
|
||||||
|
# DEBUG
|
||||||
|
#
|
||||||
|
# Debug.Battleground
|
||||||
|
# Description: Enable or disable Battleground 1v0 mode. (If enabled, the in-game command is disabled.)
|
||||||
|
# Default: 0 - (Disabled)
|
||||||
|
# 1 - (Enabled)
|
||||||
|
|
||||||
|
Debug.Battleground = 0
|
||||||
|
|
||||||
|
#
|
||||||
|
# Debug.Arena
|
||||||
|
# Description: Enable or disable Arena 1v1 mode. (If enabled, the in-game command is disabled.)
|
||||||
|
# Default: 0 - (Disabled)
|
||||||
|
# 1 - (Enabled)
|
||||||
|
|
||||||
|
Debug.Arena = 0
|
||||||
|
|
||||||
|
#
|
||||||
|
###################################################################################################
|
||||||
|
|||||||
Reference in New Issue
Block a user