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

ru:: time orbs

This commit is contained in:
Zeno Rogue
2025-05-17 00:50:51 +02:00
parent 65f0ce2f0e
commit 067066df40
5 changed files with 98 additions and 5 deletions

View File

@@ -180,6 +180,13 @@ void load_room(fhstream& f, cell *c) {
b->respawn = b->where; b->postfix();
r.entities.emplace_back(std::move(b));
}
else if(cap == "TIMEORB") {
auto b = std::make_unique<timed_orb>();
ld dur = 0;
sscanf(param.c_str(), "%lf%lf%lf", &b->where.x, &b->where.y, &dur);
b->duration = dur * game_fps;
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);