public void AttemptToRemoveSelectedRelic() { if (currentSave != null && selectedRelicState != null && selectedRelicStateGameobject.gameObject.activeSelf) { SaveData savedata = (SaveData)AccessTools.PropertyGetter(typeof(SaveManager), "ActiveSaveData").Invoke(currentSave, new object[] { }); Logger.Log(BepInEx.Logging.LogLevel.Info, "Removing Blessing " + selectedRelicState.GetName()); savedata.GetBlessings().Remove(selectedRelicState); RelicManager.RelicAdded.Dispatch(currentSave.GetCollectedRelics(), null, Team.Type.Monsters); } }
private string getRelicStateName(RelicState arg) { return(arg.GetName()); }