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:
parent
a239399288
commit
99827b48a3
1 changed files with 3 additions and 15 deletions
18
src/mon.c
18
src/mon.c
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue