Map names now stored based on stage plate names provided. Made unlock conditions based on their actual unlock conditions and not the names of the plates.
This commit is contained in:
+2
-5
@@ -34,10 +34,7 @@ SUCH DAMAGE.
|
||||
std::set<std::string>Unlock::unlocks;
|
||||
|
||||
void Unlock::Initialize(){
|
||||
UnlockArea("Stage I-I");
|
||||
UnlockArea("Shop I");
|
||||
UnlockArea("Blacksmith I");
|
||||
UnlockArea("Stage I-II");
|
||||
UnlockArea("WORLD_MAP");
|
||||
}
|
||||
|
||||
void Unlock::UnlockArea(std::string unlock){
|
||||
@@ -48,5 +45,5 @@ bool Unlock::IsUnlocked(std::string unlock){
|
||||
}
|
||||
|
||||
bool Unlock::IsUnlocked(ConnectionPoint&cp){
|
||||
return unlocks.count(cp.name);
|
||||
return unlocks.count(cp.unlockCondition);
|
||||
}
|
||||
Reference in New Issue
Block a user