mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-19 19:16:10 +00:00
edit trapper + bug fixed: in each resouce places, when you upgrade 2 level with waiting loop, the "production at level ?" must equal to "upgrade to level ?"
This commit is contained in:
+32
-3
@@ -1,3 +1,7 @@
|
||||
<?php
|
||||
$loopsame = ($building->isCurrent($id) || $building->isLoop($id))?1:0;
|
||||
$doublebuild = ($building->isCurrent($id) && $building->isLoop($id))?1:0;
|
||||
?>
|
||||
<div id="build" class="gid1"><a href="#" onClick="return Popup(0,4);" class="build_logo">
|
||||
<img class="building g1" src="img/x.gif" alt="<?php echo B1; ?>" title="<?php echo B1; ?>" />
|
||||
</a>
|
||||
@@ -10,13 +14,38 @@
|
||||
</tr>
|
||||
<?php
|
||||
if(!$building->isMax($village->resarray['f'.$id.'t'],$id)) {
|
||||
$next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild;
|
||||
if($village->capital == 1) {
|
||||
if($next<=20){
|
||||
?>
|
||||
<tr>
|
||||
<th><?php echo NEXT_PROD; echo $village->resarray['f'.$id]+1; ?>:</th>
|
||||
<td><b><?php echo $bid1[$village->resarray['f'.$id]+1]['prod']* SPEED; ?></b> <?php echo PER_HR; ?></td>
|
||||
<th><?php echo NEXT_PROD; echo $next; ?>:</th>
|
||||
<td><b><?php echo $bid1[$next]['prod']* SPEED; ?></b> <?php echo PER_HR; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}else{
|
||||
?>
|
||||
<tr>
|
||||
<th><?php echo NEXT_PROD; 20 ?>:</th>
|
||||
<td><b><?php echo $bid1[20]['prod']* SPEED; ?></b> <?php echo PER_HR; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}}else{
|
||||
if($next<=10){
|
||||
?>
|
||||
<tr>
|
||||
<th><?php echo NEXT_PROD; echo $next; ?>:</th>
|
||||
<td><b><?php echo $bid1[$next]['prod']* SPEED; ?></b> <?php echo PER_HR; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<tr>
|
||||
<th><?php echo NEXT_PROD; echo 10; ?>:</th>
|
||||
<td><b><?php echo $bid1[10]['prod']* SPEED; ?></b> <?php echo PER_HR; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}}}
|
||||
?>
|
||||
</table>
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user