Files
crystall-punk-14/Content.Server/_CP14/Magic/CPMagicSpellContainerSystem.cs

34 lines
1.1 KiB
C#
Raw Permalink Normal View History

using Content.Server.DoAfter;
using Content.Server.Hands.Systems;
using Content.Server.Popups;
using Robust.Server.GameObjects;
2024-05-03 20:27:12 +10:00
using Robust.Shared.Prototypes;
namespace Content.Server._CP14.Magic;
public sealed partial class CPMagicSpellContainerSystem : EntitySystem
2024-05-03 20:27:12 +10:00
{
[Dependency] private readonly DoAfterSystem _doAfter = default!;
2024-05-03 20:27:12 +10:00
[Dependency] private readonly IPrototypeManager _prototype = default!;
[Dependency] private readonly ILogManager _logManager = default!;
[Dependency] private readonly HandsSystem _hands = default!;
[Dependency] private readonly TransformSystem _transform = default!;
2024-05-03 20:27:12 +10:00
[Dependency] private readonly PopupSystem _popup = default!;
public readonly EntProtoId BaseSpellItemEntity = "CPBSpellItemEntity";
public readonly EntProtoId BaseSpellEffectEntity = "CPBaseSpellEntity";
2024-05-03 20:27:12 +10:00
private ISawmill _sawmill = default!;
2024-05-03 20:27:12 +10:00
public override void Initialize()
2024-05-03 20:27:12 +10:00
{
base.Initialize();
2024-05-03 20:27:12 +10:00
_sawmill = _logManager.GetSawmill("cp14_magic_spell_container");
2024-05-03 20:27:12 +10:00
InitializeHash();
InitializeCast();
InitializeSpell();
2024-05-03 20:27:12 +10:00
}
}