* Adds new different reaction types. - Adds touch, injection and ingestion reactions for entities. - Adds tile reactions. - Removes GasSprayerComponent in favor of SprayComponent. - Gives fire extinguishers a safety. - Gives spray puffs a sprite. - Improved spray and fire extinguisher in general. - Fire extinguisher now ACTUALLY puts out fires. Amazing, eh? - Fire extinguisher sprays three 'clouds' at once. - Spraying flammable chemicals at fire makes them worse. Whoops! - Gives spray and fire extinguisher their classic sounds. - Most chemicals now don't make puddles. Too bad! - Space lube now makes a very slippery puddle. Honk. - Spraying water (or using a fire extinguisher) on existing puddles makes them bigger. * Fix solution tests * food base now has solution container with noexamine caps
23 lines
792 B
C#
23 lines
792 B
C#
#nullable enable
|
|
using Content.Shared.GameObjects.Components.Movement;
|
|
using Robust.Shared.GameObjects;
|
|
|
|
namespace Content.Client.GameObjects.Components.Movement
|
|
{
|
|
[RegisterComponent]
|
|
[ComponentReference(typeof(SharedSlipperyComponent))]
|
|
public class SlipperyComponent : SharedSlipperyComponent
|
|
{
|
|
public override void HandleComponentState(ComponentState? curState, ComponentState? nextState)
|
|
{
|
|
if (!(curState is SlipperyComponentState state)) return;
|
|
|
|
Slippery = state.Slippery;
|
|
IntersectPercentage = state.IntersectPercentage;
|
|
ParalyzeTime = state.ParalyzeTime;
|
|
RequiredSlipSpeed = state.RequiredSlipSpeed;
|
|
LaunchForwardsMultiplier = state.LaunchForwardsMultiplier;
|
|
}
|
|
}
|
|
}
|