Implement unit tests for the project. Fix Display Name bug (found in InternalNameCheck unit test). Add Monster Unit Tests.

This commit is contained in:
2024-06-22 09:45:59 -05:00
parent abb18767d4
commit dcea90fedb
23 changed files with 1352 additions and 14 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ void SoundEffect::Initialize(){
}
void SoundEffect::PlaySFX(const std::string_view eventName,const vf2d&pos){
if(eventName.length()==0)return;
if(game->TestingModeEnabled()||eventName.length()==0)return;
const SoundEffect&sfx=GetRandomSFXFromFile(eventName);
if(GameState::STATE==GameState::states[States::MAIN_MENU]&&sfx.combatSound)return; //Do not play combat sounds on the main menu.