Lines Matching refs:data

152 /* for deciding whether corpse or statue will carry along full monster data */
154 ((mon)->data->geno & G_UNIQ) || \
155 is_reviver((mon)->data) || \
160 (dmgtype((mon)->data, AD_SEDU) || \
161 dmgtype((mon)->data, AD_SSEX)))
172 register struct permonst *mdat = mtmp->data;
387 !is_flyer(mtmp->data) && !is_floater(mtmp->data);
389 !is_flyer(mtmp->data) && !is_floater(mtmp->data);
403 if (mtmp->data == &mons[PM_GREMLIN] && (inpool || infountain) && rn2(3)) {
408 } else if (mtmp->data == &mons[PM_IRON_GOLEM] && inpool && !rn2(5)) {
428 if (!is_clinger(mtmp->data) && !likes_lava(mtmp->data)) {
432 mtmp->data == &mons[PM_WATER_ELEMENTAL] ?
458 if (!is_clinger(mtmp->data)
459 && !is_swimmer(mtmp->data) && !amphibious(mtmp->data)) {
479 if (mtmp->data->mlet == S_EEL && !Is_waterlevel(&u.uz)) {
492 int mmove = mon->data->mmove;
528 if (mtmp->data->mmove == 0) {
599 if (is_hider(mtmp->data)) {
674 if (mtmp->data == &mons[PM_RUST_MONSTER] && !is_rustprone(otmp))
678 if (mtmp->data == &mons[PM_RUST_MONSTER] && otmp->oerodeproof) {
716 ptr = mtmp->data;
720 ptr = mtmp->data;
726 ptr = mtmp->data;
802 ptr = mtmp->data;
805 ptr = mtmp->data;
881 if (otmp->otyp == CORPSE && mtmp->data->mlet != S_NYMPH &&
890 if (otmp->oinvis && !perceives(mtmp->data)) continue;
920 if(obj->otyp != BOULDER || !throws_rocks(mtmp->data))
941 if (!mtmp->data->cwt)
942 maxload = (MAX_CARR_CAP * (long)mtmp->data->msize) / MZ_HUMAN;
943 else if (!strongmonst(mtmp->data)
944 || (strongmonst(mtmp->data) && (mtmp->data->cwt > WT_HUMAN)))
945 maxload = (MAX_CARR_CAP * (long)mtmp->data->cwt) / WT_HUMAN;
948 if (!strongmonst(mtmp->data)) maxload /= 2;
962 struct permonst *mdat = mtmp->data;
1006 struct permonst *mdat = mon->data;
1222 if (magr->data == &mons[PM_PURPLE_WORM] &&
1223 mdef->data == &mons[PM_SHRIEKER])
1238 if (distance==2 && mon->data==&mons[PM_GRID_BUG]) return 0;
1295 if (emits_light(mtmp2->data)) {
1298 emits_light(mtmp2->data),
1334 /* remove effects of mtmp from other data structures */
1338 struct permonst *mptr; /* reflects mtmp->data _prior_ to mtmp's death */
1362 if (!nonliving(mon->data)) {
1387 if (attacktype(mtmp->data, AT_EXPL)
1388 || attacktype(mtmp->data, AT_BOOM))
1402 if (mvitals[monsndx(mtmp->data)].mvflags & G_GENOD) {
1433 mptr = mtmp->data; /* save this for m_detach() */
1437 else if (mtmp->data == &mons[PM_WEREJACKAL])
1439 else if (mtmp->data == &mons[PM_WEREWOLF])
1441 else if (mtmp->data == &mons[PM_WERERAT])
1456 tmp = monsndx(mtmp->data);
1468 if (mtmp->data->mlet == S_KOP) {
1472 (void) makemon(mtmp->data,xdnstair,ydnstair,NO_MM_FLAGS);
1475 (void) makemon(mtmp->data,0,0,NO_MM_FLAGS);
1483 if(mtmp->data->msound == MS_NEMESIS) nemdead();
1496 struct permonst *mdat = mon->data;
1593 m_detach(mdef, mdef->data);
1614 if ((int)mdef->data->msize > MZ_TINY ||
1615 !rn2(2 + ((int) (mdef->data->geno & G_FREQ) > 2))) {
1628 (obj->otyp == STATUE && mons[obj->corpsenm].msize >= mdef->data->msize) ||
1643 mdef->data, x, y, FALSE);
1660 if (mdef->data->geno & G_UNIQ)
1675 if (is_animal(mdef->data))
1677 locomotion(youmonst.data, "jump"),
1694 nonliving(mdef->data) ? "destroyed" : "killed",
1759 const char *verb = nonliving(mtmp->data) ? "destroy" : "kill";
1802 mdat = mtmp->data; /* note: mondead can change mtmp->data */
1912 if(mtmp->data->mlet == S_GOLEM) {
1918 pline("Now it's %s.", an(mtmp->data->mname));
1942 if(!enexto(&mm, u.ux, u.uy, mtmp->data)) return;
1980 if (!enexto(&mm, newx, newy, mtmp->data)) return(FALSE);
2073 if(mtmp->data->msound == MS_SHRIEK) {
2087 if(mtmp->data == &mons[PM_MEDUSA]) {
2090 if(mtmp->data->mattk[i].aatyp == AT_GAZE) {
2091 (void) gazemu(mtmp, &mtmp->data->mattk[i]);
2114 if (humanoid(mtmp->data) || mtmp->isshk || mtmp->isgd)
2121 mtmp->data == &mons[quest_info(MS_LEADER)]) {
2128 if (!DEADMONSTER(mon) && mon->data == q_guardian && mon->mpeaceful) {
2221 if(is_were(mtmp->data) && mtmp->data->mlet != S_HUMAN)
2240 mtmp->cham = pm_to_cham(monsndx(mtmp->data));
2241 if (mtmp->data->mlet == S_MIMIC && mtmp->msleeping &&
2263 } else if (is_were(mon->data) && !is_human(mon->data)) {
2267 mon->cham = pm_to_cham(monsndx(mon->data));
2281 if(mtmp->data->mlet == S_MIMIC) {
2390 struct permonst *olddata = mtmp->data;
2441 if(mdat == mtmp->data) return(0); /* still the same monster */
2477 if (emits_light(olddata) != emits_light(mtmp->data)) {
2482 if (emits_light(mtmp->data))
2483 new_light_source(mtmp->mx, mtmp->my, emits_light(mtmp->data),
2509 } else if (!sticks(mdat) && !sticks(youmonst.data))
2691 mndx = monsndx(mtmp->data);
2716 if (mon->data == &mons[PM_FLESH_GOLEM]) {
2719 } else if (mon->data == &mons[PM_IRON_GOLEM]) {
2748 if((mtmp->data == &mons[PM_WATCHMAN] ||
2749 mtmp->data == &mons[PM_WATCH_CAPTAIN])
2788 if (mtmp->data == &mons[PM_WATCHMAN] ||
2789 mtmp->data == &mons[PM_WATCH_CAPTAIN])