Power Management Decision Tree

Version: 1.0.0 Category: gameplay Type: decision-tree Description: Decision tree for managing power capacity and maintaining online status


Decision Flowchart

flowchart TD
    calcCapacity["Calculate available capacity:\n(capacity + capacitySecondary)\n- (load + structsLoad)"]
    calcCapacity --> capacityCheck{"Available capacity > 0?"}

    capacityCheck -->|Yes| onlineStatus["Player is ONLINE\nSufficient power capacity"]
    capacityCheck -->|No| offlineStatus["Player is OFFLINE\nInsufficient power capacity\n(CRITICAL)"]

    onlineStatus --> reserveCheck{"Capacity < reserve\nthreshold (20%)?"}
    reserveCheck -->|Yes| lowWarning["WARNING: Low power capacity\nReduce consumption or\nincrease capacity"]
    reserveCheck -->|No| continueOps["Sufficient capacity\nContinue operations"]

    offlineStatus --> alphaCheck{"Alpha Matter\navailable?"}
    alphaCheck -->|Yes| convertAlpha["Convert Alpha Matter to Watts\nusing Reactor (safe method)"]
    alphaCheck -->|No| reduceLoad["Reduce power consumption:\n- Deactivate non-essential structs\n- Remove structs from planets\n- Wait for resource generation"]

    convertAlpha --> recheck{"Recalculate:\navailable capacity > 0?"}
    recheck -->|Yes| restored["Online status restored"]
    recheck -->|No| reduceAfter["Still offline:\nReduce power consumption\nby deactivating structs"]

Condition Table

Condition True Path False Path Notes
availableCapacity > 0 Player online Player offline (critical) Primary status check
availableCapacity < reserveThreshold Low capacity warning Continue normal operations 20% of total capacity threshold
alphaMatter > 0 Convert to Watts via Reactor Must reduce power consumption Recovery path when offline
Recalculated capacity > 0 Online status restored Reduce consumption further After conversion attempt

Formulas

Formula Expression Purpose
Available Capacity (capacity + capacitySecondary) - (load + structsLoad) Determine remaining power
Player Online (load + structsLoad) <= (capacity + capacitySecondary) Online status condition
Reserve Threshold (capacity + capacitySecondary) x 0.2 20% reserve warning level

Online vs Offline Status

Status Condition Can Act Description
Online (load + structsLoad) <= (capacity + capacitySecondary) Yes Player can perform all actions
Offline (load + structsLoad) > (capacity + capacitySecondary) No Player cannot perform actions

Recovery Procedure

When a player goes offline due to insufficient power capacity:

  1. Check Alpha Matter – If Alpha Matter is available, convert it to Watts using a Reactor (the safe conversion method).
  2. Recalculate capacity – After conversion, recalculate available capacity to determine if online status has been restored.
  3. Reduce consumption – If still offline after conversion (or if no Alpha Matter is available), reduce power consumption by deactivating non-essential structs, removing structs from planets, or waiting for resource generation.

Principles