Fix quest 33 add command center

Fix quest 33 add command center
This commit is contained in:
novgorodschi catalin
2026-07-15 15:22:01 +03:00
parent ae6defad69
commit 37e845a4d6
2 changed files with 12 additions and 5 deletions
+1
View File
@@ -38,6 +38,7 @@ class Village {
public $enforcetoyou = [];
public $enforceoasis = [];
public $currentcel = 0;
public $currentfestival = 0;
public $allcrop = 0;
public $loyalty = 0;
private $infoarray = [];
+11 -5
View File
@@ -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<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> <?php echo Q33; ?><\/h1><br \/><i>&rdquo;<?php echo Q33_DESC; ?>&rdquo;<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><?php echo Q33_ORDER; ?><\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"neighbour\"><\/div>\n\t\t","number":"-33","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> <?php echo Q33; ?><\/h1><br \/><i>&rdquo;<?php echo $text; ?> <?php echo Q33_RESP; ?>&rdquo;<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/><?php echo Q_REWARD; ?><\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>3400&nbsp;&nbsp;<img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>2800&nbsp;&nbsp;<img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>3600&nbsp;&nbsp;<img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>2200&nbsp;&nbsp;<\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','34');\"><?php echo Q_CONTINUE; ?><\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"neighbour\"><\/div>\n\t\t","number":33,"reward":{"wood":3400,"clay":2800,"iron":3600,"crop":2200},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}