Changes

Jump to navigation Jump to search

Documentation/Engine/Units/cargo data

306 bytes added, 04:42, 15 May 2019
no edit summary
The '''cargo_data''' unit class is used to define the logistical, semantic, and economic properties of a cargo. Units of this type are usually defined in '''/def/cargo/<cargo_name>.sii''' and [[Documentation/Engine/Units#Includes|included ]] in '''/def/cargo.<mod_name>.sii''' and therefore '''must not''' use the SiiNunit magic mark.
== Attributes ==
|The name of the cargo for ui display. Supports @@localization@@.
|-
|price_coefbody_types|array&lt;token&gt;||List of body types the cargo can be loaded in.|-|volume|float||The volume in m<sup>3</sup> of one unit of cargo.|-|mass|float||The mass in kg of one unit of cargo.|-|unit_reward_per_km
|float
|1.0|Defines how much to multiply The reward in the base revenue per kilometer (usually $15/km) for currency to transport one unit of the cargoone kilometer. For example, <code>price_coef: 2.0</code> yields $30/km|-|unit_load_time|float||The time in seconds to load one unit of cargo.
|-
|fragility
|false
|When true, the player will require the Valuable Cargo skill to take the cargo and will receive related skill bonuses to XP and income.
|-
|overweight
|bool
|false
|
|-
|adr_class
*construction
*bulk
*oversize
</div>
Typically, the ''fragile'' category is reserved for cargoes with a '''fragility''' of 0.7 or higher.
309
edits

Navigation menu