Firstborn/Assets/RPG Creation Kit/Magic/Spells/Lesser Healing/Spell Book/SpellBook_LearnLesserHealin...

19 lines
525 B
C#
Raw Permalink Normal View History

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