mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-05 10:05:55 +00:00
Pattern burst rotation
This commit is contained in:
parent
6d7a23e2f3
commit
099c8acf5e
10 changed files with 538 additions and 477 deletions
|
|
@ -43,15 +43,25 @@ public partial class SpiralPattern : AttackPattern
|
|||
[ExportCategory("Other")] [Export] public bool _predictPlayer = false;
|
||||
|
||||
[ExportCategory("Overrides")]
|
||||
[Export] public bool OverrideOwner { get; private set; } = false;
|
||||
|
||||
[ExportGroup("Override Damage")]
|
||||
[Export(PropertyHint.GroupEnable)] public bool OverrideDamage { get; private set; } = false;
|
||||
[Export] public float DamageOverride { get; private set; } = 10f;
|
||||
|
||||
[ExportGroup("Override Owner")]
|
||||
[Export(PropertyHint.GroupEnable)] public bool OverrideOwner { get; private set; } = false;
|
||||
[Export] public BulletOwner Owner { get; private set; } = BulletOwner.None;
|
||||
[Export] public bool OverrideDamageType { get; private set; } = false;
|
||||
|
||||
[ExportGroup("Override Damage Type")]
|
||||
[Export(PropertyHint.GroupEnable)] public bool OverrideDamageType { get; private set; } = false;
|
||||
[Export] public DamageType DamageType { get; private set; } = DamageType.Neutral;
|
||||
[Export] public bool OverrideControllable { get; private set; } = false;
|
||||
[Export] public bool Controllable { get; private set; } = false;
|
||||
|
||||
[ExportGroup("Override Attributes")]
|
||||
[Export(PropertyHint.GroupEnable)] public bool OverrideAttributes { get; private set; } = false;
|
||||
[Export] public BulletFlags AttributesOverride { get; private set; }
|
||||
|
||||
[ExportCategory("Extra Modifiers")]
|
||||
[Export]
|
||||
[Export(PropertyHint.GroupEnable)]
|
||||
public bool OverrideCreationModifier { get; private set; } = false;
|
||||
|
||||
[Export] public BulletCreationModifier Modifier;
|
||||
|
|
@ -72,9 +82,9 @@ public partial class SpiralPattern : AttackPattern
|
|||
bullet.DamageType = DamageType;
|
||||
}
|
||||
|
||||
if (OverrideControllable)
|
||||
if (OverrideAttributes)
|
||||
{
|
||||
bullet.Controllabe = Controllable;
|
||||
bullet.Attributes = AttributesOverride;
|
||||
}
|
||||
|
||||
if (OverrideCreationModifier)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue