mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
@@ -4242,7 +4242,7 @@ class Automation {
|
||||
}
|
||||
$crop = $database->getCropProdstarv($train['vref'], false);
|
||||
$unitarrays = $this->getAllUnits($train['vref'], false);
|
||||
$village = $database->getVillage($train['vref'], false);
|
||||
$village = $database->getVillage($train['vref'], 0, false);
|
||||
$upkeep = $village['pop'] + $this->getUpkeep($unitarrays, 0);
|
||||
$starv = $database->getVillageField($train['vref'],"starv");
|
||||
if ($crop < $upkeep){
|
||||
|
||||
Reference in New Issue
Block a user