Game saves when exiting to the main menu or quitting the game in general. Rings are now properly in the Accessories tab instead of the equipment tab. Fixed using == comparison instead of bitwise AND comparisons for accessory detection.

This commit is contained in:
2024-01-01 08:00:14 -06:00
parent ad1e2260cf
commit cf6185bb50
5 changed files with 10 additions and 5 deletions
+2
View File
@@ -40,6 +40,7 @@ All rights reserved.
#include "Crawler.h"
#include "CharacterRotatingDisplay.h"
#include "ClassInfo.h"
#include "SaveFile.h"
INCLUDE_game
INCLUDE_GFX
@@ -58,6 +59,7 @@ void Menu::InitializeOverworldMenuWindow(){
overworldMenuWindow->ADD("Settings Button",MenuComponent)({{4,12+28*3},{88,24}},"Settings",[](MenuFuncData data){/*Menu::OpenMenu(SETTINGS_MENU);*/return true;})END;
overworldMenuWindow->ADD("Quit Button",MenuComponent)({{4,12+28*4},{88,24}},"Quit Game",[](MenuFuncData data){
Menu::CloseAllMenus();
SaveFile::SaveGame();
game->ResetGame();
return true;
})END;