Shielded Cargo Holds
Jump to navigation
Jump to search
Up to date for latest version, 0.97a.
Overview
This modification is only built-in, it cannot be found or added to other ships.
Notes
The chance of getting caught can be calculated as and a data table example is shown to the right:
(this does not not work any more)
math.random < (illegalCargoCarrying/totalCargoCarrying) * (0.25 + 0.75 * (1 - shieldedCargo/totalCargoCanCarry)) * 2
The amount of contraband confiscated when caught can be calculated as and a data table example is shown to the right:
(0.33 + math.random() * 0.67) * (0.25f + 0.75 * 1 - shieldedCargo/totalCargoCanCarry)
Keep in mind, math.random() is generated on a range from [0,1) and the amount confiscated will always be at least 1.