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

ru:: the first monster, the boar

This commit is contained in:
Zeno Rogue
2025-04-27 12:42:22 +02:00
parent 1fb931836a
commit 77759538ae
8 changed files with 80 additions and 16 deletions

View File

@@ -127,6 +127,11 @@ void load_room(fhstream& f, cell *c) {
b->text = scanline_noblank(f);
r.entities.emplace_back(std::move(b));
}
else if(cap == "BOAR") {
auto b = std::make_unique<boar>();
sscanf(param.c_str(), "%lf%lf", &b->where_x, &b->where_y);
r.entities.emplace_back(std::move(b));
}
else if(cap == "HINT") {
auto b = std::make_unique<hint>();
sscanf(param.c_str(), "%lf%lf%d%d", &b->where_x, &b->where_y, &b->width, &b->height);