]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Added Pain Numbness Trait (#34538)
authorCoolsurf6 <coolsurf24@yahoo.com.au>
Mon, 27 Jan 2025 10:34:20 +0000 (20:34 +1000)
committerGitHub <noreply@github.com>
Mon, 27 Jan 2025 10:34:20 +0000 (11:34 +0100)
commit012c8355594823bc327fc42693a43a7c00f0caf9
treef4d33a62447ef5f9f42755f7aea29439781e236f
parent1b9d84a16e9d02865ff2f0eda4966f6fee7d3545
Added Pain Numbness Trait (#34538)

* added pain-numbness component and system

* added numb as a trait that pulls the pain numbness component

* removed new event as mob threshold event as already being fired

* checked for MobThresholdsComponent first before running VerifyThresholds

* refacted force say to using LocalizedDatasetPrototype and added numb messages

* added severity check alert

* added comment for BeforeForceSayEvent

* removed space formatting

* changed Cancelled to CancelUpdate, fixed spacing and added two more damage-force-say-numb

* changed prefix damage-force-say-numb to 5 (whoops)
14 files changed:
Content.Client/UserInterface/Systems/DamageOverlays/DamageOverlayUiController.cs
Content.Server/Damage/ForceSay/DamageForceSaySystem.cs
Content.Shared/Bed/Sleep/SleepingComponent.cs
Content.Shared/Bed/Sleep/SleepingSystem.cs
Content.Shared/Damage/Events/BeforeForceSayEvent.cs [new file with mode: 0644]
Content.Shared/Damage/ForceSay/DamageForceSayComponent.cs
Content.Shared/Mobs/Events/BeforeAlertSeverityCheckEvent.cs [new file with mode: 0644]
Content.Shared/Mobs/Systems/MobThresholdSystem.cs
Content.Shared/Traits/Assorted/PainNumbnessComponent.cs [new file with mode: 0644]
Content.Shared/Traits/Assorted/PainNumbnessSystem.cs [new file with mode: 0644]
Resources/Locale/en-US/damage/damage-force-say.ftl
Resources/Locale/en-US/traits/traits.ftl
Resources/Prototypes/Datasets/damage_force_say.yml [new file with mode: 0644]
Resources/Prototypes/Traits/disabilities.yml