public static void ResetStatus() { ModEntry.data.actual_hunger = ModEntry.data.max_hunger; ModEntry.data.actual_thirst = ModEntry.data.max_thirst; BarsUpdate.CalculatePercentage(); }
public static void NormalizeStatus() { if (ModEntry.data.actual_hunger < 0) { ModEntry.data.actual_hunger = 0; } if (ModEntry.data.actual_thirst < 0) { ModEntry.data.actual_thirst = 0; } if (ModEntry.data.actual_hunger > ModEntry.data.max_hunger) { ModEntry.data.actual_hunger = ModEntry.data.max_hunger; } if (ModEntry.data.actual_thirst > ModEntry.data.max_thirst) { ModEntry.data.actual_thirst = ModEntry.data.max_thirst; } BarsUpdate.CalculatePercentage(); }