slow area upgrade test

This commit is contained in:
Ian Woods 2026-07-25 23:22:11 -07:00
parent db9c828e63
commit 2de6d85b2f
5 changed files with 28 additions and 0 deletions

View file

@ -11,5 +11,6 @@ namespace TD.Core
{ {
Fireball = 0, Fireball = 0,
SlowArea = 1, SlowArea = 1,
SlowAreaUpgraded = 2,
} }
} }

View file

@ -0,0 +1,21 @@
// Assets/_Project/Scripts/Gameplay/BuilderSpells/SlowAreaUpgradedSpellDefinition.cs
using TD.Core;
using UnityEngine;
namespace TD.Gameplay.BuilderSpells
{
/// <summary>
/// Draft upgrade for <see cref="SlowAreaSpellDefinition"/> — identical behavior, just a
/// distinct <see cref="BuilderSpellKind"/> so <see
/// cref="TD.Gameplay.Draft.BuilderSpellUpgradeDraftOption"/> can replace the base spell
/// with this one in the player's loadout. All fields (SlowFactor, EffectDuration, etc.)
/// are inherited; author this asset with a longer EffectDuration than the base spell.
/// </summary>
[CreateAssetMenu(fileName = "SlowAreaUpgradedSpell",
menuName = "TD/Builder Spells/Slow Area (Upgraded)")]
public class SlowAreaUpgradedSpellDefinition : SlowAreaSpellDefinition
{
public override BuilderSpellKind Kind => BuilderSpellKind.SlowAreaUpgraded;
}
}

View file

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 37cc60a4a6e53e24cb6d1c0be310868a

View file

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 717648113e8090fc6856744d898ab375

View file

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 7b1c5b562f39c72eea3bafd0165af078