Magic redesign (#594)

* water spell textures

* water creation spell

* mana consume, and mana glove

* remove mana transfer ring

* Update migration.yml

* copy Wizden loadout PR

* add sprite component to all spells

* spell dummy loadouts

* delete spell traits

* really give spells from loadouts

* update crates fill and demiplane spawners

* beer creation spell, fix passivedamage

* Update PassiveDamageSystem.cs
This commit is contained in:
Ed
2024-11-20 00:23:44 +03:00
committed by GitHub
parent ec278dc98f
commit e79b046c4a
50 changed files with 742 additions and 197 deletions

View File

@@ -1,4 +1,5 @@
using System.Linq;
using Content.Shared.Actions;
using Content.Shared.Hands.Components;
using Content.Shared.Hands.EntitySystems;
using Content.Shared.Inventory;
@@ -22,6 +23,7 @@ public abstract class SharedStationSpawningSystem : EntitySystem
[Dependency] private readonly MetaDataSystem _metadata = default!;
[Dependency] private readonly SharedStorageSystem _storage = default!;
[Dependency] private readonly SharedTransformSystem _xformSystem = default!;
[Dependency] private readonly SharedActionsSystem _action = default!; //CP14
private EntityQuery<HandsComponent> _handsQuery;
private EntityQuery<InventoryComponent> _inventoryQuery;
@@ -82,6 +84,15 @@ public abstract class SharedStationSpawningSystem : EntitySystem
{
EquipStartingGear(entity, loadout.StartingGear, raiseEvent);
EquipStartingGear(entity, (IEquipmentLoadout) loadout, raiseEvent);
CP14EquipStartingActions(entity, loadout);
}
private void CP14EquipStartingActions(EntityUid entity, LoadoutPrototype loadout)
{
foreach (var action in loadout.Actions)
{
_action.AddAction(entity, action);
}
}
/// <summary>