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.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user