Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public static void Init(ConfigFile config)
 {
     KeepInventory.Init(config);
     Grave.Init(config);
 }