extern long wearslot(struct obj *);
extern void mon_set_minvis(struct monst *);
extern void mon_adjust_speed(struct monst *, int, struct obj *);
-extern void update_mon_intrinsics(struct monst *, struct obj *, boolean,
+extern void update_mon_extrinsics(struct monst *, struct obj *, boolean,
boolean);
extern int find_mac(struct monst *);
extern void m_dowear(struct monst *, boolean);
throws rider, possibly inflicting fatal damage and producing bones; this
is why we had to call extract_from_minvent() with do_intrinsics=FALSE */
if (!DEADMONSTER(mon) && unwornmask)
- update_mon_intrinsics(mon, obj, FALSE, TRUE);
+ update_mon_extrinsics(mon, obj, FALSE, TRUE);
}
/* some monsters bypass the normal rules for moving between levels or
mtmp->misc_worn_check |= W_SADDLE;
saddle->owornmask = W_SADDLE;
saddle->leashmon = mtmp->m_id;
- update_mon_intrinsics(mtmp, saddle, TRUE, FALSE);
+ update_mon_extrinsics(mtmp, saddle, TRUE, FALSE);
}
/*** Riding the monster ***/
? (POISON_RES + ACID_RES - objects[(o)->otyp].oc_oprop) \
: 0)
-/* armor put on or taken off; might be magical variety
- [TODO: rename to 'update_mon_extrinsics()' and change all callers...] */
+/* armor put on or taken off; might be magical variety */
void
-update_mon_intrinsics(
+update_mon_extrinsics(
struct monst *mon,
struct obj *obj, /* armor being worn or taken off */
boolean on,
mon->mcanmove = 0;
}
if (old) {
- update_mon_intrinsics(mon, old, FALSE, creation);
+ update_mon_extrinsics(mon, old, FALSE, creation);
/* owornmask was cleared above but artifact_light() expects it */
old->owornmask = oldmask;
pline("%s is shining %s.", Something, adesc);
}
}
- update_mon_intrinsics(mon, best, TRUE, creation);
+ update_mon_extrinsics(mon, best, TRUE, creation);
/* if couldn't see it but now can, or vice versa, */
if (!creation && (sawmon ^ canseemon(mon))) {
if (mon->minvis && !See_invisible) {
extract_from_minvent(
struct monst *mon,
struct obj *obj,
- boolean do_intrinsics, /* whether to call update_mon_intrinsics */
+ boolean do_extrinsics, /* whether to call update_mon_extrinsics */
boolean silently) /* doesn't affect all possible messages,
- * just update_mon_intrinsics's */
+ * just update_mon_extrinsics's */
{
long unwornmask = obj->owornmask;
obj_extract_self(obj);
obj->owornmask = 0L;
if (unwornmask) {
- if (!DEADMONSTER(mon) && do_intrinsics) {
- update_mon_intrinsics(mon, obj, FALSE, silently);
+ if (!DEADMONSTER(mon) && do_extrinsics) {
+ update_mon_extrinsics(mon, obj, FALSE, silently);
}
mon->misc_worn_check &= ~unwornmask;
/* give monster a chance to wear other equipment on its next