Start with a level 1 spell and enough power

Ensure the first spell - if any - given to the hero in initial
inventory is level 1 - otherwise you can end up with a situation
where the hero knows level 3 spells, but won't have enough power
to cast them.

If the hero starts out with a spell, ensure enough power (5)
to cast that level 1 spell.
This commit is contained in:
Pasi Kallinen
2022-02-22 12:26:03 +02:00
parent 78f7df9a51
commit 33556788c3
4 changed files with 25 additions and 1 deletions

View File

@@ -2539,6 +2539,7 @@ extern void initialspell(struct obj *);
extern boolean known_spell(short);
extern int spell_idx(short);
extern boolean force_learn_spell(short);
extern int num_spells(void);
/* ### steal.c ### */