Wizard Touch Spells (Smite, Cluwne's Curse, Slippery Slope) (#34531)

* Renames Smite Spells yml to Touch Spells and Renames Smite Spells region to the same

* Adds wizard clothes requirement to Smite. Adds Cluwne spell. Adds EnsureCompOnTouchSpellEvent and implements it in the magicsystem

* Adds Smite and Cluwne to the grimore and loc for them

* Adds Slippery Slope spell and SlipOnCollide

* Adds handled for comp spell event

* Removes super slippery

* Removes EnsureCompOnTouchSpell it was redundant with ChangeComponentsSpellEvent

* Makes requirement-free action for smite

* checks if we should be slipping what we touch

* Removes SlipOnCollide, adds negative speed for steptrigger

* Removes slip on collide adds negative speed for steptrigger
This commit is contained in:
keronshb
2025-02-02 14:23:41 -05:00
committed by GitHub
parent 2991f1ad40
commit c82f77ef07
9 changed files with 145 additions and 105 deletions

View File

@@ -19,7 +19,7 @@ using Robust.Shared.Utility;
namespace Content.Shared.Slippery;
[UsedImplicitly]
[UsedImplicitly]
public sealed class SlipperySystem : EntitySystem
{
[Dependency] private readonly ISharedAdminLogManager _adminLogger = default!;
@@ -83,7 +83,7 @@ public sealed class SlipperySystem : EntitySystem
{
if (HasComp<SpeedModifiedByContactComponent>(args.OtherEntity))
_speedModifier.AddModifiedEntity(args.OtherEntity);
}
}
private bool CanSlip(EntityUid uid, EntityUid toSlip)
{