修改收藏系统一处名称中文SpellName

移除收藏系统加载LoadCollectionConfigs,在rlall中集成加载
This commit is contained in:
尚美 2025-07-22 23:22:47 +08:00
parent 5de3172309
commit 244f383b96
2 changed files with 1 additions and 17 deletions

View File

@ -1725,7 +1725,7 @@ void CollectionMgr::SendCompanionsData(Player* player)
if (count > 0)
data << "|";
data << CompanionsSpellId << "|";
data << spellInfo->SpellName[0] << "|";
data << spellInfo->SpellName[4] << "|";
data << description << "|";
data << (hasCollected ? "1" : "0");
count++;

View File

@ -272,21 +272,6 @@ public:
}
};
class CollectionSystem_WorldScript : public WorldScript
{
public:
CollectionSystem_WorldScript() : WorldScript("CollectionSystem_WorldScript") {}
// 服务器启动时初始化收藏系统
void OnStartup() override
{
// 加载所有收藏配置
sCollectionMgr->LoadCollectionConfigs();
//DEBUG_LOG("server.worldserver", "收藏系统: 初始化完成");
}
};
// 添加自定义命令,用于测试收藏系统
class CollectionSystem_CommandScript : public CommandScript
{
@ -633,7 +618,6 @@ public:
void AddCollectionSystemScripts()
{
new CollectionSystem_PlayerScript();
new CollectionSystem_WorldScript();
new CollectionSystem_CommandScript();
new CollectionSystem_UnitScript();
}