private static void Postfix(StatusBar __instance) { if (__instance.m_StatusBarType != StatusBar.StatusBarType.Hunger) { return; } float fillValue = __instance.GetFillValue(); double storedCalories = HungerRevamped.Instance.storedCalories; // Transferring calories out of calorie store Utils.SetActive(__instance.m_DebuffObject, fillValue < Tuning.hungerLevelMalnourished && storedCalories > 0); // Transferring calories into calorie store Utils.SetActive(__instance.m_BuffObject, fillValue > Tuning.hungerLevelWellFed && storedCalories < Tuning.maximumStoredCalories); // Starving hunger bar colors if (fillValue < Tuning.hungerLevelStarving) { __instance.m_OuterBoxSprite.color = GameManager.GetInterfaceManager().m_StatusOuterBoxEmptyColor; Utils.SetActive(__instance.m_SpriteWhenEmpty.gameObject, true); __instance.SetActiveBacksplash(__instance.m_BacksplashDepleted); } }