Project Zomboid

Project Zomboid

Simple Weapon Durability
Feature Request: Configure Minimum / Maximum
I currently play with 5 Times Durability due to some items breaking too fast for my liking (they still break too fast but if I set this any higher it has knock on effects for high durability items).

However this causes things that have high base Durability to become extremely durable.

My Idea would be:

Have 4 Fields to configure

Minimum

1 in x Chance: Here be a number
Durability Increase: Here be a number

Maximum

1 in x Chance: Here be a number
Durability Increase: Here be a number

----

Example

I want Items that have a durability loss of "1 in 5" to have 10x Durability but want an Item that has a durability loss of "1 in 50" to have 5x Durability.

So in game I would like to configure

Minimum

1 in x Chance: 5
Durability Increase: 10

Maximum

1 in x Chance: 50
Durability Increase: 5


The code would now use the items "1 in x" chance to determine the durability increase.

If it is below or above the min/ max configured it gets clamped (so a 1 in 4 item gets the 10x increase and a 1 in 100 gets the 5x increase in my example)

For example an item which has its durability loss halfway between "1 in 5" and "1 in 50" would get a 7.5 Increase in durability.

That way you could make very fragile items more usable without making durable items effectively indestructible.
< >
Viser 1-1 af 1 kommentarer
Kyu  [udvikler] 18. apr. 2022 kl. 5:58 
Sounds easy enough! I was actually procrastinating using similar logic for a high compatibility, mod friendly, backpack capacity mod. This might motivate me!
< >
Viser 1-1 af 1 kommentarer
Per side: 1530 50