blob: d7da2d03fa25fb7ba73f68a576dc2ada0145e86d (
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;
}
}
|