Formulas
A collection of formulas used in the game
Name Formula Description
Score
 score = sum (resources) / 100
         + sum(res_cost_units) / 10
         + sum(res_cost_pds) / 10
         + sum(res_cost_scan) / 10
         + sum(res_cost_research_done) / 10
         + sum(res_cost_construct_done) / 10
         + sum(init_roids) * 1500
All spent resources counts as one 10th towards your score.
Resource
if (num_of_res_roid < 42) {
  res_per_type = (351 - num_of_res_roid)
                    * num_of_res_roid;
} else {
  res_per_type = sqrt(num_of_res_roid)
                   * (2000 + rc_modifier);
}
res_per_type = res_per_type + planet_income;
Resources per tick based on number of roids of a certain type.
Resource (havoc)
res_per_type = max(351 - num_of_res_roid, 150)
                 * num_of_res_roid;
res_per_type = res_per_type + planet_income;
Resources per tick during havoc.
Roid scan
if (total_roids > 200) {
  chance = 30 * (amps/(total_roids*2));
} else if (total_roids > 0) {
  chance = 30 * (1 + amps/(total_roids*3));
} else {
  chance = 31 * (1 + amps/2);
}
max chance = 99.99%
min chance = 0.01%
Chance to find an asteroid based on wave amplifiers and existing roids.
General scan
chance = 30 * (1 + amps/total_roids
                 - reflector/target_roids);
rval = random(0, 100);
scan_fact = 2; // sector
            4; // unit
            5; // pds
            7; // news
            8; // military
if (rval < chance) {
  reached = TRUE;
  if (rval + 5*scan_fact > chance)
    noticed = TRUE;
} else {
  blocked = TRUE;
}
Chance to successfully scan a target.
Protection
if (target_score * 3 < my_score)
  "Target too small";
You may only attack targets within this score range.
Traffic control
if (havoc == 0 &&
    attacker_fleet_score >
      (2.5 * target_score)) {
  return "Denied access";
}
Limits the attacking forces onto a single target.
Salvage
max_salvage = 0.25 * res(all_ships_lost);
your_salvage = (res(your_fleet_score) /
       res(all_def_fleet_score))
     * max_salvage;
if (your_salvage > 2 * your_losses)
  your_salvage = 2 * your_losses;
Salvage gained during defense. No losses = no salvage.
Unused Acc Unused accounts with less than 4 roids are deleted after 12 hours idle.
Deleted Acc Accounts marked for deletion are deleted after 12 hours. Login cancels deletion.
Banned Acc Banned accounts are deleted after 36 hours.