static bool Player_CreateTombstone_PrefixPatch(out Inventory __state, ref Player __instance) { __state = default; if (Settings.KeepInventory.Enabled.Value) { Inventory savedInventory = new Inventory("SavedInventory", null, __instance.m_inventory.m_width, __instance.m_inventory.m_height); KeepInventory.Handle(ref __instance.m_inventory, ref savedInventory); __state = savedInventory; } if (Settings.Grave.Enabled.Value) { Grave.Handle(ref __instance); return(false); } return(true); }
public static void Init(ConfigFile config) { KeepInventory.Init(config); Grave.Init(config); }