/tg/ Station 13 - Modules - TypesVar Details - Proc Details

export

Vars

amount_report_multiplierThe multiplier of the amount sold shown on the report. Useful for exports, such as material, which costs are not strictly per single units sold.
costCost of item, in cargo credits. Must not allow for infinite price dupes, see above.
exclude_typesTypes excluded from export
export_typesType of the exported object. If none, the export datum is considered base type.
include_subtypesSet to FALSE to make the datum apply only to a strict type.
init_costcost includes elasticity, this does not.
k_elasticitycoefficient used in marginal price calculation that roughly corresponds to the inverse of price elasticity, or "quantity elasticity"
unit_nameUnit name. Only used in "Received [total_amount] [name]s [message]." message

Procs

sell_objectCalculates the exact export value of the object, while factoring in all the relivant variables.
total_printoutThis is the value of the object, as derived from export datums. Quantity of the object in question. Utilized in the pricetag component. Splits the object's profit when it has a pricetag by the specified amount.

Var Details

amount_report_multiplier

The multiplier of the amount sold shown on the report. Useful for exports, such as material, which costs are not strictly per single units sold.

cost

Cost of item, in cargo credits. Must not allow for infinite price dupes, see above.

exclude_types

Types excluded from export

export_types

Type of the exported object. If none, the export datum is considered base type.

include_subtypes

Set to FALSE to make the datum apply only to a strict type.

init_cost

cost includes elasticity, this does not.

k_elasticity

coefficient used in marginal price calculation that roughly corresponds to the inverse of price elasticity, or "quantity elasticity"

unit_name

Unit name. Only used in "Received [total_amount] [name]s [message]." message

Proc Details

sell_object

Calculates the exact export value of the object, while factoring in all the relivant variables.

Called only once, when the object is actually sold by the datum. Adds item's cost and amount to the current export cycle. get_cost, get_amount and applies_to do not neccesary mean a successful sale.

total_printout

This is the value of the object, as derived from export datums. Quantity of the object in question. Utilized in the pricetag component. Splits the object's profit when it has a pricetag by the specified amount.