// Management · RimWorld Mod

Protocol: Live-Wire - Live Electrical Construction Accidents

Protocol: Live-Wire - Live Electrical Construction Accidents - Construction on an energized power grid is never without risk.

Protocol: Live-Wire - Live Electrical Construction Accidents -

Construction on an energized power grid is never without risk.

Protocol: Live-Wire introduces the risk of electrical accidents when constructing electrical infrastructure near an energized power network.

When an electrical building is constructed adjacent to a powered PowerNet, construction progress accumulates Raw Risk.

When the accumulated Raw Risk reaches the incident threshold, an electrical accident occurs.

Features
Active Construction Risk

Electrical construction performed next to an energized PowerNet accumulates Raw Risk as construction progresses.

Distributed 250-Tick Checks

Construction progress is evaluated using a distributed 250-tick check interval. Each construction target is assigned a different processing offset based on its Thing ID, reducing processing concentration at the same moment.

Raw Risk Accumulation

Each processed construction roll adds a fixed base risk plus a randomized 1d6 variation, modified by the configured risk multiplier. When the accumulated risk reaches the incident threshold, an accident occurs.

PowerNet-Dependent Incident Severity

When an incident occurs, the PowerNet adjacent to the target is evaluated. Stored energy in connected batteries and the output of connected power generators are accumulated as available energy and reflected in the severity of the incident.

Non-Linear Risk Scaling

Accumulated Raw Risk is converted into an incident multiplier using a non-linear function. This prevents extremely large Raw Risk values from increasing incident severity without limit.

Final Construction Check

If construction is completed before the next distributed check, any unprocessed construction rolls are resolved when construction is completed. This prevents quickly completed buildings from bypassing unprocessed construction progress.

Automatic Electrical Building Detection

Electrical buildings are identified through the presence of Power or Battery components rather than relying on hard-coded building definitions. This allows compatible electrical buildings added by other content to be recognized automatically.

Settings
Incident Damage / Energy Multiplier: 10–300% (Default: 10%)
Construction Risk Multiplier: 10–300% (Default: 100%)
Damage Cap: When enabled, direct explosion damage is capped at 5 or less (Default: Enabled)

Enabling the damage cap does not make incidents harmless. Depending on the affected body part and its HP, a Pawn may still suffer severe injuries or die.

Design Philosophy

Power is infrastructure.
Infrastructure has hazards.

Live-Wire treats construction work around an energized power network as work involving explicit risks rather than as a completely safe and routine construction process.

Plan your power grid accordingly.

Technical
RimWorld 1.6
C# 7.3
.NET Framework 4.8
Harmony
MapComponent-based runtime management
Save/load-compatible construction state tracking

Protocol: Live-Wire is part of the Protocol series, a collection of systems designed around explicit rules, structured infrastructure management, and meaningful consequences.

Development by Excella7234.