fodev.net
15.08.2009 - 23.06.2013
"Wasteland is harsh"
Home Forum Help Login Register
  • November 25, 2024, 01:57:20 pm
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Play WikiBoy BugTracker Developer's blog
Pages: [1]

Author Topic: Smoother armor deterioration  (Read 865 times)

Smoother armor deterioration
« on: February 07, 2010, 02:46:22 pm »

Currently, even 1% deterioration means that you loose a point of DT/DR/AC. For a leather armor this means decreasing its DT by half, which doesn't make any sense. If an armor has 2 points of DT, it should lose the first point at ~33% deterioration, and the second at ~67%.

I believe that the current formula looks like this:

current_armor_stat = max_armor_stat*(1 - deterioration) rounded down

To fix this, it should be like that:

if(deterioration == 0)
current_armor_stat = max_armor_stat
else
current_armor_stat = (max_armor_stat + 1)*(1 - deterioration) rounded down

or:

current_armor_stat = (max_armor_stat + 0.99)*(1 - deterioration) rounded down
Logged

Solar

  • Rotator
  • Offline
Re: Smoother armor deterioration
« Reply #1 on: February 07, 2010, 03:24:33 pm »

Seems reasonable to me.
Logged
Quote from: Woodrow Wilson
If you want to make enemies, try to change something.
Pages: [1]
 

Page created in 0.075 seconds with 21 queries.