private static void Prefix(Fire __instance) { if (!GameManager.m_IsPaused && Settings.options.embersSystem) { FireAddons.CalculateEmbers(__instance); } }
private static void Prefix(FuelSourceItem tinder, ref float percentChanceSuccess) { if (Settings.options.tinderMatters && tinder) { percentChanceSuccess += FireAddons.GetModifiedFireStartSkillModifier(tinder); percentChanceSuccess = Mathf.Clamp(percentChanceSuccess, 0f, 100f); } }
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") + "%"; } } }
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; } } } } }
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); } } } } }
private static void Postfix(Panel_FeedFire __instance) { FireAddons.FeedFire(__instance); }
private static void Postfix() { FireAddons.Blueprints(); }
public static void Postfix(SaveSlotType gameMode, string name) { FireAddons.SaveData(gameMode, name); }
internal static void Postfix(string name) { FireAddons.LoadData(name); }
private static void Postfix(GearItem __instance) { FireAddons.ModifyFirestarters(__instance); }