]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Clean up gas miners (#29657)
authorMervill <mervills.email@gmail.com>
Tue, 2 Jul 2024 20:18:56 +0000 (13:18 -0700)
committerGitHub <noreply@github.com>
Tue, 2 Jul 2024 20:18:56 +0000 (12:18 -0800)
commit4ec15c84fa220c6ff60477f0a53c6598eac2685d
tree16fbcfcc275c69dc9479445eeb3fbbacace1e9be
parent542e1db91316e20ea74582f79095a76cea7299ed
Clean up gas miners (#29657)

Separate the environment check from CapSpawnAmount into GetValidEnvironment to make the code a little cleaner, and also makes these two checks independent.

CapSpawnAmount and GetValidEnvironment now both have zero side-effects

Broken renamed Idle to reflect its use. Broken in my mind implies that there's some method for fixing.

---------

Co-authored-by: Partmedia <kevinz5000@gmail.com>
Content.Server/Atmos/Piping/Other/Components/GasMinerComponent.cs
Content.Server/Atmos/Piping/Other/EntitySystems/GasMinerSystem.cs
Resources/Prototypes/Entities/Structures/Piping/Atmospherics/miners.yml