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:
parent
f4ba325911
commit
5f57c08154
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user