fodev.net

Other => FOnline:2238 Forum => Archives => Closed suggestions => Topic started by: Archvile on February 07, 2010, 02:46:22 pm

Title: Smoother armor deterioration
Post by: Archvile 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
Title: Re: Smoother armor deterioration
Post by: Solar on February 07, 2010, 03:24:33 pm
Seems reasonable to me.