Light-spell is clerical, if playing a priest

Ideally the spell adjustment should be in o_init, but by that time
hero's role has not yet been set.
This commit is contained in:
Pasi Kallinen
2026-02-03 12:07:08 +02:00
parent deec8317ce
commit 27adb7c71d
2 changed files with 4 additions and 0 deletions

View File

@@ -1575,6 +1575,7 @@ elementals do double damage on their home plane
water elementals move slightly more slowly
the "totally digested" instadeath timer is much faster
slow monster effects are more effective against faster enemies
light-spell is clerical, if playing a priest
Fixes to 3.7.0-x General Problems Exposed Via git Repository

View File

@@ -2084,6 +2084,9 @@ role_init(void)
/* 0 or 1; no gods are neuter, nor is gender randomized */
svq.quest_status.godgend = !strcmpi(align_gtitle(alignmnt), "goddess");
if (Role_if(PM_CLERIC))
objects[SPE_LIGHT].oc_skill = P_CLERIC_SPELL;
#if 0
/*
* Disable this fixup so that mons[] can be const. The only