Skip to content

Commit

Permalink
Gas Event
Browse files Browse the repository at this point in the history
  • Loading branch information
dvir001 committed Dec 2, 2023
1 parent cb0321d commit 99057f5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 20 deletions.
11 changes: 6 additions & 5 deletions Content.Server/StationEvents/Components/GasLeakRuleComponent.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Content.Server.StationEvents.Events;
using Content.Server.StationEvents.Events;
using Content.Shared.Atmos;
using Robust.Shared.Map;

Expand All @@ -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,
};

/// <summary>
Expand Down
30 changes: 15 additions & 15 deletions Resources/Prototypes/GameRules/events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 99057f5

Please sign in to comment.