* HellSpawn Mob * added spawner * summary for the namespace * larger collider, cannot enter single tile corridors. * fix * remove duplicate from yml, fix attributions. * moved action to shared, moved comp to shared, networked comp, separated heal, fixed attributions * removed flammable from hellspawn removed the healing effect from firestarter ability (healing can be separate ability). * Update attributions.yml fix attributions * fix * fix
23 lines
684 B
C#
23 lines
684 B
C#
using Content.Shared.Actions;
|
|
|
|
namespace Content.Shared.Abilities.Firestarter;
|
|
|
|
public sealed class SharedFirestarterSystem : EntitySystem
|
|
{
|
|
[Dependency] private readonly SharedActionsSystem _actionsSystem = default!;
|
|
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
SubscribeLocalEvent<FirestarterComponent, ComponentInit>(OnComponentInit);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Adds the firestarter action.
|
|
/// </summary>
|
|
private void OnComponentInit(EntityUid uid, FirestarterComponent component, ComponentInit args)
|
|
{
|
|
_actionsSystem.AddAction(uid, ref component.FireStarterActionEntity, component.FireStarterAction, uid);
|
|
}
|
|
}
|