1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-14 02:33:51 +02:00

Add only one template per object

This commit is contained in:
Tomasz Zieliński 2023-03-27 08:44:49 +02:00
parent a0de223901
commit a88e1dc1f6

View File

@ -74,6 +74,8 @@ void TreasurePlacer::addAllPossibleObjects()
oi.maxPerZone = rmgInfo.zoneLimit;
vstd::amin(oi.maxPerZone, rmgInfo.mapLimit / numZones); //simple, but should distribute objects evenly on large maps
possibleObjects.push_back(oi);
break; //Place only one template per zone
}
}
}