]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Fix air devices ignoring settings after power cycle (#34887)
authorKyle Tyo <36606155+VerinSenpai@users.noreply.github.com>
Sat, 15 Feb 2025 06:07:15 +0000 (01:07 -0500)
committerGitHub <noreply@github.com>
Sat, 15 Feb 2025 06:07:15 +0000 (07:07 +0100)
commit44747278869ef8b084ee5c15e05f43a62d9f6fc0
tree9562fc2b772cdd2e1209cb63fc245eec5d570494
parent3d1970fc4416995d071856917b589f91dd5f092f
Fix air devices ignoring settings after power cycle (#34887)

* add powered variable to vent components

* add checks for powered to vent systems

also corrected onpowerchanged methods to update powered arg.

* removed powered from components

* Use ApcPowerReceieverComponent for power state.

* removed unneeded code from OnPowerChanged

* document what enabled is used for in components

* only you can prevent oopsie daisies.

* add check for powered in OnGasVentPumpUpdated

* apcPowerReceiverComponent BEGONE

* CODE RED EVERYTHINGS ON FIRE wait we're fine now.
Content.Server/Atmos/Piping/Unary/Components/GasVentPumpComponent.cs
Content.Server/Atmos/Piping/Unary/Components/GasVentScrubberComponent.cs
Content.Server/Atmos/Piping/Unary/EntitySystems/GasVentPumpSystem.cs
Content.Server/Atmos/Piping/Unary/EntitySystems/GasVentScrubberSystem.cs