1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-27 23:49:03 +00:00

westwall:: no West treasures close to the wall

This commit is contained in:
Zeno Rogue
2018-12-24 16:33:41 +01:00
parent 4169fe4cb1
commit fd3f762a30
2 changed files with 4 additions and 1 deletions

View File

@@ -123,7 +123,7 @@ namespace westwall {
void switchTreasure(cell *c) {
c->item = itNone;
if(safety) return;
if(hrand(5000) < PT(100 + 2 * (kills[moAirElemental] + kills[moWindCrow]), 200) && notDippingFor(itWindstone)
if(hrand(5000) < PT(100 + 2 * (kills[moAirElemental] + kills[moWindCrow]), 200) && c->landparam >= 5 + items[itWest]
&& getGhostcount() < 2)
c->item = itWest;
else if(hrand(5000) < 20*PRIZEMUL)