blob: 3b421c737e4f60487f1a8b2626dcb242d88f7901 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
using Godot;
using TheLegendOfGustav.Entities.Actors;
using TheLegendOfGustav.Magic;
/// <summary>
/// Aplica um efeito de feitiço ao usuário.
/// </summary>
[GlobalClass]
public partial class SpellEffectItemActivation : ItemActivation
{
[Export]
SpellEffect effect;
public override bool OnActivation(Player consumer)
{
effect.Apply(consumer, consumer);
return true;
}
}
|