Skip to content

specific_subvention

Source: base/tealdef/game_mechanics/subventions/specific_subvention.d.tl

Notes

Parameters for spawning one of the four base game subsidy types for a given target, as missions do.

DeliverCargoSubventionParam

record global base/tealdef/game_mechanics/subventions/specific_subvention.d.tl:3

global record DeliverCargoSubventionParam is ISubvention.ISpecificSubventionParam

Notes

Spawn parameters of the deliver_cargo subsidy ("Supply Industry").

Fields

Name Type Description
target Engine.Entity Industry that needs its input cargo. It must not have produced anything yet.

DeliverCargoTownSubventionParam

record global base/tealdef/game_mechanics/subventions/specific_subvention.d.tl:7

global record DeliverCargoTownSubventionParam is ISubvention.ISpecificSubventionParam

Notes

Spawn parameters of the deliver_cargo_town subsidy ("Supply Town").

Fields

Name Type Description
target Engine.Entity Town to supply.
cargoTypeId CargoTypeId Cargo type to deliver, e.g. api.res.cargoTypeRep.find("::/cargos/fuel/fuel.cargo").

DeliverPassengersSubventionParam

record global base/tealdef/game_mechanics/subventions/specific_subvention.d.tl:12

global record DeliverPassengersSubventionParam is ISubvention.ISpecificSubventionParam

Notes

Spawn parameters of the deliver_passengers subsidy ("Connect Towns"), a transfer-free passenger line between two towns.

Fields

Name Type Description
target Engine.Entity Destination town.
source Engine.Entity Origin town.

DeliverWorkersSubventionParam

record global base/tealdef/game_mechanics/subventions/specific_subvention.d.tl:17

global record DeliverWorkersSubventionParam is ISubvention.ISpecificSubventionParam

Notes

Spawn parameters of the deliver_workers subsidy ("Transport Workers").

Fields

Name Type Description
target Engine.Entity Industry that needs workers transported from nearby towns.