mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-25 22:52:49 +00:00
ru:: some fixes to extra life
This commit is contained in:
parent
37b450b29f
commit
22990d1883
@ -23,13 +23,13 @@ void check_fountains() {
|
||||
auto bb = pixel_to_block(m.get_pixel_bbox());
|
||||
for(int x = bb.minx; x < bb.maxx; x++) for(int y = bb.miny; y < bb.maxy; y++) {
|
||||
eWall b = current_room->at(x, y);
|
||||
println(hlog, tuple(x, y, int(b)));
|
||||
if(b == wFountain) next_on_fountain = true;
|
||||
}
|
||||
if(next_on_fountain && !on_fountain) {
|
||||
if(extra_life->flags & ACTIVE) {
|
||||
fountain_room = current_room;
|
||||
fountain_where = m.where;
|
||||
death_revert.clear();
|
||||
}
|
||||
addMessage("A magic fountain! You feel safe and refill your potions.");
|
||||
regenerate_all();
|
||||
|
@ -201,9 +201,9 @@ void gen_powers() {
|
||||
else if(!on_fountain)
|
||||
addMessage("For safety, you can only drink " + d.p->get_name() + " at the Magic Fountain.");
|
||||
else {
|
||||
d.p->flags = ACTIVE;
|
||||
fountain_room = current_room; fountain_where = m.where;
|
||||
addMessage("You drink the " + d.p->get_name() + " and you feel that nothing will stop you now!");
|
||||
d.p->flags |= ACTIVE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user