| 573 | } |
| 574 | |
| 575 | void |
| 576 | eating_conducts(struct permonst *pd) |
| 577 | { |
| 578 | int ll_conduct = 0; |
| 579 | |
| 580 | if (!u.uconduct.food++) { |
| 581 | livelog_printf(LL_CONDUCT, "ate for the first time - %s", |
| 582 | pd->pmnames[NEUTRAL]); |
| 583 | ll_conduct++; |
| 584 | } |
| 585 | if (!vegan(pd)) { |
| 586 | if (!u.uconduct.unvegan++ && !ll_conduct) { |
| 587 | livelog_printf(LL_CONDUCT, |
| 588 | "consumed animal products (%s) for the first time", |
| 589 | pd->pmnames[NEUTRAL]); |
| 590 | ll_conduct++; |
| 591 | } |
| 592 | } |
| 593 | if (!vegetarian(pd)) { |
| 594 | if (!u.uconduct.unvegetarian && !ll_conduct) |
| 595 | livelog_printf(LL_CONDUCT, "tasted meat (%s) for the first time", |
| 596 | pd->pmnames[NEUTRAL]); |
| 597 | violated_vegetarian(); |
| 598 | } |
| 599 | } |
| 600 | |
| 601 | /* handle side-effects of mind flayer's tentacle attack */ |
| 602 | int |
no test coverage detected