From 490b59a488ea0631d896490e2dca32876e2c7717 Mon Sep 17 00:00:00 2001 From: Shadowss Date: Fri, 9 Aug 2013 15:08:04 +0300 Subject: [PATCH] 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 --- Templates/Build/27_show.tpl | 69 +++++++++++++++++++++++++++---------- 1 file changed, 50 insertions(+), 19 deletions(-) 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.""; ?> - +
@@ -29,7 +60,7 @@ @@ -44,31 +75,31 @@ - + - + - + - + - + - + - + @@ -86,12 +117,12 @@ - + - - + + - -
- +
getVillageField($artefact['vref'], "name");?>
Alliance ">getAllianceName($database->getUserField($artefact['owner'],"alliance",0)); ?>
Area of effect
BonusNOT CODED
Required level Treasury level
Time of conquer
time of activation
getUserField($artefact['owner'],"username",0);?> getVillageField($artefact['vref'], "name");?>
\ No newline at end of file + +