Skip to content

Commit 07d6c4a

Browse files
committed
Use new Everest photosensitivity options
1 parent 9e77ed0 commit 07d6c4a

2 files changed

Lines changed: 4 additions & 10 deletions

File tree

Code/Entities/NightItemLocker.cs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//using System.Reflection;
2+
using Celeste.Mod.Core;
23
using Celeste.Mod.Entities;
34
using Celeste.Mod.Helpers;
45
using Microsoft.Xna.Framework;
@@ -9,13 +10,8 @@
910
using System.Collections.Generic;
1011
using System.Linq;
1112

12-
13-
1413
namespace Celeste.Mod.CherryHelper
15-
{
16-
17-
18-
14+
{
1915
[CustomEntity("CherryHelper/NightItemLockfield")]
2016
[Tracked(true)]
2117
public class EntityToggleField : Entity
@@ -36,8 +32,6 @@ public EntityToggleField(Vector2 position, int width, int height)
3632
: base(position)
3733
{
3834
base.Collider = new Hitbox(width, height);
39-
40-
4135
}
4236

4337
public EntityToggleField(EntityData data, Vector2 offset)
@@ -145,7 +139,7 @@ public void HandleVfx()
145139
Level level = SceneAs<Level>();
146140
if (!firstTime && can)
147141
{
148-
if (!Settings.Instance.DisableFlashes)
142+
if (CoreModule.Settings.AllowGlitch)
149143
{
150144
Add(new Coroutine(FlickerBlackhole()));
151145
}

everest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
DLL: Code/bin/CherryHelper.dll
44
Dependencies:
55
- Name: EverestCore
6-
Version: 1.4465.0
6+
Version: 1.5184.0

0 commit comments

Comments
 (0)