Added error handling for when creatures are specified in spawn zones but do not have a corresponding image. Gracefully handle random extra zones that are accidentally added with no type specified. Add in foresty boss/overworld sample themes. Add in placeholder frog info. Refactor MapName to just use strings instead of an enum since we don't want manual upkeep.
This commit is contained in:
@@ -54,13 +54,13 @@ void Test::is(std::string conditionStr,bool testResult){
|
||||
|
||||
void Test::RunMapTests(){
|
||||
is("There are two LowerBridgeCollision zones in Campaign I-I",
|
||||
game->MAP_DATA.at(CAMPAIGN_1_1).ZoneData.count("LowerBridgeCollision")
|
||||
&&game->MAP_DATA.at(CAMPAIGN_1_1).ZoneData.at("LowerBridgeCollision").size()>=2);
|
||||
game->MAP_DATA.at("CAMPAIGN_1_1").ZoneData.count("LowerBridgeCollision")
|
||||
&&game->MAP_DATA.at("CAMPAIGN_1_1").ZoneData.at("LowerBridgeCollision").size()>=2);
|
||||
for(auto&[key,value]:game->MAP_DATA){
|
||||
is("A Map type has been selected for map "+std::to_string(key),
|
||||
is("A Map type has been selected for map "+key,
|
||||
value.mapType!=""&&value.mapType!="Unspecified");
|
||||
if(value.mapType=="Dungeon"){
|
||||
is("There is an EndZone in Dungeon "+std::to_string(key),
|
||||
is("There is an EndZone in Dungeon "+key,
|
||||
value.ZoneData.count("EndZone"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user