demon summoning using wrong alignment

make msummon pass along A_NONE, allowing summoning of any demon, not just
chaotic ones
This commit is contained in:
cohrs
2002-02-06 06:56:53 +00:00
parent ca7de91dc6
commit 5cff91fadf
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -420,6 +420,7 @@ prefixes that can appear in any order when wishing should include +/- and empty
word-order in wishes, allow "blessed +2 fireproof", not just word-order in wishes, allow "blessed +2 fireproof", not just
"blessed fireproof +2" "blessed fireproof +2"
don't allow untrapping of adjacent traps in locations you can't move to don't allow untrapping of adjacent traps in locations you can't move to
summoning should summon any alignment if summoner's base alignment is A_NONE
Platform- and/or Interface-Specific Fixes Platform- and/or Interface-Specific Fixes
+1 -1
View File
@@ -11,7 +11,7 @@ msummon(ptr) /* ptr summons a monster */
register struct permonst *ptr; register struct permonst *ptr;
{ {
register int dtype = NON_PM, cnt = 0; register int dtype = NON_PM, cnt = 0;
aligntyp atyp = sgn(ptr->maligntyp); aligntyp atyp = (ptr->maligntyp==A_NONE) ? A_NONE : sgn(ptr->maligntyp);
if (is_dprince(ptr) || (ptr == &mons[PM_WIZARD_OF_YENDOR])) { if (is_dprince(ptr) || (ptr == &mons[PM_WIZARD_OF_YENDOR])) {
dtype = (!rn2(20)) ? dprince(atyp) : dtype = (!rn2(20)) ? dprince(atyp) :