mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
Time modifiers
This commit is contained in:
parent
690bae01bc
commit
4e6257dbe3
6 changed files with 99 additions and 9 deletions
|
|
@ -1,7 +1,10 @@
|
|||
using Cirno.Scripts.Actors;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Cirno.Scripts.Actors;
|
||||
using Cirno.Scripts.Components;
|
||||
using Cirno.Scripts.Resources;
|
||||
using Godot;
|
||||
using Godot.Collections;
|
||||
|
||||
namespace Cirno.Scripts.AttackPatterns;
|
||||
|
||||
|
|
@ -18,6 +21,7 @@ public partial class SpiralPattern : AttackPattern
|
|||
[Export] private float spread = 360f;
|
||||
[Export] private BulletOwner owner = BulletOwner.Enemy;
|
||||
[Export] private Resource _modifier;
|
||||
[Export] private Array<Resource> _timeModifiers;
|
||||
|
||||
private double timer;
|
||||
private double burstTimer;
|
||||
|
|
@ -50,6 +54,7 @@ public partial class SpiralPattern : AttackPattern
|
|||
BulletScene = BulletScene,
|
||||
RotationOffset = _rotationOffset,
|
||||
Modifier = _modifier as IBulletModifier,
|
||||
TimeModifiers = _timeModifiers?.Where(mod => mod is TimeModifier).Cast<TimeModifier>().ToList() ?? new List<TimeModifier>()
|
||||
});
|
||||
|
||||
// spawner.SpawnSpiralPattern(Boss.GlobalPosition, bulletSpeed, owner, bulletCount, rotationSpeed, timer, spread, BulletScene);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue