From 09235db7f366b627fc5da2ca256ca0759e280a08 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Thu, 21 Apr 2022 22:30:15 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=A4=91=EC=9B=90=EC=A0=95=EB=B3=B4?= =?UTF-8?q?=EC=97=90=EC=84=9C=20=EB=B6=84=EC=9F=81=20=EB=88=84=EB=9D=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/API/Global/GetDiplomacy.php | 5 +- hwe/ts/PageGlobalDiplomacy.vue | 89 +++++++++++++++++++++++++-- 2 files changed, 84 insertions(+), 10 deletions(-) diff --git a/hwe/sammo/API/Global/GetDiplomacy.php b/hwe/sammo/API/Global/GetDiplomacy.php index 347898ea..4da4d430 100644 --- a/hwe/sammo/API/Global/GetDiplomacy.php +++ b/hwe/sammo/API/Global/GetDiplomacy.php @@ -67,10 +67,7 @@ class GetDiplomacy extends \sammo\BaseAPI $conflict = []; foreach ($rawConflict as $nationID => $killnum) { - $conflict[$nationID] = [ - 'killnum' => $killnum, - 'percent' => round(100 * $killnum / $sum, 1), - ]; + $conflict[$nationID] = round(100 * $killnum / $sum, 1); } $realConflict[] = [$cityID, $conflict]; diff --git a/hwe/ts/PageGlobalDiplomacy.vue b/hwe/ts/PageGlobalDiplomacy.vue index af78caed..777a49fe 100644 --- a/hwe/ts/PageGlobalDiplomacy.vue +++ b/hwe/ts/PageGlobalDiplomacy.vue @@ -9,9 +9,9 @@ - \ + \ @@ -61,6 +61,55 @@ +
+
분쟁 현황
+
+
{{ gameConstStore?.cityConst[cityID].name }}
+
+
+
+ {{ nation.name }} +
+
+ {{ percent.toLocaleString(undefined, { minimumFractionDigits: 1 }) }}% +
+
+
+
+
+
+
+
+
중원 지도
@@ -95,7 +144,7 @@ declare const getCityPosition: () => CityPositionMap; declare const formatCityInfo: (city: MapCityParsedRaw) => MapCityParsed;