Skip to content

Commit

Permalink
fix: soulprimsm being returned
Browse files Browse the repository at this point in the history
  • Loading branch information
phacUFPE committed Dec 6, 2024
1 parent 1106b4c commit b585691
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lua/functions/core/game/game_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1047,6 +1047,9 @@ int GameFunctions::luaGameGetSoulCoreItems(lua_State* L) {
std::vector<const ItemType*> soulCoreItems;

for (const auto &itemType : Item::items.getItems()) {
if (itemType.m_primaryType.empty() && itemType.type == ITEM_TYPE_NONE) {
continue;
}
if (itemType.m_primaryType == "SoulCores" || itemType.type == ITEM_TYPE_SOULCORES) {
soulCoreItems.emplace_back(&itemType);
}
Expand Down

0 comments on commit b585691

Please sign in to comment.