Пример #1
0
void
quest_talk(struct monst *mtmp)
{
    if (mtmp->m_id == Qstat(leader_m_id))
        leader_speaks(mtmp);
    else if (mtmp->data->msound == MS_NEMESIS)
        nemesis_speaks();
    else if (mtmp->data == &mons[PM_PRISONER])
        prisoner_speaks(mtmp);
}
Пример #2
0
void
quest_talk(struct monst *mtmp)
{
    if (mtmp->m_id == Qstat(leader_m_id)) {
        leader_speaks(mtmp);
        return;
    }
    switch (mtmp->data->msound) {
    case MS_NEMESIS:
        nemesis_speaks();
        break;
    case MS_DJINNI:
        prisoner_speaks(mtmp);
        break;
    default:
        break;
    }
}