Skip to content

[New Feature] PoweredBy Building support and Building Power radius #344

@ajgunsauley

Description

@ajgunsauley

Description:

Add the ability for building functionality to be dependent on another building, and potentially proximity to another building, as opposed to or in addition to the standard power grid.

Deactivated structures dim and all functionality stops working:

  • Power plants stop providing power
  • Refineries can't accept harvester loads
  • Factories can't produce units
  • Cloning Vats don't clone
  • Defenses won't shoot
  • Prerequisite units requiring the structure are unavailable to build
  • Powers stop charging from the structure
  • Radar/spysat/gap stops working
  • Industrial plant effects don't function
  • Tech effects like hospital healing, self-repair, etc. stop working

If combined with a power requirement and Powered=yes, it will still follow the original power system in addition to the PoweredBy logic (ie. low power has different effects than losing the PoweredBy Structure).

Possible Implementation:

[BuildingType]
Name=Construction Crane
PoweredBy=GACNST

[GACNST]
PoweredRadius=6

In this example the Construction Crane will only function if it is placed within a 6 cell radius of a GACNST structure. Logic would be similar to gap/sensor radius.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions