1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-02 18:57:56 +00:00

newlands:: wandering monsters in Brownian and Variant

This commit is contained in:
Zeno Rogue
2018-12-25 12:51:25 +01:00
parent 1ef8b8c5e8
commit dda147c173
4 changed files with 57 additions and 40 deletions

View File

@@ -413,6 +413,20 @@ void wandering() {
continue;
}
else if(c->land == laBrownian && wchance(items[itBrownian], 75)) {
c->monst = moAcidBird;
continue;
}
else if(c->land == laVariant && wchance(items[itVarTreasure], 50)) {
int i = hrand(21);
if(getBits(c) & (1>>i)) {
eMonster m = variant_features[i].wanderer;
if(m) c->monst = m, c->hitpoints = 3;
}
continue;
}
else if(c->wall == waSea && !c->monst) {
if(c->land == laCaribbean && wchance(items[itPirate], 15) && canReachPlayer(c, moPirate)) {
c->monst = moCShark;