Subversion Cost
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 plan 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 plan factor = 1, for colony and former; 1/2, for all others