* import sprites * pipia * 3 slime types * Delete generic_magic_effects.yml * Update scrolls.yml * demiplane integration * Update fire.yml * Update crystals.yml * local * Update fire.yml * fix AI stuck * Update base.yml * loot * Update mobs.yml
20 lines
521 B
C#
20 lines
521 B
C#
using Content.Shared.Throwing;
|
|
|
|
namespace Content.Shared._CP14.MagicSpell.Spells;
|
|
|
|
public sealed partial class CP14SpellThrowUserTo : CP14SpellEffect
|
|
{
|
|
[DataField]
|
|
public float ThrowPower = 10f;
|
|
|
|
public override void Effect(EntityManager entManager, CP14SpellEffectBaseArgs args)
|
|
{
|
|
if (args.Position is null || args.User is null)
|
|
return;
|
|
|
|
var throwing = entManager.System<ThrowingSystem>();
|
|
|
|
throwing.TryThrow(args.User.Value, args.Position.Value, ThrowPower);
|
|
}
|
|
}
|