Function
Modify
Modify_SetUpgradeCost
Sets the cost of an upgrade. This only affects the given player
On this page
Modify_SetUpgradeCost(playerId, upgrade, resourceType, newCost)Description
Sets the cost of an upgrade. This only affects the given player
Parameters
playerIdPlayerIDrequiredupgradeUpgradeIDrequiredresourceTypeIntegerrequirednewCostRealrequired
Returns
modidsmodids or nil if the modifier could not be appliedSource
Declared in the game's script sources at:
scar/modifiers.scar