From 37e845a4d60992cd98ffebfe46ff5f41648a8a8a Mon Sep 17 00:00:00 2001 From: novgorodschi catalin Date: Wed, 15 Jul 2026 15:22:01 +0300 Subject: [PATCH] Fix quest 33 add command center Fix quest 33 add command center --- GameEngine/Village.php | 1 + Templates/Ajax/quest_core.tpl | 16 +++++++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/GameEngine/Village.php b/GameEngine/Village.php index 9171a4f1..379060c6 100755 --- a/GameEngine/Village.php +++ b/GameEngine/Village.php @@ -38,6 +38,7 @@ class Village { public $enforcetoyou = []; public $enforceoasis = []; public $currentcel = 0; + public $currentfestival = 0; public $allcrop = 0; public $loyalty = 0; private $infoarray = []; diff --git a/Templates/Ajax/quest_core.tpl b/Templates/Ajax/quest_core.tpl index 916f00f9..76fcaafb 100644 --- a/Templates/Ajax/quest_core.tpl +++ b/Templates/Ajax/quest_core.tpl @@ -770,12 +770,18 @@ if ($ironL<4 || $clayL<4 || $woodL<4 || $cropL<6){?> $residence = $building->getTypeLevel(25); $palace = $building->getTypeLevel(26); -if($palace >= 10){ -$text =PALACE; -}else if($residence >= 10){ -$text =RESIDENCE; +$commandCenter = $building->getTypeLevel(44); + +if ($palace >= 10) { + $text = PALACE; +} elseif ($residence >= 10) { + $text = RESIDENCE; +} elseif ($commandCenter >= 10) { + $text = COMMANDCENTER; } -if ($residence<10 && $palace<10){?> + +if ($residence < 10 && $palace < 10 && $commandCenter < 10) { +?> {"markup":"\n\t\t

\"\" <\/h1>
”<\/i>

<\/div>
<\/span><\/div>\n\t\t

<\/div>\n\t\t","number":"-33","reward":false,"qgsrc":"q_luserinfo['tribe'];?>","msrc":"","altstep":99} {"markup":"\n\t\t