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;