Fix crash when a removed map unlock condition is loaded from a save file and saving to a save file. Move world rendering into each individual state draw method to prevent dividing by zero for invalid maps being loaded in. Loaded up new Overworld song. Added extra flower indicator under the bridge of 1-1. Fix 1-5 tree tiles. Make current map name / level name functinos return the proper story level name if we are in a story level to avoid programmer confusion / provide more flexible functions. Both Blacksmith story and chapter 1 bonus boss remove the visited flag from the camp, notifying the player visually on the world map that they need to revisit it. Move Blacksmith Tutorial trigger from requiring you to visit the camp via the world map to when you enter the camp regardless if you did it from completing a level or doing it from the world map. Release Build 8187.

This commit is contained in:
2024-03-20 00:33:30 -05:00
parent b6e6cb58b1
commit f8e7144a02
29 changed files with 136 additions and 104 deletions
+3
View File
@@ -37,6 +37,7 @@ All rights reserved.
#pragma endregion
#include "Unlock.h"
#include "State_OverworldMap.h"
#include "config.h"
std::set<std::string>Unlock::unlocks;
@@ -45,6 +46,8 @@ void Unlock::Initialize(){
}
void Unlock::UnlockArea(std::string mapName){
if(mapName=="NPCs.Sherman.Potion Crafting Unlock Condition"_S&& //When we beat the bonus chapter 1 fight, before sherman's potion crafting is unlocked, if the current map we just unlocked for is the bonus boss stage we will notify the Hub connection point and reset it so the player has a notification to go there again.
!Unlock::IsUnlocked("NPCs.Sherman.Potion Crafting Unlock Condition"_S))State_OverworldMap::ConnectionPointFromString("HUB").value()->ResetVisitedFlag();
unlocks.insert(mapName);
}
bool Unlock::IsUnlocked(std::string mapName){