Fixes for overriden methods, compat with b41

This commit is contained in:
ZioPao
2025-03-31 22:22:17 +02:00
parent 1e754895a0
commit 671bf133e3
8 changed files with 82 additions and 12 deletions

View File

@@ -21,6 +21,9 @@ local StaticData = {}
---Mod name, used to setup Global Mod Data and various stuff
StaticData.MOD_NAME = "TOC"
-- Game version, used to correct some stuff instead of relying on versioned folders
StaticData.GAME_VERSION = getGameVersion()
-------------------------
--* Base
@@ -278,7 +281,7 @@ StaticData.AMPUTATION_CLOTHING_ITEM_BASE = "TOC.Amputation_"
local sawObj
local gardenSawObj
if luautils.stringStarts(getGameVersion(), "41") then
if luautils.stringStarts(StaticData.GAME_VERSION, "41") then
sawObj = InventoryItemFactory.CreateItem("Base.Saw")
gardenSawObj = InventoryItemFactory.CreateItem("Base.GardenSaw")
else