]> git.smokeofanarchy.ru Git - space-station-14.git/commit
ninja hotfixes (#20032)
authordeltanedas <39013340+deltanedas@users.noreply.github.com>
Tue, 12 Sep 2023 20:54:18 +0000 (21:54 +0100)
committerGitHub <noreply@github.com>
Tue, 12 Sep 2023 20:54:18 +0000 (14:54 -0600)
commitb53e5d666118c99a7db5f219c54782dc5ff7b1ad
treeb086adc8f1ae6da8d8e675a4ca5ecb2948dc493f
parentef869b1cffefcd3c955957654c829df7dc8c7a27
ninja hotfixes (#20032)

* check that slot is power cell slot

* add BatteryChangedEvent

* use BatteryChangedEvent when enabling gloves and replacing battery

* sort gloves dependencies

* increase stun duration and cooldown

* play sound when stunning people

* remove dirty for non networked field

* NinjaBatteryChangedEvent

* real

* fake

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
Content.Server/Ninja/Events/BatteryChangedEvent.cs [new file with mode: 0644]
Content.Server/Ninja/Systems/BatteryDrainerSystem.cs
Content.Server/Ninja/Systems/NinjaGlovesSystem.cs
Content.Server/Ninja/Systems/NinjaSuitSystem.cs
Content.Server/Ninja/Systems/StunProviderSystem.cs
Content.Shared/Ninja/Components/StunProviderComponent.cs