]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Go back to constant electrocution damage based on voltage (#26455)
authorNemanja <98561806+EmoGarbage404@users.noreply.github.com>
Thu, 28 Mar 2024 20:44:44 +0000 (16:44 -0400)
committerGitHub <noreply@github.com>
Thu, 28 Mar 2024 20:44:44 +0000 (12:44 -0800)
commitaba16198f6846d880b3a1c233b5e9252d21e6985
treeb34bc29b61d229c9462e97e5cf8c3ea6c780b540
parentdf631ff8a07325a889b45235120eec60fe844233
Go back to constant electrocution damage based on voltage (#26455)

Makes electrocution damage based on the voltage of the wire and bring down the damage to a sane level. It's no longer primarily based on the power being received.

LV Cable -> 10 damage
MV Cable -> 20 damage
HV Cable -> 30 damage

Having a primarily power-based damage system causes there to be massive fluctuations in damage based on things outside of a regular player's control, like the station power output. This removes a lot of player agency and turns grilles into a risky gamble where they can either do no damage or instantly fry the player due to simply being hooked up to the engine.

While this may be a more accurate simulation in some regards, the reality of the gameplay is that it's often just frustrating, resulting in constant death traps as players brushing against electrified grilles and punching wires take absurd amounts of damage. By making them flat rates, it's possible to actually balance the damage output.
Content.Server/Electrocution/Components/ElectrifiedComponent.cs
Content.Server/Electrocution/Components/ElectrocutionComponent.cs
Content.Server/Electrocution/ElectrocutionSystem.cs