mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
Remove some unused code and some fix
Remove some unused code and some fix
This commit is contained in:
@@ -155,7 +155,7 @@ class Technology {
|
||||
array_push($listarray,$train);
|
||||
}
|
||||
if($type == 8 && in_array($train['unit'],$trapper)) {
|
||||
$train['name'] = $this->unarray[$train['unit']];
|
||||
$train['name'] = $this->unarray[$train['unit']]?? 'Trap';
|
||||
array_push($listarray,$train);
|
||||
}
|
||||
}
|
||||
@@ -512,7 +512,7 @@ class Technology {
|
||||
if($this->maxUnit($unit, $great) < $amt) $amt = 0;
|
||||
}else{
|
||||
$trainlist = $this->getTrainingList(8);
|
||||
|
||||
$train_amt = 0;
|
||||
foreach($trainlist as $train) $train_amt += $train['amt'];
|
||||
|
||||
$max = 0;
|
||||
|
||||
Reference in New Issue
Block a user