no wisdom bonus from random Elbereth engravings

- check !in_mklev before giving credit for engraving Elbereth
This commit is contained in:
cohrs
2002-04-02 17:13:35 +00:00
parent 5c1ea899bf
commit 6610d63f1d
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -50,6 +50,7 @@ avoid dmonsfree impossible message due to migrating a dead monster via
mhurtle causing the monster to end up in a hole or other trap mhurtle causing the monster to end up in a hole or other trap
avoid temporary disappearing Burdened message due to updating status line avoid temporary disappearing Burdened message due to updating status line
midway thru in_container midway thru in_container
don't credit player's wisdom when makelevel creates random Elbereth engravings
Platform- and/or Interface-Specific Fixes Platform- and/or Interface-Specific Fixes
+1 -1
View File
@@ -370,7 +370,7 @@ register xchar e_type;
ep->engr_txt = (char *)(ep + 1); ep->engr_txt = (char *)(ep + 1);
Strcpy(ep->engr_txt, s); Strcpy(ep->engr_txt, s);
/* engraving Elbereth shows wisdom */ /* engraving Elbereth shows wisdom */
if(!strcmp(s, "Elbereth")) exercise(A_WIS, TRUE); if (!in_mklev && !strcmp(s, "Elbereth")) exercise(A_WIS, TRUE);
ep->engr_time = e_time; ep->engr_time = e_time;
ep->engr_type = e_type > 0 ? e_type : rnd(N_ENGRAVE-1); ep->engr_type = e_type > 0 ? e_type : rnd(N_ENGRAVE-1);
ep->engr_lth = strlen(s) + 1; ep->engr_lth = strlen(s) + 1;