Deprecate "makedefs -m".
mons[].difficulty takes over for monstr[] Invoking "makedefs -m" gives a deprecation message; it is also included in the (now mostly empty) monstr.c. Ports should now remove "makedefs -m" from their build procedures but this commit does not include that change.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 wizard.c $NHDT-Date: 1456618999 2016/02/28 00:23:19 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.48 $ */
|
||||
/* NetHack 3.6 wizard.c $NHDT-Date: 1539804905 2018/10/17 19:35:05 $ $NHDT-Branch: keni-makedefsm $:$NHDT-Revision: 1.53 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Robert Patrick Rankin, 2016. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -11,8 +11,6 @@
|
||||
#include "hack.h"
|
||||
#include "qtext.h"
|
||||
|
||||
extern const int monstr[];
|
||||
|
||||
STATIC_DCL short FDECL(which_arti, (int));
|
||||
STATIC_DCL boolean FDECL(mon_has_arti, (struct monst *, SHORT_P));
|
||||
STATIC_DCL struct monst *FDECL(other_mon_has_arti, (struct monst *, SHORT_P));
|
||||
@@ -588,7 +586,8 @@ struct monst *summoner;
|
||||
m_cls = mons[makeindex].mlet;
|
||||
} while (summoner
|
||||
&& ((attacktype(&mons[makeindex], AT_MAGC)
|
||||
&& monstr[makeindex] >= monstr[summoner->mnum])
|
||||
&& mons[makeindex].difficulty
|
||||
>= mons[summoner->mnum].difficulty)
|
||||
|| (s_cls == S_DEMON && m_cls == S_ANGEL)
|
||||
|| (s_cls == S_ANGEL && m_cls == S_DEMON)));
|
||||
/* do this after picking the monster to place */
|
||||
|
||||
Reference in New Issue
Block a user