DefineUpgrade (Harvest)
From OxeyeWiki
defineUpgrade(building, name, description, mineralsCost, energyCost, radiusSize, initialSpriteName) | ||
Defines a new creative building to be used as building upgrades. The initial sprite is currently always picked from the default gfx package. | ||
Parameter | Expected Type | Description |
building | String | The new building identifier name. |
name | String | The display name of the building. |
description | String | The description of the building. |
mineralsCost | Number | The mineral costs to build the building. |
energyCost | Number | The energy costs to build the building. |
radiusSize | Number | |
initialSpriteName | String | The initial sprite identifier name. |
Returns | ||
Returns nothing. |
Example
harvest.defineUpgrade("SUPERSOLARPLANT", "Super-duper Solar Plant", "This is a really good solar plant.", 300, 100, 30.0, "SparkProducer")