Project Zomboid

Project Zomboid

Dragons Simple Weapon Durability
Showing 1-6 of 6 entries
Update: 28 Jan, 2024 @ 11:16am

Fixed:

if (bIsRanged == true and bIncludeRanged == true) or (bIsRanged ~= true and bIncludeMelee == true) and (sModID == "pz-vanilla") or (sModID ~= "pz-vanilla" and bIncludeModded == true) then

Into:

if (bIsRanged == true and bIncludeRanged == true) or (bIsRanged ~= true and bIncludeMelee == true) and ((sModID == "pz-vanilla") or (sModID ~= "pz-vanilla" and bIncludeModded == true)) then

This was causing ranged weapons to still be modified after the option to modify ranged weapons was disabled. Not sure if this also fixes the other issue where ranged weapons randomly seem to loose all their durability. At any rate, you can at least disable modification of ranged weapons now.

Tested it for a while in singleplayer, but was unable to trigger the durability loss bug still. Prior to this update, it was still happening though, which is what prompted me to take a look, and where I discovered that range weapon toggle was not working.

Update: 30 Jul, 2023 @ 4:55am

Fixed some variablenames that were causing error on clients trying to connect to a server with the mod.

Update: 29 Jul, 2023 @ 5:55am

Added further filtering options for melee weapons: (SmallBlunt, Blunt, SmallBlade, LongBlade, Axe, Spear)

Items that have no "category" or a category that is blank, will not be affected by these filtering settings. E.g. ranged weapons have no category, but, they are still affected by the "include ranged" setting.

Also changed default settings a bit based on personal experience. Instead of multiplying durability reduction chance by 2 (which changes crowbar chance from 1:70 to 1:140), the new default just reduces the chance by adding a flat 5, so a crowbar would be 1:75, while something with say 1:10 chance will now be 1:15.

Feels a bit more balanced this way, as otherwise, already durable items would basically be indestructible, while other very fragile items only seeing a minor improvement in comparison, making the gap in durability even worse.

Your existing settings should stay the same, otherwise, you can always change the settings to your preference. Let me know if I need to add higher values to the flat increases, as that might seem relevant.

Update: 18 Jul, 2023 @ 9:42am

Updated some translation errors on my part

Update: 13 Jul, 2023 @ 8:59am

Removed the debug logging and added a proper description.

Update: 13 Jul, 2023 @ 8:17am