Remove some unused code and some fix

Remove some unused code and some fix
This commit is contained in:
novgorodschi catalin
2026-05-21 13:12:21 +03:00
parent 878ecec687
commit 05bfde9063
22 changed files with 256 additions and 901 deletions
+2 -2
View File
@@ -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;