1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-23 18:07:41 +00:00

ru:: bats

This commit is contained in:
Zeno Rogue
2025-05-04 10:34:02 +02:00
parent 0096f5f12b
commit 24222a41a5
4 changed files with 62 additions and 0 deletions

View File

@@ -134,6 +134,12 @@ void load_room(fhstream& f, cell *c) {
b->respawn = b->where;
r.entities.emplace_back(std::move(b));
}
else if(cap == "BAT") {
auto b = std::make_unique<bat>();
sscanf(param.c_str(), "%lf%lf", &b->where.x, &b->where.y);
b->respawn = b->where;
r.entities.emplace_back(std::move(b));
}
else if(cap == "KESTREL") {
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);