Fixed anger lighting to be less red Added fake sun lighting Added weather effects to dungeon if moon has certain weathers Doors should work for new enemies. Enemies now open doors normally in their default behaviour Added compability used for Seichi
29 lines
626 B
C#
29 lines
626 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using UnityEngine;
|
|
|
|
namespace ScarletMansion.GamePatch {
|
|
public class ScarletFakeSun : MonoBehaviour {
|
|
|
|
public Light light;
|
|
public AnimationCurve curve;
|
|
|
|
private float intensityInitial;
|
|
|
|
void Awake(){
|
|
intensityInitial = light.intensity;
|
|
}
|
|
|
|
void Update(){
|
|
var timeOfDay = TimeOfDay.Instance;
|
|
if (timeOfDay == null) return;
|
|
|
|
var timeRatio = timeOfDay.normalizedTimeOfDay;
|
|
light.intensity = intensityInitial * curve.Evaluate(timeRatio);
|
|
}
|
|
|
|
}
|
|
}
|