mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 16:44:24 +00:00
update
This commit is contained in:
@@ -212,7 +212,7 @@ class Technology {
|
||||
return $ownunit;
|
||||
}
|
||||
|
||||
function getAllUnits($base,$InVillageOnly=False) {
|
||||
function getAllUnits($base,$InVillageOnly=False,$mode=0) {
|
||||
global $database;
|
||||
$ownunit = $database->getUnit($base);
|
||||
$ownunit['u99'] -= $ownunit['u99'];
|
||||
@@ -226,6 +226,7 @@ class Technology {
|
||||
$ownunit['hero'] += $enforce['hero'];
|
||||
}
|
||||
}
|
||||
if($mode==0){
|
||||
$prisoners = $database->getPrisoners($base);
|
||||
if(!empty($prisoners)) {
|
||||
foreach($prisoners as $prisoner){
|
||||
@@ -240,6 +241,7 @@ class Technology {
|
||||
$ownunit['hero'] += $prisoner['t11'];
|
||||
}
|
||||
}
|
||||
}
|
||||
if(!$InVillageOnly) {
|
||||
$movement = $database->getVillageMovement($base);
|
||||
if(!empty($movement)) {
|
||||
|
||||
Reference in New Issue
Block a user