Displayed defense values |
Tue, 27 July 2004 23:58 ![Go to next message Go to previous message](theme/Stars/images/down.png) |
|
LEit | ![](images/lt_commander.gif) | Lt. Commander | Messages: 879
Registered: April 2003 Location: CT | |
|
Orca and I have figured out how Stars! does defense values.
There are two displays of defense value, one for the owner, and one for other people scanning the world.
At energy tech 1, defenses have a value of 1%
en 5, 2%
en 10, 2.4%
en 16, 3%
en 23, 3.8%
Take that value (v) the number of defenses (n) and use this to get the 'true' value:
true = 1-(1-v)^n
if n is 1, then subtract .01
if n is 2 and en tech is 16, then subtract .01
To get the displayed value for the owner, if the digit right after the decimal is a 0, drop it. IOW 31.05 true displays as 31.5.
To get the displayed value for other players:
min(93, int((true-1.5)/6)*6+9)
To go from displayed value (dv) to a range of actual values:
if dv is 9, then the true range is 1 to 7.5
if dv is 93, then the true range is 85.5 to 97.92
otherwise the true range is dv-7.5 to dv-1.5
Note: we have not tested if these are correct for bombing, packets, and/or invasions. I would guess that the true value is what is used.
- LEitReport message to a moderator
|
|
|