From 99057f52e3ec1ba064b89b01485fb7316bf592a0 Mon Sep 17 00:00:00 2001 From: Dvir Date: Sun, 3 Dec 2023 01:07:52 +0200 Subject: [PATCH] Gas Event --- .../Components/GasLeakRuleComponent.cs | 11 +++---- Resources/Prototypes/GameRules/events.yml | 30 +++++++++---------- 2 files changed, 21 insertions(+), 20 deletions(-) diff --git a/Content.Server/StationEvents/Components/GasLeakRuleComponent.cs b/Content.Server/StationEvents/Components/GasLeakRuleComponent.cs index 066b14e9186..16e5deb8f8d 100644 --- a/Content.Server/StationEvents/Components/GasLeakRuleComponent.cs +++ b/Content.Server/StationEvents/Components/GasLeakRuleComponent.cs @@ -1,4 +1,4 @@ -using Content.Server.StationEvents.Events; +using Content.Server.StationEvents.Events; using Content.Shared.Atmos; using Robust.Shared.Map; @@ -9,10 +9,11 @@ public sealed partial class GasLeakRuleComponent : Component { public readonly Gas[] LeakableGases = { - Gas.Miasma, - Gas.Plasma, - Gas.Tritium, - Gas.Frezon, +// Gas.Miasma, +// Gas.Plasma, +// Gas.Tritium, +// Gas.Frezon, + Gas.WaterVapor, }; /// diff --git a/Resources/Prototypes/GameRules/events.yml b/Resources/Prototypes/GameRules/events.yml index 0e89cd8470a..d17e4864f7c 100644 --- a/Resources/Prototypes/GameRules/events.yml +++ b/Resources/Prototypes/GameRules/events.yml @@ -117,21 +117,21 @@ duration: 1 - type: FalseAlarmRule -# - type: entity - # id: GasLeak - # parent: BaseGameRule - # noSpawn: true - # components: - # - type: StationEvent - # startAnnouncement: station-event-gas-leak-start-announcement - # startAudio: - # path: /Audio/Announcements/attention.ogg - # endAnnouncement: station-event-gas-leak-end-announcement - # earliestStart: 10 - # minimumPlayers: 5 - # weight: 5 - # startDelay: 20 - # - type: GasLeakRule +- type: entity + id: GasLeak + parent: BaseGameRule + noSpawn: true + components: + - type: StationEvent + startAnnouncement: station-event-gas-leak-start-announcement + startAudio: + path: /Audio/Announcements/attention.ogg + endAnnouncement: station-event-gas-leak-end-announcement + earliestStart: 10 + minimumPlayers: 5 + weight: 5 + startDelay: 20 + - type: GasLeakRule # - type: entity # id: KudzuGrowth