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");
20|
0|
getTimeFormat(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 "