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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user