Skip to content

Commit

Permalink
Free at last from the insanity
Browse files Browse the repository at this point in the history
  • Loading branch information
RepeatGitHub committed May 22, 2024
1 parent 5326ed3 commit b4c24b9
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Source/VinkiModModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ public override void Load() {
Everest.Events.Level.OnTransitionTo += triggerVinkiGUI1;
Everest.Events.Level.OnEnter += triggerVinkiGUI2;
On.Celeste.Player.Update += vinkiButtonPress;
Everest.Events.LevelLoader.OnLoadingThread += vinkiRenderer;
Everest.Events.Level.OnLoadLevel += vinkiDecalier;//brokemia saves the day by telling me to use onloadlevel instead of onloadingthread
On.Celeste.IntroCar.Added += introCarScrewery;

Expand All @@ -101,7 +100,6 @@ public override void Unload() {
Everest.Events.Level.OnTransitionTo -= triggerVinkiGUI1;
Everest.Events.Level.OnEnter -= triggerVinkiGUI2;
On.Celeste.Player.Update -= vinkiButtonPress;
Everest.Events.LevelLoader.OnLoadingThread -= vinkiRenderer;
Everest.Events.Level.OnLoadLevel -= vinkiDecalier;
On.Celeste.IntroCar.Added -= introCarScrewery;

Expand Down Expand Up @@ -175,8 +173,8 @@ public static void vinkiButtonPress(On.Celeste.Player.orig_Update orig, Player s
// Then, the graffiti indicator is turned off.

}
// but here's the graffiti indicator
private static void vinkiRenderer(Level self) {
// but here's the DECAL CODE
private static void vinkiDecalier(Level self, Player.IntroTypes playerIntro, bool isFromLoader) {
if (isGraffitiUser()) {
// If Vinki's Skin is enabled, it adds these entities to the level first.
self.Add(new GraffitiIndicator());
Expand All @@ -185,9 +183,6 @@ private static void vinkiRenderer(Level self) {
self.Session.LevelData.Entities[2].Values["depth"]=2;
}
}
}
// but here's the DECAL CODE
private static void vinkiDecalier(Level self, Player.IntroTypes playerIntro, bool isFromLoader) {
if (Array.IndexOf(hasCustomDecals,self.Session.Area.SID+"_"+self.Session.Area.Mode.ToString())!=-1) {
// If the current level is within hasCustomDecals, it sets variable myLvl for convenience.
var myLvl=Array.IndexOf(hasCustomDecals,self.Session.Area.SID+"_"+self.Session.Area.Mode.ToString());
Expand Down

0 comments on commit b4c24b9

Please sign in to comment.