mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Generated zones can now have different sizes depending on template.
This commit is contained in:
parent
1d8fb01f46
commit
7d7b51d0db
@ -26,6 +26,7 @@ ADVETURE AI:
|
||||
RANDOM MAP GENERATOR:
|
||||
* Changed fractalization algorithm so it can create cycles
|
||||
* Zones will not have straight paths anymore, they are totally random
|
||||
* Generated zones will have different size depending on template setting
|
||||
* Added Thieves Guild random object (1 per zone)
|
||||
* Added Seer Huts with quests that match OH3
|
||||
* RMG will guarantee at least 100 pairs of Monoliths are available even if there are not enough different defs
|
||||
|
@ -436,7 +436,8 @@ void CZonePlacer::assignZones(const CMapGenOptions * mapGenOptions)
|
||||
|
||||
auto compareByDistance = [](const Dpair & lhs, const Dpair & rhs) -> bool
|
||||
{
|
||||
return lhs.second < rhs.second;
|
||||
//bigger zones have smaller distance
|
||||
return lhs.second / lhs.first->getSize() < rhs.second / rhs.first->getSize();
|
||||
};
|
||||
|
||||
auto moveZoneToCenterOfMass = [](CRmgTemplateZone * zone) -> void
|
||||
|
Loading…
x
Reference in New Issue
Block a user