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

ru:: better power structure, gold to picup

This commit is contained in:
Zeno Rogue
2025-05-02 01:11:56 +02:00
parent 2ee3d11458
commit b290eff382
4 changed files with 144 additions and 89 deletions

View File

@@ -110,7 +110,8 @@ void load_room(fhstream& f, cell *c) {
}
else if(cap == "ITEM") {
auto b = std::make_unique<item>();
sscanf(param.c_str(), "%lf%lf", &b->where_x, &b->where_y);
b->qty = 1;
sscanf(param.c_str(), "%lf%lf%d", &b->where_x, &b->where_y, &b->qty);
s = scanline_noblank(f);
b->id = -1;
for(int i=0; i<isize(powers); i++) if(powers[i].name == s) b->id = i;