mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-14 00:26:07 +00:00
Fixed some bugs
+Fixed a "division by zero" error, in Battle.php +Reworked spied informations, now they're shown only if the building is at least at level 1. Splitted residence/palace information in two distinct informations. Now the total crannies capacity is displayed (even if the capacity is 0) instead of the level of the greatest cranny +Fixed "getFieldLevelInVillage" function in Database.php -Removed an useless control in Units.php
This commit is contained in:
@@ -333,14 +333,14 @@ $end = ($tribe*10);
|
||||
?><tbody class="infos">
|
||||
<tr>
|
||||
<th>Destination:</th>
|
||||
<td> colspan="<?php if(!empty($process['t11'])){ echo"11"; }else{ echo"10"; } ?>">
|
||||
<?PHP
|
||||
<td colspan="<?php echo !empty($process['t11']) ? 11 : 10; ?>">
|
||||
<?php
|
||||
|
||||
echo"Warning: Catapult will <b>ONLY</b> shoot with a normal attack (they dont shoot with raids!)";
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?PHP
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
@@ -317,15 +317,15 @@ $actionType = "Raid";
|
||||
?><tbody class="infos">
|
||||
<tr>
|
||||
<th>Destination:</th>
|
||||
<td> colspan="<?php if($process['t11'] != ''){ echo"11"; }else{ echo"10"; } ?>">
|
||||
<?PHP
|
||||
<td colspan="<?php echo !empty($process['t11']) ? 11 : 10; ?>">
|
||||
<?php
|
||||
|
||||
echo"Warning: Catapult will <b>ONLY</b> shoot with a normal attack (they dont shoot with raids!)";
|
||||
?>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<?PHP
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user