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:
2024-01-09 04:50:01 -06:00
parent bcc71601b6
commit 57f482016f
37 changed files with 177 additions and 120 deletions
+1 -2
View File
@@ -45,7 +45,6 @@ All rights reserved.
INCLUDE_MONSTER_LIST
INCLUDE_game
INCLUDE_LEVEL_NAMES
void State_GameRun::OnStateChange(GameState*prevState){
if(Menu::IsMenuOpen()){
@@ -71,7 +70,7 @@ void State_GameRun::OnStateChange(GameState*prevState){
}
#pragma endregion
game->LoadLevel(LEVEL_NAMES.at(State_OverworldMap::GetCurrentConnectionPoint().map));
game->LoadLevel(State_OverworldMap::GetCurrentConnectionPoint().map);
}
void State_GameRun::OnUserUpdate(AiL*game){
game->bossDisplayTimer=std::max(0.f,game->bossDisplayTimer-game->GetElapsedTime());