Remove magic number IDs from Monsters and use display names as the key names. Fixed all references to numerical IDs in code. Refreshed all game maps so the monster name enums export as name strings instead of numbers.

This commit is contained in:
2023-12-19 00:15:47 -06:00
parent 455dd3a818
commit fcb3ee87fd
22 changed files with 191 additions and 205 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ void Monster::STRATEGY::RUN_TOWARDS(Monster&m,float fElapsedTime,std::string str
m.PerformJumpAnimation();
} else {
m.SetState(State::NORMAL);//Revert state once we've finished moving towards target.
m.UpdateAnimation(MONSTER_DATA[m.id].GetIdleAnimation());
m.UpdateAnimation(MONSTER_DATA[m.name].GetIdleAnimation());
}
}break;
case State::PATH_AROUND:{