Project Zomboid

Project Zomboid

[B42] Show Weapon Stats Plus
B42.12.0 HandWeapon renames
Hi Hx—thanks for maintaining [B42] Show Weapon Stats Plus.
In ProjectZomboid\zombie\inventory\types\HandWeapon.class (Build 42.12.0) a few fields/methods were renamed. If your mod touches these, it can cause breaks:

· Categories → weaponCategories
· critDmgMultiplier → criticalDamageMultiplier
· getCategories() → getWeaponCategories()
· setCategories(...) → setWeaponCategories(...)
· getCritDmgMultiplier() → getCriticalDamageMultiplier()
· setCritDmgMultiplier(...) → setCriticalDamageMultiplier(...)

Lua impact (your file):
In swsp_main.lua, the crit damage line is commented with “42.12 Method ???”. Replace that legacy call with the new one:

-- OLD (commented) -- local critDamage = tostring(self:_round(item:getCritDmgMultiplier(), 3)) -- 42.12 Method ??? -- NEW local critDamage = tostring(self:_round(item:getCriticalDamageMultiplier(), 3)) -- B42.12 rename

You can then un-comment the two “Crit” display lines using critDamage exactly as before (one in the melee branch after the Range line, and one in the firearm branch after GunRange). This corresponds to the spots you already marked in the file swsp_main.lua

I hope this helps—and thanks again for the mod!