Skip to content

EC storage facility

AMPW edited this page Aug 26, 2025 · 1 revision

Used to store electricity in a colony

type: KCECStorageFacility

Required parameter in the levelnode

  • capacity (double): the amount that can be stored in this facility

The capacity parameter needs to be present in the level 0 node but may be left empty in higher levels, then the lower level value is used.

Optional parameters in the levelnode

  • range (float): how close the player has to be to a calculation node, default: 150
  • RangeTypes (string list, "," used as seperator): the facility types that are used as additional nodes
  • RangeFacilities (string list, "," used as seperator): the facility config names that are used as additional nodes
  • UseGravityMultiplier (bool): multiplies the range with the gravity at the facilities location. Useful on high gravity planets because landing accuratly there is much more difficult
    • MinGravity (float): Minimum gravity multiplier, default 1
    • MaxGravity (float): Maximum gravity multiplier, default 1

Range calculations

The own facility will always be used to calculate if the player is near it and the same range is used for all calculations.
All facilities (except the CAB) may be used as nodes.
The RangeTypes and RangeFacilities are used in a XOR configuration, so a facility must only be in one of the lists to be used as node.

E.g. KCFacilityConfig { name = KCECStorage displayName = EC Storage type = KCECStorageFacility

    category = EC storage

    level
    {
        0
        {
            basegroupName = KC_Base_ECStorage_T0
            resources { RocketParts = 2000 }
            upgradeTime = 1000

            capacity = 25000
            range = 150

            RangeTypes = KCECStorageFacility, KCLaunchpadFacility

            UseGravityMultiplier = true
            MinGravity = 0.75
            MaxGravity = 3
        }
        1
        {
            basegroupName = KC_Base_ECStorage_T1
            resources { RocketParts = 5000 }
            upgradeTime = 2500

            capacity = 100000
            range = 250

            RangeTypes = KCECStorageFacility, KCStorageFacility, KCLaunchpadFacility

            UseGravityMultiplier = true
            MinGravity = 1
            MaxGravity = 5
        }
    }
}

Clone this wiki locally