mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-24 05:26:19 +00:00
chore: harden php8 compatibility, optimize installer/croppers, and refresh docs/admin ux
This commit is contained in:
@@ -1192,7 +1192,7 @@ class Automation {
|
||||
if($traps >= $totalTroops){
|
||||
for($i = 1; $i <= 11; $i++) ${'traped'.$i} = $data['t'.$i];
|
||||
}
|
||||
else
|
||||
else if($totalTroops > 0)
|
||||
{
|
||||
$multiplier = $traps / $totalTroops;
|
||||
|
||||
@@ -1213,6 +1213,9 @@ class Automation {
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
for($i = 1; $i <= 11; $i++) ${'traped'.$i} = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if(empty($scout) || $NatarCapital){
|
||||
|
||||
Reference in New Issue
Block a user