1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-05-11 17:55:11 +01:00

Remove instance of code duplication, and add dread seraph code

This commit is contained in:
Chris-plus-alphanumericgibberish 2015-04-12 23:40:58 -04:00
parent a239399288
commit 99827b48a3

View file

@ -3335,21 +3335,9 @@ register struct monst *mtmp;
}
aggravate();
} else if(mtmp->data->msound == MS_JUBJUB && !(mtmp->mspec_used)) {
struct monst *tmpm;
mtmp->mspec_used = 10;
if(flags.soundok) {
pline("%s screams high and shrill.", Monnam(mtmp));
stop_occupation();
}
for(tmpm = fmon; tmpm; tmpm = tmpm->nmon){
if(tmpm != mtmp){
if(tmpm->mtame && tmpm->mtame<20) tmpm->mtame++;
if(d(1,tmpm->mhp) < mtmp->mhpmax){
tmpm->mflee = 1;
}
}
}
make_stunned(HStun + mtmp->mhp/10, TRUE);
domonnoise(mtmp);
} else if(mtmp->data->msound == MS_DREAD && !(mtmp->mspec_used)) {
domonnoise(mtmp);
}
if(mtmp->data == &mons[PM_MEDUSA]) {
register int i;