Shielded Cargo Holds

From Starsector Wiki
Jump to navigation Jump to search
Icon check.png
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

Shielded Cargo Holds Caught Table.png

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

Shielded Cargo Holds Confiscated Table.png

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.

Built-In Ships

Frigates

Destroyers