19 lines
525 B
C#
19 lines
525 B
C#
|
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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|