1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

fixed ocean wandering albatross generation, and added Orbs of Safety

This commit is contained in:
Zeno Rogue 2019-06-17 07:32:13 +02:00
parent 1da7a9b815
commit a63fdc993f

View File

@ -411,6 +411,11 @@ void wandering() {
continue; continue;
} }
else if(c->land == laOcean && cwt.at->land == laOcean && cwt.at->landparam > 25 && c->landparam > 25 && !tactic::on && !yendor::on && hrand(100) < 2) {
c->monst = moPirate; c->wall = waBoat; c->item = itOrbSafety;
continue;
}
else if(c->wall == waCTree && !c->monst && wchance(items[itPirate], 15) && canReachPlayer(c, moSlime)) { else if(c->wall == waCTree && !c->monst && wchance(items[itPirate], 15) && canReachPlayer(c, moSlime)) {
c->monst = moParrot; c->monst = moParrot;
playSeenSound(c); playSeenSound(c);
@ -459,7 +464,7 @@ void wandering() {
playSeenSound(c); playSeenSound(c);
continue; continue;
} }
if(c->land == laOcean && (items[itCoast] > 50 || (cwt.at->landparam < 25 && c->landparam < 25)) && wchance(items[itCoast], 25) && canReachPlayer(c, moEagle)) { if(c->land == laOcean && (items[itCoast] > 50 || ((cwt.at->land != laOcean || cwt.at->landparam < 25) && c->landparam < 25)) && wchance(items[itCoast], 25) && canReachPlayer(c, moEagle)) {
c->monst = moAlbatross; c->monst = moAlbatross;
playSeenSound(c); playSeenSound(c);
continue; continue;