blob: 34c136f87a20879766922c492d0d08f040971508 (
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 GrimoireItemActivation : ItemActivation
{
[Export]
SpellResource spell;
public override bool OnActivation(Player consumer)
{
consumer.SpellBook.LearnSpell(spell);
return true;
}
}
|