]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Add solar flare event (#13749)
authorSlava0135 <40753025+Slava0135@users.noreply.github.com>
Sat, 11 Feb 2023 20:24:29 +0000 (23:24 +0300)
committerGitHub <noreply@github.com>
Sat, 11 Feb 2023 20:24:29 +0000 (20:24 +0000)
commit301956ef15050bd141f5f40fa42daa5325d7817b
tree22a4337ccd70e445a48add0fb4c7d494dabead15
parent5c06c4c3ef612b5e6d55a62307b29d9e90d451c2
Add solar flare event (#13749)

* add solar flare event (only affects headsets)

* add popup

* cleaner impl using RadioReceiveAttemptEvent

* unused import

* handheld radio and intercom work again

* Revert "handheld radio and intercom work again"

This reverts commit 0032e3c0725a19a465daf1ff1d6b4942a5c14fbb.

* add radio source to Radio events

* intercoms and handheld radios work now

* use Elapsed instead of new field

* add configuration

* better not touch Elapsed

* the

* make popup bigger

* xml comments for configuration

* very minor refactoring

* default config is now in yaml

* lights can break

* use RobustRandom

* use file namespace

* use RuleStarted

* store config in field

* a

---------

Co-authored-by: AJCM <AJCM@tutanota.com>
Content.Server/GameTicking/Rules/Configurations/SolarFlareEventRuleConfiguration.cs [new file with mode: 0644]
Content.Server/GameTicking/Rules/Configurations/StationEventRuleConfiguration.cs
Content.Server/Radio/EntitySystems/HeadsetSystem.cs
Content.Server/Radio/EntitySystems/RadioDeviceSystem.cs
Content.Server/Radio/EntitySystems/RadioSystem.cs
Content.Server/Radio/RadioReceiveEvent.cs
Content.Server/StationEvents/Events/SolarFlare.cs [new file with mode: 0644]
Resources/Locale/en-US/radio/radio-event.ftl [new file with mode: 0644]
Resources/Locale/en-US/station-events/events/solar-flare.ftl [new file with mode: 0644]
Resources/Prototypes/GameRules/events.yml