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

ru:: deadly traps

This commit is contained in:
Zeno Rogue
2025-05-16 23:51:09 +02:00
parent 355d98f80d
commit 65f0ce2f0e
4 changed files with 118 additions and 11 deletions

View File

@@ -186,6 +186,15 @@ void load_room(fhstream& f, cell *c) {
b->respawn = b->where; b->postfix();
r.entities.emplace_back(std::move(b));
}
else if(cap == "VTRAP") {
auto b = std::make_unique<vtrap>();
sscanf(param.c_str(), "%lf%lf", &b->where.x, &b->where.y);
auto dat = b->get_dat();
b->vel.x = 0; b->vel.y = 150 * 0.005 * dat.modv * dat.d;
b->postfix();
r.entities.emplace_back(std::move(b));
}
else if(cap == "GRIDBUG") {
auto b = std::make_unique<gridbug>();
sscanf(param.c_str(), "%lf%lf", &b->where.x, &b->where.y);