Added BrachTileBoost system
Added the new coilhead behaviour to the knight Added treasure room puzzle for bedroom Changed many LogInfo into LogDebug Removed jank animator override stuff (no offense) Changed how treasure rooms lock their doors to work in multiplayer Removed basement scripts
This commit is contained in:
parent
e9152782aa
commit
523e7ed898
48 changed files with 679 additions and 172 deletions
|
@ -60,7 +60,6 @@ namespace ScarletMansion.GamePatch.Components
|
|||
}
|
||||
|
||||
if (comp.CheckConditionsForSinkingInQuicksand()){
|
||||
Debug.Log("Set local player to sinking");
|
||||
sinkingLocalPlayer = true;
|
||||
comp.sourcesCausingSinking++;
|
||||
comp.isMovementHindered++;
|
||||
|
@ -76,28 +75,28 @@ namespace ScarletMansion.GamePatch.Components
|
|||
|
||||
public void OnExit(Collider other){
|
||||
if (!sinkingLocalPlayer) {
|
||||
Debug.Log("Yukari is not sinking local player");
|
||||
Plugin.logger.LogDebug("Yukari is not sinking local player");
|
||||
return;
|
||||
}
|
||||
|
||||
Debug.Log("Yukari is sinking something");
|
||||
Plugin.logger.LogDebug("Yukari is sinking something");
|
||||
var otherGameObject = other.gameObject;
|
||||
if (!otherGameObject.CompareTag("Player")){
|
||||
return;
|
||||
}
|
||||
|
||||
Debug.Log("Yukari is sinking a player");
|
||||
Plugin.logger.LogDebug("Yukari is sinking a player");
|
||||
var comp = otherGameObject.GetComponent<PlayerControllerB>();
|
||||
if (comp != GameNetworkManager.Instance.localPlayerController) return;
|
||||
|
||||
Debug.Log("Yukari is sinking local player");
|
||||
Plugin.logger.LogDebug("Yukari is sinking local player");
|
||||
StopSinkingLocalPlayer(comp);
|
||||
}
|
||||
|
||||
private void StopSinkingLocalPlayer(PlayerControllerB player) {
|
||||
if (!sinkingLocalPlayer) return;
|
||||
|
||||
Plugin.logger.LogInfo("Stopping");
|
||||
Plugin.logger.LogDebug("Stopping");
|
||||
|
||||
sinkingLocalPlayer = false;
|
||||
player.sourcesCausingSinking = Mathf.Clamp(player.sourcesCausingSinking - 1, 0, 100);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue