mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-27 20:07:40 +00:00
attacking guarding dogs now wakes up all other existing guarding dogs, and causes a small ambush -- also affects shmup mode and other ranged attacks
This commit is contained in:
@@ -506,6 +506,8 @@ EX void killMonster(cell *c, eMonster who, flagtype deathflags IS(0)) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if(m == moHunterGuard) ambush::guard_attack();
|
||||||
|
|
||||||
if(m == moGolemMoved) m = moGolem;
|
if(m == moGolemMoved) m = moGolem;
|
||||||
if(m == moKnightMoved) m = moKnight;
|
if(m == moKnightMoved) m = moKnight;
|
||||||
if(m == moSlimeNextTurn) m = moSlime;
|
if(m == moSlimeNextTurn) m = moSlime;
|
||||||
|
|||||||
@@ -905,6 +905,12 @@ EX void ambush(cell *c, int dogs) {
|
|||||||
addMessage(XLAT("You are ambushed!"));
|
addMessage(XLAT("You are ambushed!"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EX void guard_attack() {
|
||||||
|
addMessage(XLAT("%The1 alarms other dogs as it dies!", moHunterGuard));
|
||||||
|
for(cell *c: dcal) if(c->monst == moHunterGuard) c->monst = moHunterDog;
|
||||||
|
ambush(cwt.at, 7);
|
||||||
|
}
|
||||||
|
|
||||||
EX }
|
EX }
|
||||||
|
|
||||||
EX namespace dice {
|
EX namespace dice {
|
||||||
|
|||||||
Reference in New Issue
Block a user