mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
fixed the lack of bound on lives in the shmup mode
This commit is contained in:
parent
af08d169d8
commit
dabd7889e8
2
game.cpp
2
game.cpp
@ -6815,7 +6815,7 @@ EX bool cantGetGrimoire(cell *c2, bool verbose IS(true)) {
|
||||
|
||||
EX void gainLife() {
|
||||
items[itOrbLife] ++;
|
||||
if(items[itOrbLife] > 5 && !shmup::on) items[itOrbLife] = 5;
|
||||
if(items[itOrbLife] > 5 && !inv::on) items[itOrbLife] = 5;
|
||||
}
|
||||
|
||||
EX void collectMessage(cell *c2, eItem which) {
|
||||
|
Loading…
Reference in New Issue
Block a user