Fix bug where the player would craft up to N^2 requested consumable items instead of the amount requested. Made Sound Effect for crafting a consumable play only once, instead of layer per quantity of item crafted. Added crafting sound effect to equipment that is crafted. Fix enhancement [+] display not updating on blacksmith enhancing window (visual bug), only show "MAX" on stats when the gear is at +10. Clear any scattered/remaining item drops after completing a stage. Fix menus crashing when enhanced gear reach +10 (array overflow). Added a Stay here button for Sherman.

This commit is contained in:
2024-01-30 22:31:49 -06:00
parent 0aea7beb83
commit fc7e135aa4
11 changed files with 28 additions and 17 deletions
+5 -1
View File
@@ -41,7 +41,7 @@ All rights reserved.
#include "GameState.h"
void Menu::InitializeShermanWindow(){
Menu*shermanWindow=CreateMenu(SHERMAN,CENTERED,vi2d{144,60});
Menu*shermanWindow=CreateMenu(SHERMAN,CENTERED,vi2d{144,88});
shermanWindow->ADD("Leave Button",MenuComponent)(geom2d::rect<float>{{0.f,4.f},{144.f,24.f}},"Leave",MenuType::ENUM_END,[](MenuFuncData data){
GameState::ChangeState(States::OVERWORLD_MAP,0.3f);
@@ -52,4 +52,8 @@ void Menu::InitializeShermanWindow(){
return true;
},vf2d{2.f,2.f},ButtonAttr::FIT_TO_LABEL)END
->SetGrayedOut(true);
shermanWindow->ADD("Stay Button",MenuComponent)(geom2d::rect<float>{{0.f,60.f},{144.f,24.f}},"Stay Here",MenuType::ENUM_END,[](MenuFuncData data){
Menu::CloseMenu();
return true;
},vf2d{2.f,2.f},ButtonAttr::FIT_TO_LABEL)END;
}