Пример #1
0
    public static void RestoreEnergyByIdle()
    {
        PlayerSave.ActiveSave.energy.Value += (int)((DateTime.Now - PP.GetDateTime(PPKeys.LAST_ENERGY_RELOADING_TIME)).TotalSeconds / ENERGY_RELOADING_TIME);
        PlayerSave.Save();

        PP.SetDateTime(PPKeys.LAST_ENERGY_RELOADING_TIME, DateTime.Now);
    }