Added a new functionality

This is a T4+ functionality, but it's very useful. Catapult target(s) are now shown in the rally point, under the amount of attacking troops.
This commit is contained in:
Pietro
2018-04-04 21:38:57 +02:00
committed by GitHub
parent bba46a3e6f
commit b881605cbc
+13
View File
@@ -60,6 +60,19 @@ $to = $database->getOMInfo($units[$y]['to']);}
}
?>
</tr></tbody>
<?php if($units[$y]['t8'] > 0 && $units[$y]['attack_type'] == 3){ ?>
<tbody>
<tr>
<th><?php echo CATAPULT_TARGET;?></th>
<td style="text-align: center" colspan="5">
<?php echo $units[$y]['ctar1'] == 0 ? "Random" : $building->procResType($units[$y]['ctar1']); ?>
</td>
<td style="text-align: center" colspan="<?php if($units[$y]['t11'] == 0) {echo"5";}else{echo"6";}?>">
<?php echo $units[$y]['ctar2'] == 99 ? "Random" : ($units[$y]['ctar2'] == 0 ? "-" : $building->procResType($units[$y]['ctar2'])); ?>
</td>
</tr>
</tbody>
<?php } ?>
<tbody class="infos">
<tr>
<th><?php echo ARRIVAL;?></th>