diff --git a/Templates/Build/27_show.tpl b/Templates/Build/27_show.tpl index c4cd0285..7d5e24d7 100644 --- a/Templates/Build/27_show.tpl +++ b/Templates/Build/27_show.tpl @@ -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.""; ?> - +
| - + | getVillageField($artefact['vref'], "name");?> | - +||
| Alliance | ">getAllianceName($database->getUserField($artefact['owner'],"alliance",0)); ?> | -||
|---|---|---|---|
| Area of effect | |||
| Bonus | -NOT CODED | +||
| Required level | Treasury level | ||
| Time of conquer | |||
| time of activation | @@ -86,12 +117,12 @@ | ||
| getUserField($artefact['owner'],"username",0);?> | getVillageField($artefact['vref'], "name");?> | -- + | + |