addSalvage

open fun addSalvage(cargo: CargoAPI, carrier: SectorEntityToken, type: MagicCampaign.lootType, lootID: String, amount: Int): CargoAPI

Adds items to a salvageable entity such as a debris field, a recoverable ship or a wreck.

Return

The resulting cargo you can still add to.

Parameters

cargo

cargo to add salvage to, creates a new cargo if NULL

carrier

entity with the loot

type

MagicSystem.lootType, type of loot added,

lootID

specific ID of the loot found, NULL for supplies, fuel, crew, marines, trade commodities can use campaign.ids.Commodities

amount