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 to 1.0.
  • FloatVariable routeRefund — temporarily set to 1.0.
  • RegionVariable regionVariable — target region.

Effect

  1. Save current refund values (old labRefund, old routeRefund).
  2. Set both refunds to 1f.
  3. Call regionVariable.Value.RemoveLaboratory(true) to dismantle the Distribution Spot and connected routes with full refund.
  4. Restore the previous refund values.

Validation

  • IsValid()regionVariable.Value != null and regionVariable.Value.RegionLab != null.

UI / Localization

  • Title key: ABILITY_EFFICIENCY_TITLE
  • Description key: ABILITY_EFFICIENCY_DESC