DefineUpgrade (Harvest)

From OxeyeWiki

(Difference between revisions)
Jump to: navigation, search
166 MMX (Talk | contribs)
(Created page with '{{HarvestMethod | defineUpgrade(building, name, description, mineralsCost, energyCost, radiusSize, initialSpriteName) | Defines a new creative building to be used as building upg...')

Latest revision as of 19:20, 2 December 2009

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.

Harvest Library

Example

harvest.defineUpgrade("SUPERSOLARPLANT", "Super-duper Solar Plant", "This is a really good solar plant.", 300, 100, 30.0, "SparkProducer")

Resources

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox