fix: temporary disable abmormal effects
This commit is contained in:
parent
38c8a67bfb
commit
e95d748f00
@ -29,17 +29,13 @@ namespace Interlude
|
||||
{
|
||||
const auto data = m_L2GameData.GetMSData(skillId, level);
|
||||
|
||||
if (!data) {
|
||||
throw RuntimeException(std::format(L"cannot load MSData for abnormal effect {}", skillId));
|
||||
}
|
||||
|
||||
const auto iconEntry = m_FName.GetEntry(data->iconNameIndex);
|
||||
const auto iconEntry = data ? m_FName.GetEntry(data->iconNameIndex) : nullptr;
|
||||
|
||||
return std::make_shared<Entities::AbnormalEffect>(
|
||||
skillId,
|
||||
static_cast<uint8_t>(level),
|
||||
data->name ? std::wstring(data->name) : L"",
|
||||
data->description ? std::wstring(data->description) : L"",
|
||||
data && data->name ? std::wstring(data->name) : L"",
|
||||
data && data->description ? std::wstring(data->description) : L"",
|
||||
iconEntry ? std::wstring(iconEntry->value) : L""
|
||||
);
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ public:
|
||||
{L"player", GetPlayerRepository()},
|
||||
{L"skill", GetSkillRepository()},
|
||||
{L"item", GetItemRepository()},
|
||||
{L"abnormalEffect", GetAbnormalEffectRepository()},
|
||||
//{L"abnormalEffect", GetAbnormalEffectRepository()},
|
||||
{L"chat", GetChatMessageRepository()}
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user