From b1cdc78a8761fcb7b05a39d8c81151084954725e Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Sun, 28 Jan 2024 19:46:19 -0600 Subject: [PATCH] Boss region map check. --- Adventures in Lestoria/AdventuresInLestoria.cpp | 4 ++++ Adventures in Lestoria/Version.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Adventures in Lestoria/AdventuresInLestoria.cpp b/Adventures in Lestoria/AdventuresInLestoria.cpp index a9af986d..52d9471c 100644 --- a/Adventures in Lestoria/AdventuresInLestoria.cpp +++ b/Adventures in Lestoria/AdventuresInLestoria.cpp @@ -2355,6 +2355,10 @@ void AiL::InitializeLevels(){ } if(MAP_DATA.find(cp.map)!=MAP_DATA.end()){ MAP_DATA[cp.map].name=cp.name; + + //Boss arena map zone check. + if(MAP_DATA[cp.map].GetMapType()=="Boss"&&MAP_DATA[cp.map].GetZones().at("BossArena").size()==0)ERR(std::format("WARNING! Map {} doesn't have a boss arena region defined! Add an object of class BossArena to the map.",MAP_DATA[cp.map].GetMapDisplayName())); + for(std::string spawn:MAP_DATA[cp.map].spawns){ cp.spawns.push_back(spawn); } diff --git a/Adventures in Lestoria/Version.h b/Adventures in Lestoria/Version.h index d7812d26..99ed463d 100644 --- a/Adventures in Lestoria/Version.h +++ b/Adventures in Lestoria/Version.h @@ -39,7 +39,7 @@ All rights reserved. #define VERSION_MAJOR 0 #define VERSION_MINOR 3 #define VERSION_PATCH 0 -#define VERSION_BUILD 6503 +#define VERSION_BUILD 6507 #define stringify(a) stringify_(a) #define stringify_(a) #a