Firstborn/Assets/RPG Creation Kit/Magic/Spells/Fireball/Spell Book/SpellBook_LearnFireball.cs
Schaken-Mods 959e80cf72 assets upload
assets upload description.
2023-03-28 12:16:30 -05:00

19 lines
502 B
C#

using UnityEngine;
using RPGCreationKit;
namespace RPGCreationKit
{
public class SpellBook_LearnFireball : ItemScript
{
public override void OnReadBook(BookItem book)
{
base.OnReadBook(book);
if(!SpellsKnowledge.Player.HasSpell("S_Fireball01"))
{
SpellsKnowledge.Player.LearnSpell("S_Fireball01");
AlertMessage.instance.InitAlertMessage("You learn: Fireball", 2.5f, false);
}
}
}
}