示例#1
0
 private static void Prefix(Fire __instance)
 {
     if (!GameManager.m_IsPaused && Settings.options.embersSystem)
     {
         FireAddons.CalculateEmbers(__instance);
     }
 }
示例#2
0
 private static void Prefix(FuelSourceItem tinder, ref float percentChanceSuccess)
 {
     if (Settings.options.tinderMatters && tinder)
     {
         percentChanceSuccess += FireAddons.GetModifiedFireStartSkillModifier(tinder);
         percentChanceSuccess  = Mathf.Clamp(percentChanceSuccess, 0f, 100f);
     }
 }
示例#3
0
 private static void Postfix(Panel_FireStart __instance)
 {
     if (Settings.options.tinderMatters)
     {
         __instance.m_FireManager = GameManager.GetFireManagerComponent();
         FuelSourceItem tinder = __instance.GetSelectedTinder();
         if (tinder)
         {
             float num = float.Parse(__instance.m_Label_ChanceSuccess.text.Replace("%", ""));
             num += FireAddons.GetModifiedFireStartSkillModifier(tinder);
             num  = Mathf.Clamp(num, 0f, 100f);
             __instance.m_Label_ChanceSuccess.text = num.ToString("F0") + "%";
         }
     }
 }
示例#4
0
            private static void Postfix(Panel_FeedFire __instance)
            {
                Inventory inventoryComponent = GameManager.GetInventoryComponent();

                foreach (GearItemObject item in inventoryComponent.m_Items)
                {
                    GearItem gearItem = item;
                    if ((bool)gearItem)
                    {
                        FuelSourceItem fuelSourceItem = gearItem.m_FuelSourceItem;
                        if ((bool)fuelSourceItem)
                        {
                            if (FireAddons.IsNamedTinder(gearItem))
                            {
                                gearItem.m_FuelSourceItem.m_IsTinder = true;
                            }
                        }
                    }
                }
            }
示例#5
0
            private static void Prefix(Panel_FeedFire __instance)
            {
                Inventory inventoryComponent = GameManager.GetInventoryComponent();

                foreach (GearItemObject item in inventoryComponent.m_Items)
                {
                    GearItem gearItem = item;
                    if ((bool)gearItem)
                    {
                        FuelSourceItem fuelSourceItem = gearItem.m_FuelSourceItem;
                        if ((bool)fuelSourceItem)
                        {
                            if (Settings.options.embersSystem && (gearItem.name.ToLower().Contains("recycledcan") || gearItem.name.ToLower().Contains("cookingpot")))
                            {
                                FireAddons.ModifyWater(gearItem, false);
                            }
                        }
                    }
                }
            }
示例#6
0
 private static void Postfix(Panel_FeedFire __instance)
 {
     FireAddons.FeedFire(__instance);
 }
示例#7
0
 private static void Postfix()
 {
     FireAddons.Blueprints();
 }
示例#8
0
 public static void Postfix(SaveSlotType gameMode, string name)
 {
     FireAddons.SaveData(gameMode, name);
 }
示例#9
0
 internal static void Postfix(string name)
 {
     FireAddons.LoadData(name);
 }
示例#10
0
 private static void Postfix(GearItem __instance)
 {
     FireAddons.ModifyFirestarters(__instance);
 }