Spacelube slide (#24801)

* Space lube now makes you slide

* review

* oh lord he slippin

---------

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
Arendian
2024-02-01 11:39:10 +01:00
committed by GitHub
parent c4f275bc53
commit 4f3b8d740c
7 changed files with 112 additions and 9 deletions

View File

@@ -293,7 +293,7 @@ public sealed partial class PuddleSystem : SharedPuddleSystem
{
// Reactive entities have a chance to get a touch reaction from slipping on a puddle
// (i.e. it is implied they fell face first onto it or something)
if (!HasComp<ReactiveComponent>(args.Slipped))
if (!HasComp<ReactiveComponent>(args.Slipped) || HasComp<SlidingComponent>(args.Slipped))
return;
// Eventually probably have some system of 'body coverage' to tweak the probability but for now just 0.5