Tutorial: spellcasting

Add some basic spellcasting stuff to the tutorial: read a spellbook,
cast a spell.  If the hero doesn't have enough energy, just adds
a note saying so.

Remove/restore the known spells when entering/leaving the tutorial.
This commit is contained in:
Pasi Kallinen
2025-07-09 18:30:54 +03:00
parent b4f2ef853a
commit 3440193a5a
4 changed files with 23 additions and 3 deletions

View File

@@ -372,6 +372,7 @@ static const struct instance_globals_g g_init_g = {
0L, /* gmst_moves */
NULL, /* gmst_invent */
NULL, NULL, NULL, /* gmst_ubak, gmst_disco, gmst_mvitals */
{ DUMMY }, /* gmst_spl_book */
/* pline.c */
UNDEFINED_PTR, /* gamelog */
/* region.c */