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

implemented the magic fountains (except ghosts and bones mechanics)

This commit is contained in:
Zeno Rogue
2025-05-05 18:56:13 +02:00
parent 1e23eed4e3
commit 2ae913ccfa
6 changed files with 96 additions and 18 deletions

View File

@@ -105,8 +105,9 @@ void load_room(fhstream& f, cell *c) {
string cap = s.substr(0, pos);
string param = s.substr(pos+1);
if(cap == "START") {
current_room = &r;
fountain_room = current_room = &r;
sscanf(param.c_str(), "%lf%lf", &m.where.x, &m.where.y);
fountain_where = m.where;
}
else if(cap == "ITEM") {
auto b = std::make_unique<item>();