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