diff --git a/cronjob/training.php b/cronjob/training.php index 972398c..d64ba34 100644 --- a/cronjob/training.php +++ b/cronjob/training.php @@ -68,6 +68,8 @@ if ($i == 11) { // Erstmal Arena (auch wenns nix mit Training zu tun hat) // select round(einnahmen*0.5/(1+EXP(2-einnahmen/100000))) from arena where einnahmen > 10000 + db_query('Update user_clan SET spende_yesterday = spende_today, spende_today = 0'); + // Kann erstmal bleiben! db_query('Update arena set zustand = zustand - 1/4 where mietlasten >= 2 and einnahmen > 0'); db_query('Update arena set zustand = 0 where zustand < 0'); // No negatives any more