Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! 2.6/7 » The Academy » Displayed defense values
Displayed defense values Tue, 27 July 2004 23:58 Go to previous message
LEit is currently offline LEit

 
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.



- LEit

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: table of tech values at different levels?
Next Topic: Minerals - mining and depletion
Goto Forum:
  


Current Time: Sun Jul 07 01:33:44 EDT 2024