Updated for new DunGenPlus version
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
This commit is contained in:
parent
719e4380c1
commit
de24bf4173
16 changed files with 380 additions and 132 deletions
29
ScarletMansion/ScarletMansion/GamePatch/ScarletFakeSun.cs
Normal file
29
ScarletMansion/ScarletMansion/GamePatch/ScarletFakeSun.cs
Normal file
|
@ -0,0 +1,29 @@
|
|||
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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue