1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-23 16:50:27 +00:00

fixed treasure not appearing in freefall/windy in shmup

This commit is contained in:
Zeno Rogue 2019-01-24 14:49:25 +01:00
parent f4ba325911
commit 5f57c08154
2 changed files with 2 additions and 3 deletions

View File

@ -32,7 +32,7 @@ namespace whirlwind {
c->item = itNone;
if(safety) return;
if(hrand(5000) < PT(100 + 2 * (kills[moAirElemental] + kills[moWindCrow]), 200) && notDippingFor(itWindstone)
&& getGhostcount() < 2)
&& (!shmup::on || getGhostcount() < 2))
c->item = itWindstone;
else if(hrand(5000) < 20*PRIZEMUL)
placeLocalOrbs(c);

View File

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