Moved dungen code to DunGenPlus
Added critical damage as a mechanic Maid knife feed deals critical damage, then kills on second time Added concept of treasure room with kitchen Frames now only start at the player when not being looked New attempt at snowglobe animations, it broke though Added concept of indoor weathers LethalConfig compability now changes the color of configs that my presets touch Added jukebox Changed modGUID Removed AC compability Falling into void deals critical damage and teleports, then kills on second time Maid spawns revenant ghost on death
This commit is contained in:
parent
faa391c309
commit
056cac8df1
63 changed files with 976 additions and 2061 deletions
|
@ -0,0 +1,35 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
|
||||
namespace ScarletMansion.GamePatch.Weathers {
|
||||
public class SDMWeatherManager : MonoBehaviour {
|
||||
|
||||
[Header("Rainy")]
|
||||
public GameObject rainGameObject;
|
||||
public ParticleSystem rainParticleSystem;
|
||||
public AudioSource rainAudioSource;
|
||||
|
||||
// fix itself
|
||||
void Start() {
|
||||
var timeofDay = TimeOfDay.Instance;
|
||||
if (timeofDay == null) {
|
||||
Plugin.logger.LogError("How is TimeOfDay null?");
|
||||
return;
|
||||
}
|
||||
|
||||
var rainEffect = timeofDay.effects.FirstOrDefault(x => x.name == "rainy");
|
||||
var rainGameObject = rainEffect.effectObject;
|
||||
Utility.FixParticleSystemMaterialAndChildren(rainParticleSystem, rainGameObject.GetComponentInChildren<ParticleSystem>());
|
||||
rainAudioSource.clip = rainGameObject.GetComponentInChildren<AudioSource>().clip;
|
||||
rainAudioSource.Play();
|
||||
|
||||
Plugin.logger.LogInfo("Fixed Rainy weather references");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue