* refactor CheZaHuetaMagicSystem * эщкере * alt-spells system. lmb, rmb, alt-click * fix * ChargeSpellsIndicator + Visual(CheZaHueta) * Custom charge effect for spell * Custom MaxChargeLevel * Finally. Alt spells seems to work!! Need to start do spells and gamerule * fuckkk * fix crash, actually burn scroll.. * some fixes blyat * ArcSpell * очередная CheZaHuetaSystem, ForceSpell * ONI'SOMA! * mraow * prepare this LMAO * Yebanyy rot etogo kazino blyat! - CardsSpell * forcewall * nig * blink * Ethereal Jaunt * игра говно * Блядина * ну на еще спеллов * blyadina * да иди ты нахуй БЛЯДЬ * кто прочитал, тот сдохнет. сделай 5 репостов чтобы выжить.... * icons * та ваще поебать * одежда
35 lines
918 B
C#
35 lines
918 B
C#
using Content.Server.Atmos.Components;
|
|
using Content.Server.Body.Systems;
|
|
using Content.Shared.Mobs;
|
|
|
|
namespace Content.Server._White.Wizard.Magic.Amaterasu;
|
|
|
|
public sealed class AmaterasuSystem : EntitySystem
|
|
{
|
|
[Dependency] private readonly BodySystem _bodySystem = default!;
|
|
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeLocalEvent<AmaterasuComponent, MobStateChangedEvent>(OnMobState);
|
|
}
|
|
|
|
private void OnMobState(EntityUid uid, AmaterasuComponent component, MobStateChangedEvent args)
|
|
{
|
|
if (args.NewMobState is MobState.Critical or MobState.Dead)
|
|
{
|
|
if(!TryComp<FlammableComponent>(uid, out var flammable))
|
|
return;
|
|
|
|
if (flammable.OnFire)
|
|
{
|
|
_bodySystem.GibBody(uid);
|
|
return;
|
|
}
|
|
|
|
RemComp<AmaterasuComponent>(uid);
|
|
}
|
|
}
|
|
}
|