private void OnKeyRegisterUsed(On.Celeste.Key.orig_RegisterUsed orig, Celeste.Key self) { orig(self); if (Settings.Enabled) { ApplyRules(self.Scene, "UseKey"); } }
private void OnKeyOnPlayer(On.Celeste.Key.orig_OnPlayer orig, Celeste.Key self, Celeste.Player player) { orig(self, player); if (Settings.Enabled) { ApplyRules(self.Scene, "CollectKey"); } }