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
+3 -1
View File
@@ -69,7 +69,9 @@ void MonsterData::InitializeMonsterData(){
};
MonsterData::imgs[MonsterName]=NEW Renderable();
MonsterData::imgs[MonsterName]->Load("assets/monsters/"+MonsterName+".png");
const rcode imgLoadResult=MonsterData::imgs[MonsterName]->Load("assets/monsters/"+MonsterName+".png");
if(imgLoadResult!=OK)ERR(std::format("WARNING! Image loading for Monster {} failed with result {}",MonsterName,int(imgLoadResult)));
EventName hurtSound="";
EventName deathSound="";