Difference between revisions of "Subversion Cost"

From Alpha Centauri Wiki
Jump to: navigation, search
(Subversion cost calculation algorithm)
 
m
Line 1: Line 1:
 
= Algorithm =
 
= Algorithm =
  
 +
Calculate distance to HQ. If there is no HQ set distance to 12.
  
 +
Halve distance if vehicle home base has PUNISHMENT SPHERE.
 +
 +
Add 2 to distance.
 +
 +
Get target faction EC.
 +
 +
Add 800 to that.
 +
 +
Divide by modified distance.
 +
 +
Times unit cost.
 +
 +
For computer probe acting against human target at the difficulty > 3 the cost above is multiplied by 3/<difficulty>.
 +
 +
Then it is modified by probe faction PROBECOST.
 +
 +
Then it is modified by The Nethack Terminus bonus.
 +
 +
Double it for target vehicle with PE.
 +
 +
Halve it for all vehicles except colonies and formers.
 +
 +
= Formula =
 +
 +
subversion cost = (800 + EC) / (2 + distance to HQ) * unit cost * difficulty modifier * PROBECOST * The Nethack Terminus bonus * PE factor * unit type factor
 +
 +
distance to HQ = 12, if no HQ
 +
difficulty modifier = 3 / difficulty, for computer probe subverting human unit at difficulty > 3
 +
PE factor = 2, for units with Polymorphic Encryption
 +
unit type factor = 1, for colony and former; 1/2, for all others
  
 
[[Category:Concepts]]
 
[[Category:Concepts]]

Revision as of 18:03, 13 May 2021

Algorithm

Calculate distance to HQ. If there is no HQ set distance to 12.

Halve distance if vehicle home base has PUNISHMENT SPHERE.

Add 2 to distance.

Get target faction EC.

Add 800 to that.

Divide by modified distance.

Times unit cost.

For computer probe acting against human target at the difficulty > 3 the cost above is multiplied by 3/<difficulty>.

Then it is modified by probe faction PROBECOST.

Then it is modified by The Nethack Terminus bonus.

Double it for target vehicle with PE.

Halve it for all vehicles except colonies and formers.

Formula

subversion cost = (800 + EC) / (2 + distance to HQ) * unit cost * difficulty modifier * PROBECOST * The Nethack Terminus bonus * PE factor * unit type factor

distance to HQ = 12, if no HQ
difficulty modifier = 3 / difficulty, for computer probe subverting human unit at difficulty > 3
PE factor = 2, for units with Polymorphic Encryption
unit type factor = 1, for colony and former; 1/2, for all others