From a0ffc251aa660379e32b1ca6d38315c97c556122 Mon Sep 17 00:00:00 2001 From: BIGZi0348 Date: Sun, 22 Dec 2024 21:07:25 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Content.Server/_Amour/StationEvents/SpaceLawChange.cs | 2 ++ Resources/Prototypes/GameRules/events.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Content.Server/_Amour/StationEvents/SpaceLawChange.cs b/Content.Server/_Amour/StationEvents/SpaceLawChange.cs index bc7228394c..e7f8cefc8e 100644 --- a/Content.Server/_Amour/StationEvents/SpaceLawChange.cs +++ b/Content.Server/_Amour/StationEvents/SpaceLawChange.cs @@ -104,6 +104,8 @@ namespace Content.Server._Amour.StationEvents var faxes = EntityManager.EntityQuery(); foreach (var fax in faxes) { + if (!fax.ReceiveStationGoal) + continue; _faxSystem.Receive(fax.Owner, printout, null, fax); } } diff --git a/Resources/Prototypes/GameRules/events.yml b/Resources/Prototypes/GameRules/events.yml index bb2735a9c4..d7783d1c57 100644 --- a/Resources/Prototypes/GameRules/events.yml +++ b/Resources/Prototypes/GameRules/events.yml @@ -603,7 +603,7 @@ noSpawn: true components: - type: StationEvent + maxOccurrences: 1 # everyone ignores this event weight: 5 - reoccurrenceDelay: 30 duration: 1 - type: SpaceLawChangeRule