15.08.2009 - 23.06.2013
"Wasteland is harsh"
December 22, 2024, 03:50:38 pm
Welcome,
Guest
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
fodev.net
|
Other
|
Archives
|
FOnline:2238 Forum
|
Closed suggestions
|
Smoother armor deterioration
Pages: [
1
]
Author
Topic: Smoother armor deterioration (Read 884 times)
Archvile
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
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
]
fodev.net
|
Other
|
Archives
|
FOnline:2238 Forum
|
Closed suggestions
|
Smoother armor deterioration