diff --git a/Adventures in Lestoria/AdventuresInLestoria.cpp b/Adventures in Lestoria/AdventuresInLestoria.cpp index 7dd94e65..0523ac96 100644 --- a/Adventures in Lestoria/AdventuresInLestoria.cpp +++ b/Adventures in Lestoria/AdventuresInLestoria.cpp @@ -2322,43 +2322,6 @@ void AiL::InitializeLevels(){ backdrop.Load("backdrop_directory"_S+DATA["Backdrops"][key].GetString(),nullptr,false,false); } - if("display_spawn_report"_I){ - for(auto&[map,data]:MAP_DATA){ - std::mapmonsterCounts; - for(auto&[key,value]:MAP_DATA[map].SpawnerData){ - SpawnerTag&spawnData=MAP_DATA[map].SpawnerData[key]; - - vf2d spawnerRadius=vf2d{spawnData.ObjectData.GetFloat("width"),spawnData.ObjectData.GetFloat("height")}/2; - for(XMLTag&monster:spawnData.monsters){ - std::string monsterName=monster.GetString("value"); - monsterCounts[monsterName]++; - } - } - std::cout<<"Spawns Report for "<totalDrops; - std::cout<<"Monte Carlo Test: 1 million tries:"<Name()<<" x"<<(count/1000000l); - } - } - } - Test::RunMapTests(); } @@ -2644,6 +2607,46 @@ void AiL::ValidateGameStatus(){ if(EnvironmentalAudio::SOUND_DATA.find(audio.audioName)==EnvironmentalAudio::SOUND_DATA.end())ERR(std::format("WARNING! Could not find environmental audio data {} for Map {}. Check audio/environmentalaudio.txt configuration!",audio.audioName,map.name)); } } + + #pragma region Map Spawn Statistics + if("display_spawn_report"_I){ + for(auto&[map,data]:MAP_DATA){ + std::mapmonsterCounts; + for(auto&[key,value]:MAP_DATA[map].SpawnerData){ + SpawnerTag&spawnData=MAP_DATA[map].SpawnerData[key]; + + vf2d spawnerRadius=vf2d{spawnData.ObjectData.GetFloat("width"),spawnData.ObjectData.GetFloat("height")}/2; + for(XMLTag&monster:spawnData.monsters){ + std::string monsterName=monster.GetString("value"); + monsterCounts[monsterName]++; + } + } + std::cout<<"Spawns Report for "<totalDrops; + std::cout<<"Monte Carlo Test: 100000 tries:"<Name()<<" x"<