修正输出日志
This commit is contained in:
parent
cee073896d
commit
b715ec6f1a
@ -222,6 +222,7 @@ void CollectionMgr::LoadPetConfigs()
|
||||
// 新增:加载卡牌配置
|
||||
void CollectionMgr::LoadCardConfigs()
|
||||
{
|
||||
uint32 oldMSTime = getMSTime();
|
||||
_cardConfigs.clear();
|
||||
QueryResult result = WorldDatabase.Query("SELECT `ID`, `属性加成ID` FROM acore_custom.`__sm收藏卡牌配置表`");
|
||||
|
||||
@ -239,8 +240,7 @@ void CollectionMgr::LoadCardConfigs()
|
||||
_cardConfigs[config.itemId] = config;
|
||||
++count;
|
||||
} while (result->NextRow());
|
||||
|
||||
DEBUG_LOG("server.worldserver", ">> 加载卡牌配置 {} 条", count);
|
||||
sLog->outMessage("server", LogLevel::LOG_LEVEL_INFO, ">> 读取自定义功能数据表【__sm收藏卡牌配置表-----】,共{}条数据读取加载,用时{}毫秒", count, GetMSTimeDiffToNow(oldMSTime));
|
||||
}
|
||||
|
||||
// 新增:加载物品配置
|
||||
|
||||
@ -40,8 +40,7 @@ void MapEquipmentController::LoadEquipmentRestrictions()
|
||||
|
||||
mapItemRestrictions.emplace(mapId, std::move(slots));
|
||||
} while (result->NextRow());
|
||||
|
||||
LOG_INFO("server.loading", ">> 已加载 {} 个地图装备限制规则,耗时 {} 毫秒", mapItemRestrictions.size(), GetMSTimeDiffToNow(oldMSTime));
|
||||
sLog->outMessage("server", LogLevel::LOG_LEVEL_INFO, ">> 读取自定义功能数据表【_地图装备控制----------】,共{}条数据读取加载,用时{}毫秒", mapItemRestrictions.size(), GetMSTimeDiffToNow(oldMSTime));
|
||||
}
|
||||
|
||||
bool MapEquipmentController::CanEquipItem(Player* player, uint8 slot, uint32 itemId)
|
||||
|
||||
@ -8,8 +8,8 @@ std::unordered_map<uint32, MountAllowedTemplate> MountAllowedMap;
|
||||
// 数据加载函数
|
||||
void MountRestrictionMgr::Load()
|
||||
{
|
||||
uint32 oldMSTime = getMSTime();
|
||||
MountAllowedMap.clear();
|
||||
|
||||
QueryResult result = WorldDatabase.Query(
|
||||
"SELECT 坐骑技能ID, 是否允许室内使用, 是否允许副本使用, 是否允许战场使用, "
|
||||
"禁用地图ID1, 禁用地图ID2, 禁用地图ID3, 禁用地图ID4, 禁用地图ID5, "
|
||||
@ -17,11 +17,7 @@ void MountRestrictionMgr::Load()
|
||||
"FROM acore_custom._坐骑_使用区域"
|
||||
);
|
||||
|
||||
if (!result)
|
||||
{
|
||||
LOG_INFO("server.loading", ">> Loaded 0 mount restriction entries.");
|
||||
return;
|
||||
}
|
||||
if (!result) return;
|
||||
|
||||
uint32 count = 0;
|
||||
do
|
||||
@ -43,8 +39,7 @@ void MountRestrictionMgr::Load()
|
||||
++count;
|
||||
|
||||
} while (result->NextRow());
|
||||
|
||||
LOG_INFO("server.loading", ">> Loaded {} mount restriction entries.", count);
|
||||
sLog->outMessage("server", LogLevel::LOG_LEVEL_INFO, ">> 读取自定义功能数据表【_坐骑_使用区域---------】,共{}条数据读取加载,用时{}毫秒", count, GetMSTimeDiffToNow(oldMSTime));
|
||||
}
|
||||
|
||||
MountAllowedTemplate* MountRestrictionMgr::GetMountAllowedData(uint32 spellId)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user