Skip to content

Commit

Permalink
Fix City entrance door opening not syncing
Browse files Browse the repository at this point in the history
  • Loading branch information
Extremelyd1 committed Jul 25, 2024
1 parent 0ac08b5 commit 6ed94bb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions HKMP/Game/Client/Save/SaveChanges.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,13 @@ public void ApplyPlayerDataSaveChange(string name) {
var fsm = go.LocateMyFSM("FSM");
fsm.SetState("Destroy");
}

if (name == "openedCityGate" && currentScene == "Fungus2_21") {
var go = GameObject.Find("City Gate Control");
var fsm = go.LocateMyFSM("Conversation Control");

fsm.SetState("Activate");
}
}

/// <summary>
Expand Down
3 changes: 2 additions & 1 deletion HKMP/Resource/save-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -4923,7 +4923,8 @@
},
"openedCityGate": {
"Sync": true,
"SyncType": "Server"
"SyncType": "Server",
"IgnoreSceneHost": true
},
"cityGateClosed": {
"Sync": true,
Expand Down

0 comments on commit 6ed94bb

Please sign in to comment.