diff --git a/GameEngine/Admin/Mods/natarbuildingplan.php b/GameEngine/Admin/Mods/natarbuildingplan.php index 3bb54d18..92c3b551 100644 --- a/GameEngine/Admin/Mods/natarbuildingplan.php +++ b/GameEngine/Admin/Mods/natarbuildingplan.php @@ -32,7 +32,8 @@ for($i=1;$i<=$amt;$i++) { $database->addUnits($wid); $database->addTech($wid); $database->addABTech($wid); - $q = "UPDATE ".TB_PREFIX."units SET u41 = u41 + '150000', u42 = u42 + '150000', u43 = u43 + '150000', u44 = u44 + '150000', u45 = u45 + '150000', u46 = u46 + '150000', u47 = u47 + '150000', u48 = u48 + '150000' , u49 = u49 + '150000', u50 = u50 + '150000' WHERE vref = '".$wid."'"; + $speed = NATARS_UNITS; + $q = "UPDATE ".TB_PREFIX."units SET u41 = u41 + " . (1500 * $speed) . ", u42 = u42 + " . (1500 * $speed) . ", u43 = u43 + " . (1500 * $speed) . ", u44 = u44 + " . (1500 * $speed) . ", u45 = u45 + " . (1500 * $speed) . ", u46 = u46 + " . (1500 * $speed) . ", u47 = u47 + " . (1500 * $speed) . ", u48 = u48 + " . (1500 * $speed) . " , u49 = u49 + " . (1500 * $speed) . ", u50 = u50 + " . (1500 * $speed) . " WHERE vref = '".$wid."'"; mysql_query($q); $desc = 'With this ancient construction plan you will able to build World Wonder to level 50. to build further, your alliance must hold at least two plans.'; $database->addArtefact($wid, 3, 11, 1, 'Ancient Construction Plan', $desc, '', 'typeww.gif'); @@ -56,11 +57,11 @@ In the end, we will see whether the free tribes of Travian can once again outwit To steal a set of Construction Plans from the Natars, the following things must happen: -» You must Attack the village (NOT Raid!) -» You must WIN the Attack -» You must DESTROY the Treasure Chamber (Treasury) -» Your Hero MUST be in that attack, as he is the only one who may carry the Construction Plans -» An empty level 10 Treasure Chamber (Treasury) MUST be in the village where that attack came from +- You must Attack the village (NOT Raid!) +- You must WIN the Attack +- You must DESTROY the Treasure Chamber (Treasury) +- Your Hero MUST be in that attack, as he is the only one who may carry the Construction Plans +- An empty level 10 Treasure Chamber (Treasury) MUST be in the village where that attack came from NOTE: If the above criteria is not met during the attack, the next attack on that village which does meet the above criteria will take the Construction Plans. diff --git a/GameEngine/Admin/Mods/natarend.php b/GameEngine/Admin/Mods/natarend.php index d3df6d29..13a14a31 100644 --- a/GameEngine/Admin/Mods/natarend.php +++ b/GameEngine/Admin/Mods/natarend.php @@ -33,7 +33,7 @@ for($i=1;$i<=$amt;$i++) { $database->addUnits($wid); $database->addTech($wid); $database->addABTech($wid); - $q = "UPDATE ".TB_PREFIX."units SET u41 = u41 + '150000', u42 = u42 + '150000', u43 = u43 + '150000', u44 = u44 + '150000', u45 = u45 + '150000', u46 = u46 + '150000', u47 = u47 + '150000', u48 = u48 + '150000' , u49 = u49 + '150000', u50 = u50 + '150000' WHERE vref = '".$wid."'"; + $q = "UPDATE ".TB_PREFIX."units SET u41 = u41 + " . (1500 * $speed) . ", u42 = u42 + " . (1500 * $speed) . ", u43 = u43 + " . (1500 * $speed) . ", u44 = u44 + " . (1500 * $speed) . ", u45 = u45 + " . (1500 * $speed) . ", u46 = u46 + " . (1500 * $speed) . ", u47 = u47 + " . (1500 * $speed) . ", u48 = u48 + " . (1500 * $speed) . " , u49 = u49 + " . (1500 * $speed) . ", u50 = u50 + " . (1500 * $speed) . " WHERE vref = '".$wid."'"; mysql_query($q); } diff --git a/install/data/constant_format.tpl b/install/data/constant_format.tpl index d1a3eb5a..1e250310 100644 --- a/install/data/constant_format.tpl +++ b/install/data/constant_format.tpl @@ -103,6 +103,9 @@ define("WW",%WW%); // ***** Show Natars in Statistics define("SHOW_NATARS",%SHOW_NATARS%); +// ***** Natars Units Multiplier +define("NATARS_UNITS",%NATARS_UNITS%); + // ***** Enable T4 is Coming screen define("T4_COMING",%T4_COMING%); diff --git a/install/process.php b/install/process.php index 4ad31b93..8595166e 100644 --- a/install/process.php +++ b/install/process.php @@ -95,6 +95,7 @@ class Process { $text = preg_replace("'%TS_THRESHOLD%'", $_POST['ts_threshold'], $text); $text = preg_replace("'%WW%'", $_POST['ww'], $text); $text = preg_replace("'%SHOW_NATARS%'", $_POST['show_natars'], $text); + $text = preg_replace("'%NATARS_UNITS%'", $_POST['natars_units'], $text); $text = preg_replace("'%T4_COMING%'", $_POST['t4_coming'], $text); $text = preg_replace("'%REG_OPEN%'", $_POST['reg_open'], $text); $text = preg_replace("'%PEACE%'", $_POST['peace'], $text); diff --git a/install/templates/config.tpl b/install/templates/config.tpl index daf0eda3..884f60f9 100644 --- a/install/templates/config.tpl +++ b/install/templates/config.tpl @@ -16,6 +16,7 @@ echo "
Error creating constant.php Trader capacity (1 = 1x...): Cranny capacity: Trapper capacity: + Natars Units Multiplier: World size: