Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SuperSlippery And StepTriggers persisting when UpdateSlip is called #34525

Merged
merged 2 commits into from
Feb 17, 2025

Conversation

poklj
Copy link
Contributor

@poklj poklj commented Jan 20, 2025

About the PR

Updated PuddleSystem::UpdateSlip to change a puddles steptrigger and slippery component to reflect the contents of a puddle as the reagents within it change, such as when using a mop or Space cleaner on space lube, in response to #34303 not fully solving the issue (fixes #29229)

Why / Balance

It was broken and never updated the properties of the puddle entity

Technical details

Made values in SpillTileReaction's public so we can query the
reagents prototype for those values

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

Media

slipsbefore.mp4
slipsafter.mp4

Requirements

Breaking changes

Changelog

🆑 Kickguy223

  • fix: Cleaning up a puddle properly changes its slippery properties.

- 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
@github-actions github-actions bot added S: Untriaged Status: Indicates an item has not been triaged and doesn't have appropriate labels. size/S Denotes a PR that changes 10-99 lines. labels Jan 20, 2025
@ArtisticRoomba ArtisticRoomba added T: Bugfix Type: Bugs and/or bugfixes P2: Raised Priority: Item has a raised priority, indicating it might get increased maintainer attention. D2: Medium Difficulty: A good amount of codebase knowledge required. A: General Interactions Area: General in-game interactions that don't relate to another area. S: Needs Review Status: Requires additional reviews before being fully accepted and removed S: Untriaged Status: Indicates an item has not been triaged and doesn't have appropriate labels. labels Jan 21, 2025
Copy link
Contributor

@ScarKy0 ScarKy0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Terrible code, PR closed.

@ScarKy0 ScarKy0 merged commit 241d0e1 into space-wizards:master Feb 17, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: General Interactions Area: General in-game interactions that don't relate to another area. D2: Medium Difficulty: A good amount of codebase knowledge required. P2: Raised Priority: Item has a raised priority, indicating it might get increased maintainer attention. S: Needs Review Status: Requires additional reviews before being fully accepted size/S Denotes a PR that changes 10-99 lines. T: Bugfix Type: Bugs and/or bugfixes
Projects
None yet
4 participants