mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-29 09:04:26 +00:00
Bonus from treasurey and artefact coded
Bonus troops make faster with (50%) Bonus building stronger with (4x) Bonus makes troops faster with (2x) And count by bad_effect and effect2 for artefact of fool For artefact of fool Artefact of the unique fool Every 24 hours it gets a random effect, bonus, or penalty (all are possible with the exception of great warehouse, great granary and WW building plans). They change effect AND scope every 24 hours. The unique artifact will always take positive bonuses. Owner olteanu14 Village Calaret Fulger Alliance ~WWG~ Area of effect account Bonus building stronger with 5 Required level Treasury level 20 Time of conquer 2013-08-03 20:48:32 time of activation Active
This commit is contained in:
+50
-19
@@ -11,14 +11,45 @@
|
||||
$reqlvl = 10;
|
||||
}
|
||||
$effect = "account";
|
||||
}
|
||||
if ($artefact['conquered'] >= (time()-86400)){
|
||||
$active = "Inactive";
|
||||
}else{
|
||||
$active = "Active";
|
||||
}
|
||||
if ($artefact['conquered'] >= (time()-86400)){
|
||||
$active = "Inactive";
|
||||
}else{
|
||||
$active = "Active";
|
||||
}
|
||||
if ($artefact['type'] == 8){$kind=$artefact['kind']; $effecty=$artefact['effect2'];}else{$kind=$artefact['type']; $effecty=$artefact['effect'];}
|
||||
switch($kind){
|
||||
case 1:
|
||||
if($artefact['type'] == 8 && $artefact['bad_effect']==1){$betterorbadder="building weaker with";}else{$betterorbadder="building stronger with";}
|
||||
break;
|
||||
case 2:
|
||||
if($artefact['type'] == 8 && $artefact['bad_effect']==1){$betterorbadder="makes troops slowest with";}else{$betterorbadder="makes troops faster with";}
|
||||
break;
|
||||
case 3:
|
||||
if($artefact['type'] == 8 && $artefact['bad_effect']==1){$betterorbadder="spies decrese ability with";}else{$betterorbadder="spies increase ability with";}
|
||||
break;
|
||||
case 4:
|
||||
if($artefact['type'] == 8 && $artefact['bad_effect']==1){$betterorbadder="all troops consume high with";}else{$betterorbadder="all troops consume less with";}
|
||||
break;
|
||||
case 5:
|
||||
if($artefact['type'] == 8 && $artefact['bad_effect']==1){$betterorbadder="troops make slowest with";}else{$betterorbadder="troops make faster with";}
|
||||
break;
|
||||
case 6:
|
||||
if($artefact['type'] == 8 && $artefact['bad_effect']==1){$betterorbadder="you can construct ";}else{$betterorbadder="you can construct ";}
|
||||
break;
|
||||
case 7:
|
||||
if($artefact['type'] == 8 && $artefact['bad_effect']==1){$betterorbadder="cranny capacity is decrese by";}else{$betterorbadder="cranny capacity is increased by";}
|
||||
break;
|
||||
case 8:
|
||||
if($artefact['type'] == 8 && $artefact['bad_effect']==1){$betterorbadder="spies increase ability with";}else{$betterorbadder="spies decrease ability with";}
|
||||
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
$bonus=$betterorbadder." ".$effecty."";
|
||||
?>
|
||||
|
||||
|
||||
<div class="artefact image-6">
|
||||
<table id="art_details" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
@@ -29,7 +60,7 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="2" class="desc">
|
||||
|
||||
|
||||
<span class="detail"><?php echo $artefact['desc'];?></span>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -44,31 +75,31 @@
|
||||
<td>
|
||||
<a href="karte.php?d=<?php echo $artefact['vref'];?>&c=<?php echo $generator->getMapCheck($artefact['vref']);?>"><?php echo $database->getVillageField($artefact['vref'], "name");?> </a>
|
||||
</td>
|
||||
</tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Alliance</th>
|
||||
<td><a href="allianz.php?aid=<?php echo $database->getUserField($artefact['owner'],"alliance",0);?>"><?php echo $database->getAllianceName($database->getUserField($artefact['owner'],"alliance",0)); ?></a></td>
|
||||
</tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Area of effect</th>
|
||||
<td><?php echo $effect; ?></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<th>Bonus</th>
|
||||
<td>NOT CODED</td>
|
||||
<td><?php echo $bonus; ?></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<th>Required level</th>
|
||||
<td>Treasury level <b><?php echo $reqlvl; ?></b></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<th>Time of conquer</th>
|
||||
<td><?php echo date("Y-m-d H:i:s",$artefact['conquered']);?></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<th>time of activation</th>
|
||||
<td><?php echo $active;?></td>
|
||||
@@ -86,12 +117,12 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
|
||||
<tr>
|
||||
<td><span class="none"><a href="spieler.php?uid=<?php echo $artefact['owner'];?>"><?php echo $database->getUserField($artefact['owner'],"username",0);?></a></span></td>
|
||||
<td><span class="none"><a href="karte.php?d=<?php echo $artefact['vref'];?>&c=<?php echo $generator->getMapCheck($artefact['vref']);?>"><?php echo $database->getVillageField($artefact['vref'], "name");?> </a></span></td>
|
||||
<td><span class="none"><?php echo date("Y-m-d H:i:s",$artefact['conquered']);?></span></td>
|
||||
|
||||
<td><span class="none"><?php echo date("Y-m-d H:i:s",$artefact['conquered']);?></span></td>
|
||||
|
||||
</tr>
|
||||
|
||||
</tr></tbody></table></div>
|
||||
|
||||
</tr></tbody></table></div>
|
||||
|
||||
Reference in New Issue
Block a user