1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-14 08:14:05 +00:00

Clear stuntime when generating new monsters

This commit is contained in:
Jesse Ruderman
2021-08-03 16:32:04 -07:00
parent b67b946126
commit 85cfd1d01f
5 changed files with 22 additions and 2 deletions

View File

@@ -166,10 +166,12 @@ EX bool collectItem(cell *c2, bool telekinesis IS(false)) {
else if(c2->item == itOrbLife) {
playSound(c2, "pickup-orb"); // TODO summon
placeGolem(cwt.at, c2, moGolem);
if(cwt.at->monst == moGolem) cwt.at->stuntime = 0;
}
else if(c2->item == itOrbFriend) {
playSound(c2, "pickup-orb"); // TODO summon
placeGolem(cwt.at, c2, moTameBomberbird);
if(cwt.at->monst == moTameBomberbird) cwt.at->stuntime = 0;
}
#if CAP_TOUR
else if(tour::on && (c2->item == itOrbSafety || c2->item == itOrbRecall)) {