Cataclysm-TISH-team / Cataclysm-TISH

Cataclysm: There Is Still Hope - a fork of Cataclysm: Dark Days Ahead by CleverRaven.
Other
83 stars 5 forks source link

Wheels with very high durability don't get damaged when they run over nailboard trap #75

Closed Night-Pryanik closed 1 year ago

Night-Pryanik commented 1 year ago

Summary

Bugfixes "Wheels with very high durability don't get damaged when they run over nailboard trap"

Purpose of change

Clоse https://github.com/CleverRaven/Cataclysm-DDA/issues/63943.

Describe the solution

Added a check for wheel's durability when determining if wheel should be damaged. Also, while I'm here, I increased durability of rail wheels. They are solid and strong metal wheels after all, but had durability of 180, which was lower than durability of ordinary wheel (200).

Describe alternatives you've considered

None

Testing

Got road roller, drove over nailboard trap, checked absence of messages and no damage dealt. Got ordinary car, drove over nailboard trap, check message about car's wheel run over the trap and destruction of the wheel.

Additional context

None.