From 73778f37e2331aecd3f6cbe94a980de8f7d6775f Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 15 Apr 2013 12:40:17 +0300 Subject: [PATCH] add traper capacity --- Templates/Build/36.tpl | 10 +++++----- install/data/constant_format.tpl | 2 ++ install/process.php | 1 + install/templates/config.tpl | 1 + 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Templates/Build/36.tpl b/Templates/Build/36.tpl index 5f1f9f2c..726622ba 100644 --- a/Templates/Build/36.tpl +++ b/Templates/Build/36.tpl @@ -14,7 +14,7 @@ include("next.tpl"); Currect maximum traps to train: - resarray['f'.$id]]['attri']; ?> Traps + resarray['f'.$id]]['attri']*TRAPPER_CAPACITY; ?> Traps Maximum traps to train at level : - Traps + Traps Maximum traps to train at level 20: - Traps + Traps 10|Crop20|Crop consumption0|DurationgetTimeFormat(round(${'u99'}['time'] * ($bid19[$village->resarray['f'.$id]]['attri'] / 100) / SPEED)); + alt="Duration" title="Duration" />getTimeFormat(round(${'u99'}['time'] * ($bid19[$village->resarray['f'.$id]]['attri']*TRAPPER_CAPACITY / 100) / SPEED)); echo ($dur=="0:00:00")? "0:00:01":$dur; ?> @@ -81,7 +81,7 @@ include("next.tpl"); $max1 = 0; for($i=19;$i<41;$i++){ if($village->resarray['f'.$i.'t'] == 36){ - $max1 += $bid36[$village->resarray['f'.$i]]['attri']; + $max1 += $bid36[$village->resarray['f'.$i]]['attri']*TRAPPER_CAPACITY; } } if($max > $max1 - ($village->unitarray['u99'] + $train_amt)){ diff --git a/install/data/constant_format.tpl b/install/data/constant_format.tpl index 10ecb25d..d1a3eb5a 100644 --- a/install/data/constant_format.tpl +++ b/install/data/constant_format.tpl @@ -67,6 +67,8 @@ define("TRADER_CAPACITY","%TRADERCAP%"); // ***** Cranny capacity define("CRANNY_CAPACITY","%CRANNYCAP%"); +// ***** Trapper capacity +define("TRAPPER_CAPACITY","%TRAPPERCAP%"); // ***** Village Expand // 1 = slow village expanding - more Cultural Points needed for every new village diff --git a/install/process.php b/install/process.php index 6dddc4e7..4ad31b93 100644 --- a/install/process.php +++ b/install/process.php @@ -44,6 +44,7 @@ class Process { $text = preg_replace("'%EVASIONSPEED%'", $_POST['evasionspeed'], $text); $text = preg_replace("'%TRADERCAP%'", $_POST['tradercap'], $text); $text = preg_replace("'%CRANNYCAP%'", $_POST['crannycap'], $text); + $text = preg_replace("'%TRAPPERCAP%'", $_POST['trappercap'], $text); $text = preg_replace("'%STORAGE_MULTIPLIER%'", $_POST['storage_multiplier'], $text); $text = preg_replace("'%UTRACK%'", $_POST['trackusers'], $text); $text = preg_replace("'%UTOUT%'", $_POST['timeout'], $text); diff --git a/install/templates/config.tpl b/install/templates/config.tpl index 89761609..2ac0c8e7 100644 --- a/install/templates/config.tpl +++ b/install/templates/config.tpl @@ -15,6 +15,7 @@ echo "
Error creating constant.php Evasion speed: Trader capacity (1 = 1x...): Cranny capacity: + Cranny capacity: World size: