Efficiency (Dismantle Distribution Spot)
Project terminology: Distribution Spot (code may still reference “Laboratory” /
RegionLab).
Overview
Removes the region’s Distribution Spot and its routes, granting a full refund for both during this operation only. Restores the original refund settings afterwards. Valid only if the region currently has a Distribution Spot.
Serialized Fields
- FloatVariable
labRefund— temporarily set to1.0. - FloatVariable
routeRefund— temporarily set to1.0. - RegionVariable
regionVariable— target region.
Effect
- Save current refund values (old
labRefund, oldrouteRefund). - Set both refunds to
1f. - Call
regionVariable.Value.RemoveLaboratory(true)to dismantle the Distribution Spot and connected routes with full refund. - Restore the previous refund values.
Validation
IsValid()⇒regionVariable.Value != nullandregionVariable.Value.RegionLab != null.
UI / Localization
- Title key:
ABILITY_EFFICIENCY_TITLE - Description key:
ABILITY_EFFICIENCY_DESC