R778 - prayer bit
- need to use min() not max() for action choice when not on altar
This commit is contained in:
@@ -69,6 +69,7 @@ prevent the Wizard of Yendor from displacing the high priest of Moloch out of
|
||||
ATR_BOLD on spell menu header
|
||||
travel command should restrict its shortest paths to areas of the map the
|
||||
hero knows about or might reasonably guess
|
||||
non-altar prayer should limit god action, not maximize it
|
||||
|
||||
|
||||
Platform- and/or Interface-Specific Fixes
|
||||
|
||||
@@ -747,7 +747,7 @@ pleased(g_align)
|
||||
} else {
|
||||
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)
|
||||
action = (u.ualign.record > 0 || !rnl(2)) ? 1 : 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user