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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user