fixed treasure not appearing in freefall/windy in shmup

This commit is contained in:
Zeno Rogue committed 2019-09-12 22:38:39 +02:00
1 parent f4ba325911
commit 5f57c08154
2 files changed
+2 -3

No files matched your search

+1 -1
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);
+1 -2
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);