public override void Init() { base.Init(); for (var i = 0; i < 4; i++) { ProjectileTemplate.Make(Self, "green_small", Self.Center, i * (float)Math.PI * 0.5f, 5, 2, 0, p => p.AddLight(16f, Projectile.GreenLight), " x ", "xxxx", " x "); } }
public override void Update(float dt) { base.Update(dt); if (T >= (count + 1) * Delay) { count++; if (count == 4) { Self.SelectAttack(); return; } ProjectileTemplate.Make(Self, "green_small", Self.Center, Self.AngleTo(Self.Target), 5, 2, 0, p => p.AddLight(16f, Projectile.GreenLight), " x ", "xxxx", " x "); } }