raceptr()
Add a routine for returning a ptr to the correct race of monst. Compensates for polyd and non-polyd player.
This commit is contained in:
@@ -761,10 +761,7 @@ racial_exception(mon, obj)
|
||||
struct monst *mon;
|
||||
struct obj *obj;
|
||||
{
|
||||
struct permonst *ptr;
|
||||
|
||||
if (mon == &youmonst && !Upolyd) ptr = &mons[urace.malenum];
|
||||
else ptr = mon->data;
|
||||
const struct permonst *ptr = raceptr(mon);
|
||||
|
||||
/* Acceptable Exceptions: */
|
||||
/* Allow hobbits to wear elven armor - LoTR */
|
||||
|
||||
Reference in New Issue
Block a user