|
@@ -38,7 +38,7 @@ discard block |
|
|
block discarded – undo |
|
38
|
38
|
* fonction qui renvoi la durée écoulée depuis le dernier check de la nourriture |
|
39
|
39
|
*/ |
|
40
|
40
|
private function getLastCheckNourriture() { |
|
41
|
|
- $dbc= App::getDb(); |
|
|
41
|
+ $dbc = App::getDb(); |
|
42
|
42
|
|
|
43
|
43
|
$query = $dbc->select("last_check_nourriture")->from("_bataille_base") |
|
44
|
44
|
->where("ID_identite", "=", Bataille::getIdIdentite(), "AND") |
|
@@ -119,7 +119,7 @@ discard block |
|
|
block discarded – undo |
|
119
|
119
|
$nourriture_base = Bataille::getRessource()->getNourriture(); |
|
120
|
120
|
$nourriture_consommee = ($nb_unite*$this->getConsommationNourritureUnite())*$nb_heure; |
|
121
|
121
|
|
|
122
|
|
- $nourriture_retirer = $nourriture_base - $nourriture_consommee; |
|
|
122
|
+ $nourriture_retirer = $nourriture_base-$nourriture_consommee; |
|
123
|
123
|
|
|
124
|
124
|
if ($nourriture_retirer < 0) { |
|
125
|
125
|
$unite_tuer = (abs(round($nourriture_retirer/100)))+1; |
Please login to merge, or discard this patch.