1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-18 15:37:40 +00:00

ru:: magic fountain respawns enemies and refills potions

This commit is contained in:
Zeno Rogue
2025-05-05 10:52:58 +02:00
parent 5a761c43c5
commit 129d3bbe89
7 changed files with 38 additions and 13 deletions

View File

@@ -144,13 +144,13 @@ void load_room(fhstream& f, cell *c) {
auto b = std::make_unique<kestrel>();
sscanf(param.c_str(), "%lf%lf%lf%lf", &b->where.x, &b->where.y, &b->vel.x, &b->vel.y);
b->vel *= xy(block_x, block_y) / game_fps;
b->respawn = b->where;
b->respawn = b->where; b->respawn_vel = b->vel;
r.entities.emplace_back(std::move(b));
}
else if(cap == "SNAKE") {
auto b = std::make_unique<snake>();
sscanf(param.c_str(), "%lf%lf%d", &b->where.x, &b->where.y, &b->dir);
b->respawn = b->where;
b->respawn = b->where; b->respawn_dir = b->dir;
r.entities.emplace_back(std::move(b));
}
else if(cap == "FERRIS") {