1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 01:00:25 +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; c->item = itNone;
if(safety) return; 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) && notDippingFor(itWindstone)
&& getGhostcount() < 2) && (!shmup::on || getGhostcount() < 2))
c->item = itWindstone; c->item = itWindstone;
else if(hrand(5000) < 20*PRIZEMUL) else if(hrand(5000) < 20*PRIZEMUL)
placeLocalOrbs(c); placeLocalOrbs(c);

View File

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