Symbol: edog
games/hack/def.edog.h
74
#define EDOG(mp) ((struct edog *)(&(mp->mextra[0])))
games/hack/hack.dog.c
196
struct edog *edog = EDOG(mtmp);
games/hack/hack.dog.c
207
if (moves <= edog->eattime)
games/hack/hack.dog.c
212
if (moves > edog->hungrytime + 500 && !mtmp->mconf) {
games/hack/hack.dog.c
221
} else if (moves > edog->hungrytime + 750 || mtmp->mhp < 1) {
games/hack/hack.dog.c
240
if (!rn2(udist) || !rn2((int) edog->apport))
games/hack/hack.dog.c
241
if ((unsigned) rn2(10) < edog->apport) {
games/hack/hack.dog.c
243
if (edog->apport > 1)
games/hack/hack.dog.c
244
edog->apport--;
games/hack/hack.dog.c
245
edog->dropdist = udist; /* hpscdi!jon */
games/hack/hack.dog.c
246
edog->droptime = moves;
games/hack/hack.dog.c
257
if ((unsigned) rn2(20) < edog->apport + 3)
games/hack/hack.dog.c
258
if (rn2(udist) || !rn2((int) edog->apport)) {
games/hack/hack.dog.c
293
!mtmp->minvent && edog->apport > (unsigned)rn2(8)) {
games/hack/hack.dog.c
300
(gtyp != DOGFOOD && gtyp != APPORT && moves < edog->hungrytime)) {
games/hack/hack.dog.c
331
(mtmp->minvent && rn2((int) edog->apport)))
games/hack/hack.dog.c
400
(otyp < ACCFOOD || edog->hungrytime <= moves)) {
games/hack/hack.dog.c
410
edog->eattime =
games/hack/hack.dog.c
412
if (edog->hungrytime < moves)
games/hack/hack.dog.c
413
edog->hungrytime = moves;
games/hack/hack.dog.c
414
edog->hungrytime +=
games/hack/hack.dog.c
421
edog->apport += 200 / (edog->dropdist + moves - edog->droptime);
games/hack/hack.dog.c
516
mtmp2 = newmonst(sizeof(struct edog) + mtmp->mnamelth);
games/hack/hack.dog.c
518
mtmp2->mxlth = sizeof(struct edog);
games/hack/hack.dog.c
76
{"little dog", 'd', 2, 18, 6, 1, 6, sizeof(struct edog)};
games/hack/hack.dog.c
78
{"dog", 'd', 4, 16, 5, 1, 6, sizeof(struct edog)};
games/hack/hack.dog.c
80
{"large dog", 'd', 6, 15, 4, 2, 4, sizeof(struct edog)};