Add some on-screen FX for some items

This commit is contained in:
2026-02-26 02:56:16 -08:00
parent fadb1652d4
commit bf168a2577
9 changed files with 1049 additions and 1487 deletions

View File

@@ -75,6 +75,8 @@ public partial class Player : CharacterBody3D, IPlayer, IProvide<IPlayer>
#endregion
#region Node Dependencies
[Node] public IAnimationPlayer SpellFXAnimations { get; set; } = default!;
[Node] private IAnimationPlayer WeaponAnimations { get; set; } = default!;
[Node] private IAnimationPlayer PlayerFXAnimations { get; set; } = default!;
@@ -596,6 +598,12 @@ public partial class Player : CharacterBody3D, IPlayer, IProvide<IPlayer>
}
}
public void PlaySpellFX(SpellFXEnum spellEnum)
{
SpellFXAnimations.Stop();
SpellFXAnimations.Play(spellEnum.ToString());
}
private void OnLevelUp()
{
BoostPlayerHPFromLevelUp();