1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

revert: back to 0.5% monthly monster chance

This commit is contained in:
Mircea TheHonestCTO
2025-08-15 16:15:16 +02:00
parent 39bd4a2d20
commit 8861b8745d

View File

@@ -3996,7 +3996,7 @@ void CGameHandler::spawnWanderingMonsters(CreatureID creatureID)
std::vector<int3>::iterator tile;
std::vector<int3> tiles;
gameState().getFreeTiles(tiles, true);
ui32 amount = tiles.size() / 100; //Chance is 1% for each tile. Higher than the original 0.5% because there are fewer with nearby unguarded
ui32 amount = tiles.size() / 200; //Chance is 0.5% for each tile
RandomGeneratorUtil::randomShuffle(tiles, getRandomGenerator());
logGlobal->trace("Spawning wandering monsters. Found %d free tiles. Creature type: %d", tiles.size(), creatureID.num);