]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Fix SuperSlippery And StepTriggers persisting when UpdateSlip is called (#34525)
authorZachary Higgs <compgeek223@gmail.com>
Mon, 17 Feb 2025 20:53:23 +0000 (16:53 -0400)
committerGitHub <noreply@github.com>
Mon, 17 Feb 2025 20:53:23 +0000 (21:53 +0100)
commit241d0e12e27f086e6ccab8a1f6f5a614e0c2676a
treeb30a129d1f72ac82fc39f0aac71d91c71019df20
parenta9b487e6289f2a42184b4e1fdd4a7b5e2f892ef3
Fix SuperSlippery And StepTriggers persisting when UpdateSlip is called (#34525)

* Fix superSlippery and stepTrigger values persist

- made values in SpillTileReaction's public so we can query the
prototype

- made the default values for slippery component and
StepTriggerComponent based on default constants
for easier resetting

- added a calculation and check in UpdateSlips to check
if a super slip is present as well as Update
relevant steptrigger and slip values based on the contents of the
solution

* The worlds biggest change

---------

Co-authored-by: Myra <vascreeper@yahoo.com>
Content.Server/Chemistry/TileReactions/SpillTileReaction.cs
Content.Server/Fluids/EntitySystems/PuddleSystem.cs
Content.Shared/Slippery/SlipperyComponent.cs
Content.Shared/StepTrigger/Components/StepTriggerComponent.cs