From 642d90a73d0f430d4e17488ecac59002eed1f98f Mon Sep 17 00:00:00 2001 From: Vladyslav Date: Sat, 30 Jun 2018 23:23:05 +0300 Subject: [PATCH] General fixes +Redesigned set of buildings in the center of the village of Natars with artifacts +Rally point now correct displayed in the village overview of the admin panel NOTE: To use this change, must recreate account Natars --- Admin/Templates/village.tpl | 3 +-- GameEngine/Database.php | 11 ++++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Admin/Templates/village.tpl b/Admin/Templates/village.tpl index d5cb33ae..49368d54 100644 --- a/Admin/Templates/village.tpl +++ b/Admin/Templates/village.tpl @@ -319,8 +319,7 @@ if(isset($id)){ elseif($gid == 0) echo ""; } - $rp = 16; - $rplevel = $fdata['f'.$rp]; + $rplevel = $fdata['f39t']; if($rplevel > 0) echo ""; elseif($rplevel == 0) echo ""; diff --git a/GameEngine/Database.php b/GameEngine/Database.php index b791c47a..e80f3aa0 100755 --- a/GameEngine/Database.php +++ b/GameEngine/Database.php @@ -7079,7 +7079,16 @@ References: User ID/Message ID, Mode 50 => rand(1 * $multiplier, 5 * $multiplier) * NATARS_UNITS]; //Set the buildings and their levels - $buildingArrays = ["f22t" => 27, "f22" => ($artifact['size'] == 1 ? 10 : 20), "f28t" => 25, "f28" => 10, "f19t" => 23, "f19" => 10, "f32t" => 23, "f32" => 10]; + $buildingArrays = [ + //Treasury of the 20th level, Residence of the 10th level, Rally Point of the 1th level + "f22t" => 27, "f22" => 20, "f28t" => 25, "f28" => 10, "f39t" => 16, "f39" => 1, + //18 Cranny of the 10th level + "f19t" => 23, "f19" => 10, "f20t" => 23, "f20" => 10, "f21t" => 23, "f21" => 10, + "f23t" => 23, "f23" => 10, "f24t" => 23, "f24" => 10, "f25t" => 23, "f25" => 10, + "f26t" => 23, "f26" => 10, "f27t" => 23, "f27" => 10, "f29t" => 23, "f29" => 10, + "f30t" => 23, "f30" => 10, "f31t" => 23, "f31" => 10, "f32t" => 23, "f32" => 10, + "f33t" => 23, "f33" => 10, "f34t" => 23, "f34" => 10, "f35t" => 23, "f35" => 10, + "f36t" => 23, "f36" => 10, "f37t" => 23, "f37" => 10, "f38t" => 23, "f38" => 10]; $this->modifyUnit($wid, array_keys($unitArrays), array_values($unitArrays), [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]); $this->setVillageLevel($wid, array_keys($buildingArrays), array_values($buildingArrays));