* 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 * та ваще поебать * одежда
22 lines
613 B
C#
22 lines
613 B
C#
using Content.Server.Lightning;
|
|
using Content.Shared.Projectiles;
|
|
|
|
namespace Content.Server._White.Wizard.Magic.TeslaProjectile;
|
|
|
|
public sealed class TeslaProjectileSystem : EntitySystem
|
|
{
|
|
[Dependency] private readonly LightningSystem _lightning = default!;
|
|
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeLocalEvent<TeslaProjectileComponent, ProjectileHitEvent>(OnStartCollide);
|
|
}
|
|
|
|
private void OnStartCollide(Entity<TeslaProjectileComponent> ent, ref ProjectileHitEvent args)
|
|
{
|
|
_lightning.ShootRandomLightnings(ent, 2, 4, arcDepth:2);
|
|
}
|
|
}
|