예제 #1
0
 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);
     }
 }
예제 #2
0
 private string getRelicStateName(RelicState arg)
 {
     return(arg.GetName());
 }