Emergent Sanitation Gameplay (#1378)
* Emergent Sanitation Gameplay * Fix the map * Address review * Mention if it's slippery in the description
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using Robust.Shared.GameObjects;
|
||||
using Content.Shared.GameObjects.EntitySystems;
|
||||
|
||||
namespace Content.Server.GameObjects.Components.Movement
|
||||
{
|
||||
[RegisterComponent]
|
||||
public class NoSlipComponent : Component, IEffectBlocker
|
||||
{
|
||||
public override string Name => "NoSlip";
|
||||
|
||||
bool IEffectBlocker.CanSlip() => false;
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,7 @@ using System.Timers;
|
||||
using Content.Server.GameObjects.Components.Mobs;
|
||||
using Content.Server.Throw;
|
||||
using Content.Shared.Audio;
|
||||
using Content.Shared.GameObjects.EntitySystems;
|
||||
using Content.Shared.Physics;
|
||||
using Robust.Server.GameObjects.EntitySystems;
|
||||
using Robust.Shared.Containers;
|
||||
@@ -90,6 +91,9 @@ namespace Content.Server.GameObjects.Components.Movement
|
||||
if (percentage < IntersectPercentage)
|
||||
return;
|
||||
|
||||
if(!EffectBlockerSystem.CanSlip(collidedWith))
|
||||
return;
|
||||
|
||||
stun.Paralyze(5f);
|
||||
_slipped.Add(collidedWith.Uid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user