@@ -264,11 +264,11 @@ |
||
264 | 264 | * fonction qui gere le calcul pour retirer de setUpdateRessource |
265 | 265 | */ |
266 | 266 | private function getCalcRetirerRessource($eau, $electricite, $fer, $fuel, $nourriture) { |
267 | - $eau = $this->eau - $eau; |
|
268 | - $electricite = $this->electricite - $electricite; |
|
269 | - $fer = $this->fer - $fer; |
|
270 | - $fuel = $this->fuel - $fuel; |
|
271 | - $nourriture = $this->nourriture - $nourriture; |
|
267 | + $eau = $this->eau-$eau; |
|
268 | + $electricite = $this->electricite-$electricite; |
|
269 | + $fer = $this->fer-$fer; |
|
270 | + $fuel = $this->fuel-$fuel; |
|
271 | + $nourriture = $this->nourriture-$nourriture; |
|
272 | 272 | |
273 | 273 | if ($eau < 0) $eau = 0; |
274 | 274 | if ($electricite < 0) $electricite = 0; |