Loading a save file with an old connection point location will place the player at the starting conection point. Blue Slime Movespd: 80 -> 70. Release Build 7910.

pull/35/head
sigonasr2 9 months ago
parent 227d43bd77
commit 7ada663056
  1. 4
      Adventures in Lestoria/SaveFile.cpp
  2. 8
      Adventures in Lestoria/State_OverworldMap.cpp
  3. 1
      Adventures in Lestoria/State_OverworldMap.h
  4. 2
      Adventures in Lestoria/TODO.txt
  5. 2
      Adventures in Lestoria/Version.h
  6. 2
      Adventures in Lestoria/assets/config/Monsters.txt
  7. BIN
      x64/Release/Adventures in Lestoria.exe

@ -312,7 +312,9 @@ void SaveFile::LoadFile(){
else opt_cp.value()->SetVisited(); else opt_cp.value()->SetVisited();
} }
} }
State_OverworldMap::SetStageMarker(loadFile["Overworld Map Location"].GetString()); if(State_OverworldMap::HasStageMarker(loadFile["Overworld Map Location"].GetString())){
State_OverworldMap::SetStageMarker(loadFile["Overworld Map Location"].GetString());
}
State_OverworldMap::UpdateCurrentConnectionPoint(const_cast<ConnectionPoint&>(State_OverworldMap::GetCurrentConnectionPoint())); State_OverworldMap::UpdateCurrentConnectionPoint(const_cast<ConnectionPoint&>(State_OverworldMap::GetCurrentConnectionPoint()));
game->SetChapter(loadFile["Chapter"].GetInt()); game->SetChapter(loadFile["Chapter"].GetInt());
SaveFile::SetSaveFileName(loadFile["Save Name"].GetString()); SaveFile::SetSaveFileName(loadFile["Save Name"].GetString());

@ -212,6 +212,14 @@ void State_OverworldMap::Draw(AiL*game){
} }
}; };
void State_OverworldMap::DrawOverlay(AiL*game){} void State_OverworldMap::DrawOverlay(AiL*game){}
bool State_OverworldMap::HasStageMarker(std::string connectionName){
for(ConnectionPoint&connection:connections){
if(connection.name==connectionName){
return true;
}
}
return false;
}
void State_OverworldMap::SetStageMarker(std::string connectionName){ void State_OverworldMap::SetStageMarker(std::string connectionName){
for(ConnectionPoint&connection:connections){ for(ConnectionPoint&connection:connections){
if(connection.name==connectionName){ if(connection.name==connectionName){

@ -52,6 +52,7 @@ public:
State_OverworldMap(); State_OverworldMap();
static std::vector<ConnectionPoint>connections; static std::vector<ConnectionPoint>connections;
static ConnectionPoint&GetCurrentConnectionPoint(); static ConnectionPoint&GetCurrentConnectionPoint();
static bool HasStageMarker(std::string connectionName);
static void SetStageMarker(std::string connectionName); static void SetStageMarker(std::string connectionName);
static ConnectionPoint&ConnectionPointFromIndex(int ind); static ConnectionPoint&ConnectionPointFromIndex(int ind);
static std::optional<ConnectionPoint*>ConnectionPointFromString(std::string_view mapName); static std::optional<ConnectionPoint*>ConnectionPointFromString(std::string_view mapName);

@ -20,5 +20,3 @@ Funny text colors with text color override on blacksmith menu
Toggle for displaying error messages Toggle for displaying error messages
Level Up shows Health + and Atk + Indicators Level Up shows Health + and Atk + Indicators
Ranger Backdash range buff?

@ -39,7 +39,7 @@ All rights reserved.
#define VERSION_MAJOR 0 #define VERSION_MAJOR 0
#define VERSION_MINOR 4 #define VERSION_MINOR 4
#define VERSION_PATCH 4 #define VERSION_PATCH 4
#define VERSION_BUILD 7909 #define VERSION_BUILD 7910
#define stringify(a) stringify_(a) #define stringify(a) stringify_(a)
#define stringify_(a) #a #define stringify_(a) #a

@ -45,7 +45,7 @@ Monsters
CollisionDmg = 0 CollisionDmg = 0
MoveSpd = 80 MoveSpd = 70
Size = 100 Size = 100
XP = 6 XP = 6

Loading…
Cancel
Save