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