From b2f329cf834cdd388c8f188b928bc50723fb8f8a Mon Sep 17 00:00:00 2001 From: yi12345 Date: Wed, 7 Aug 2013 13:37:38 +0300 Subject: [PATCH] fix issue 261 --- install/data/constant_format.tpl | 3 +++ install/process.php | 1 + install/templates/config.tpl | 10 ++++++++++ 3 files changed, 14 insertions(+) diff --git a/install/data/constant_format.tpl b/install/data/constant_format.tpl index 1e250310..7cde1ec4 100644 --- a/install/data/constant_format.tpl +++ b/install/data/constant_format.tpl @@ -106,6 +106,9 @@ define("SHOW_NATARS",%SHOW_NATARS%); // ***** Natars Units Multiplier define("NATARS_UNITS",%NATARS_UNITS%); +// ***** Nature troops regeneration time +define("NATURE_REGTIME",%NATURE_REGTIME%); + // ***** Enable T4 is Coming screen define("T4_COMING",%T4_COMING%); diff --git a/install/process.php b/install/process.php index 8595166e..96794c61 100644 --- a/install/process.php +++ b/install/process.php @@ -96,6 +96,7 @@ class Process { $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("'%NATURE_REGTIME%'", $_POST['nature_regtime'], $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 884f60f9..3c1ed2a2 100644 --- a/install/templates/config.tpl +++ b/install/templates/config.tpl @@ -80,6 +80,16 @@ echo "
Error creating constant.php + Nature troops regeneration time: + + Storage Multipler: Tourn Threshold: Great Workshop: