Create familiar spell can create harder creatures

This commit is contained in:
Pasi Kallinen
2025-07-11 13:04:25 +03:00
parent 6c22e7af45
commit 8570421449
2 changed files with 5 additions and 1 deletions

View File

@@ -1520,6 +1520,7 @@ the engraving pristine text field was not being appropriately populated during
worn alchemy smock reduces chances of dipped potions exploding
dwarves can sense buried items under their feet
monsters trapped in pits cannot kick
create familiar spell can create harder creatures
Fixes to 3.7.0-x General Problems Exposed Via git Repository

View File

@@ -124,7 +124,10 @@ pick_familiar_pm(struct obj *otmp, boolean quietly)
} else if (!rn2(3)) {
pm = &mons[pet_type()];
} else {
pm = rndmonst();
int skill = spell_skilltype(SPE_CREATE_FAMILIAR);
int max = 3 * P_SKILL(skill);
pm = rndmonst_adj(0, max);
if (!pm && !quietly)
There("seems to be nothing available for a familiar.");
}