* fix predicting sharpening
* finish shadow step
* tweak ice dagger
* shadow grab test
* fireball spell
* ice shards spell
* battle royale crates
* loot tables
* remove expedition ship
* dev update
* br map update
* spells tweak
* tips update
* some fixes
* biome forest spawner
* give keys to orgs
* mobs and aura spawners
* expedition update: goal, new ship, new map
* fix doors layers
* add new map proto
* translate keys
* Update crates.yml
* Update PostMapInitTest.cs
* fix spawning on expedition ship
* Fuck you, Randy. Remove nails
* fix lock systems
* localize tips
* some tweaks
* update ship, remove shrooms.
* fixes
* Update StationSystem.cs
* Revert "Update StationSystem.cs"
This reverts commit f632241324.
* Update expedition_test.yml
24 lines
647 B
C#
24 lines
647 B
C#
using Content.Shared.Throwing;
|
|
|
|
namespace Content.Shared._CP14.MagicSpell.Spells;
|
|
|
|
public sealed partial class CP14SpellThrowToUser : CP14SpellEffect
|
|
{
|
|
[DataField]
|
|
public float ThrowPower = 10f;
|
|
public override void Effect(EntityManager entManager, CP14SpellEffectBaseArgs args)
|
|
{
|
|
if (args.Target is null)
|
|
return;
|
|
|
|
var targetEntity = args.Target.Value;
|
|
|
|
var throwing = entManager.System<ThrowingSystem>();
|
|
|
|
if (!entManager.TryGetComponent<TransformComponent>(args.User, out var xform))
|
|
return;
|
|
|
|
throwing.TryThrow(targetEntity, xform.Coordinates, ThrowPower);
|
|
}
|
|
}
|