Added new treasure room spawn (servant's quarters)
Fixed treasure room event for bedroom Fixed painting's interaction with MattyFixes Fixed critical damage bug introduced by v62 Increased lights spawn for all presets by a lot Added Coroner compatibility Added Scarlet Devil Mansion (moon) to the interior's spawn list Lights now have a chance of flickering and dying
This commit is contained in:
parent
93e249d838
commit
4413d12ea3
42 changed files with 986 additions and 333 deletions
|
@ -1,4 +1,6 @@
|
|||
using System;
|
||||
using ScarletMansion.GamePatch.Components.TreasureRoom;
|
||||
using ScarletMansion.GamePatch.Managers;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
@ -9,6 +11,8 @@ using UnityEngine;
|
|||
namespace ScarletMansion.GamePatch.Components {
|
||||
public class ScarletRadio : NetworkBehaviour{
|
||||
|
||||
public TreasureRoomRadioEvent treasureRoomEvent;
|
||||
|
||||
[Header("Networked Values")]
|
||||
public int volume;
|
||||
public bool playing;
|
||||
|
@ -83,6 +87,7 @@ namespace ScarletMansion.GamePatch.Components {
|
|||
[ServerRpc(RequireOwnership = false)]
|
||||
public void ToggleOnOffSwitchServerRpc(){
|
||||
ToggleOnOffSwitchClientRpc(!playing);
|
||||
treasureRoomEvent?.UpdateTreasureDoorStatus();
|
||||
}
|
||||
|
||||
[ClientRpc]
|
||||
|
@ -96,6 +101,7 @@ namespace ScarletMansion.GamePatch.Components {
|
|||
[ServerRpc(RequireOwnership = false)]
|
||||
public void ToggleVolumeSwitchServerRpc(int count){
|
||||
ToggleVolumeSwitchClientRpc(Mathf.Clamp(volume + count, 0, 10));
|
||||
treasureRoomEvent?.UpdateTreasureDoorStatus();
|
||||
}
|
||||
|
||||
[ClientRpc]
|
||||
|
@ -107,6 +113,7 @@ namespace ScarletMansion.GamePatch.Components {
|
|||
[ServerRpc(RequireOwnership = false)]
|
||||
public void ToggleSongSwitchServerRpc(){
|
||||
ToggleSongSwitchClientRpc((audioIndex + 1) % audioClips.Length);
|
||||
treasureRoomEvent?.UpdateTreasureDoorStatus();
|
||||
}
|
||||
|
||||
[ClientRpc]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue