The improvement object
From Scenario League Wiki
Back To TOTPP Functions
improvement.id -> integer
Returns the id of the improvement.
improvement.name -> string
Returns the name of the improvement (e.g. "Barracks").
improvement.prereq -> tech
Returns the prerequisite tech of the improvement. Ephemeral.
improvement.cost -> integer
Returns the cost of the improvement in rows. Multiply by civ.cosmic.shieldRows for the actual production cost. Ephemeral.
improvement.cantSell -> boolean
Returns `true` if the improvement cannot be sold, `false` otherwise. Requires the "Improvement flags" patch. Ephemeral.
improvement.onCapture -> integer
Returns what happens to this improvement when a city is captured (0 - Default, 1 - Preserve, 2 - Destroy, 3 - Random). Requires the "Improvement flags" patch. Ephemeral.