R778 - prayer bit

- need to use min() not max() for action choice when not on altar
This commit is contained in:
cohrs
2002-04-14 04:46:11 +00:00
parent 70ab0237e5
commit d3135ffe1c
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -69,6 +69,7 @@ prevent the Wizard of Yendor from displacing the high priest of Moloch out of
ATR_BOLD on spell menu header ATR_BOLD on spell menu header
travel command should restrict its shortest paths to areas of the map the travel command should restrict its shortest paths to areas of the map the
hero knows about or might reasonably guess hero knows about or might reasonably guess
non-altar prayer should limit god action, not maximize it
Platform- and/or Interface-Specific Fixes Platform- and/or Interface-Specific Fixes
+1 -1
View File
@@ -747,7 +747,7 @@ pleased(g_align)
} else { } else {
int action = rn1(on_altar() ? 3 + on_shrine() : 2, Luck+1); int action = rn1(on_altar() ? 3 + on_shrine() : 2, Luck+1);
if (!on_altar()) action = max(action,2); if (!on_altar()) action = min(action, 2);
if (u.ualign.record < STRIDENT) if (u.ualign.record < STRIDENT)
action = (u.ualign.record > 0 || !rnl(2)) ? 1 : 0; action = (u.ualign.record > 0 || !rnl(2)) ? 1 : 0;