Minor slippery stuff (#20535)
This commit is contained in:
@@ -103,14 +103,6 @@ public sealed class SlipperySystem : EntitySystem
|
|||||||
_adminLogger.Add(LogType.Slip, LogImpact.Low,
|
_adminLogger.Add(LogType.Slip, LogImpact.Low,
|
||||||
$"{ToPrettyString(other):mob} slipped on collision with {ToPrettyString(uid):entity}");
|
$"{ToPrettyString(other):mob} slipped on collision with {ToPrettyString(uid):entity}");
|
||||||
}
|
}
|
||||||
|
|
||||||
public void CopyConstruct(EntityUid destUid, SlipperyComponent srcSlip)
|
|
||||||
{
|
|
||||||
var destEvaporation = EntityManager.EnsureComponent<SlipperyComponent>(destUid);
|
|
||||||
destEvaporation.SlipSound = srcSlip.SlipSound;
|
|
||||||
destEvaporation.ParalyzeTime = srcSlip.ParalyzeTime;
|
|
||||||
destEvaporation.LaunchForwardsMultiplier = srcSlip.LaunchForwardsMultiplier;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -61,7 +61,8 @@ namespace Content.Shared.StatusEffect
|
|||||||
if (args.Current is not StatusEffectsComponentState state)
|
if (args.Current is not StatusEffectsComponentState state)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
component.AllowedEffects = new(state.AllowedEffects);
|
component.AllowedEffects.Clear();
|
||||||
|
component.AllowedEffects.AddRange(state.AllowedEffects);
|
||||||
|
|
||||||
// Remove non-existent effects.
|
// Remove non-existent effects.
|
||||||
foreach (var effect in component.ActiveEffects.Keys)
|
foreach (var effect in component.ActiveEffects.Keys)
|
||||||
|
|||||||
Reference in New Issue
Block a user