diff --git a/hwe/ts/NPCControl.vue b/hwe/ts/NPCControl.vue
index ca550bf9..b8ab6669 100644
--- a/hwe/ts/NPCControl.vue
+++ b/hwe/ts/NPCControl.vue
@@ -7,11 +7,11 @@
:style="{ width: '1000px', margin: 'auto', border: 'solid 1px #888888' }"
>
+
최근 설정:
- {{ nationPolicy.valueSetter ?? "-없음-" }}
- ({{ nationPolicy.valueSetTime ?? "설정 기록 없음" }})
+ {{ lastSetters.policy.setter ?? "-없음-" }}
+ ({{ lastSetters.policy.date ?? "설정 기록 없음" }})
@@ -286,13 +286,13 @@
최근 설정:
- {{ chiefActionPriority.prioritySetter ?? "-없음-" }}
- ({{ chiefActionPriority.prioritySetTime ?? "설정 기록 없음" }})
+ {{ lastSetters.nation.setter ?? "-없음-" }}
+ ({{ lastSetters.nation.date ?? "설정 기록 없음" }})
예턴이 없거나, 지정되어 있더라도 실패할경우
아래 순위에 따라
+ >예턴이 없거나, 지정되어 있더라도 실패하면
아래 순위에 따라
사령턴을 시도합니다.
@@ -374,8 +374,8 @@
최근 설정:
- {{ nationPolicy.prioritySetter ?? "-없음-" }}
- ({{ nationPolicy.prioritySetTime ?? "설정 기록 없음" }})
+ {{ lastSetters.general.setter ?? "-없음-" }}
+ ({{ lastSetters.general.date ?? "설정 기록 없음" }})
@@ -501,6 +501,17 @@ declare const defaultGeneralActionPriority: NPCGeneralActions[];
declare const defaultStatNPCMax: number;
declare const defaultStatMax: number;
+type SetterInfo = {
+ setter: string | null;
+ date: string | null;
+};
+
+declare const lastSetters: {
+ polcy: SetterInfo;
+ nation: SetterInfo;
+ general: SetterInfo;
+};
+
export default defineComponent({
name: "NPCControl",
components: {
@@ -784,7 +795,7 @@ export default defineComponent({
return {
title: "NPC 정책",
toasts: [],
- reqNationGold: 110,
+ lastSetters,
nationID,
defaultStatMax,
@@ -812,4 +823,38 @@ export default defineComponent({
max-width: 350px;
text-align: left;
}
+
+.control_bar {
+ margin-top: 8pt;
+ text-align: right;
+}
+
+.reset_btn {
+ width: 15ch;
+}
+
+.revert_btn{
+ width: 15ch;
+}
+
+.submit_btn {
+ margin-left: 1em;
+ width: 15ch;
+}
+
+.half_section_left {
+ padding-right: 0;
+ border-right: 0.5px solid #aaa;
+}
+
+.half_section_right {
+ padding-left: 0;
+}
+
+.section_bar {
+ text-align: center;
+ border: 0.5px solid #aaa;
+ padding-right: 0;
+ padding-left: 0;
+}
\ No newline at end of file
diff --git a/hwe/v_NPCControl.php b/hwe/v_NPCControl.php
index 3033eb3f..f204e378 100644
--- a/hwe/v_NPCControl.php
+++ b/hwe/v_NPCControl.php
@@ -66,6 +66,21 @@ if ($currentNationPolicy['reqHumanWarUrgentGold'] ?? 0) {
$autoPolicy = new AutorunNationPolicy($general, ($gameStor->autorun_user)['options'], ['values' => $autoPolicyVariable], null, $nation, $gameStor->getAll(true));
$zeroPolicy = new AutorunNationPolicy($general, ($gameStor->autorun_user)['options'], null, null, $nation, $gameStor->getAll(true));
+$lastSetters = [
+ 'policy' => [
+ 'setter' => $rawNationPolicy['valueSetter'] ?? null,
+ 'date' => $rawNationPolicy['valueSetTime'] ?? null,
+ ],
+ 'nation' => [
+ 'setter' => $rawNationPolicy['prioritySetter'] ?? null,
+ 'date' => $rawNationPolicy['prioritySetTime'] ?? null,
+ ],
+ 'general' => [
+ 'setter' => $rawNationGeneralPolicy['prioritySetter'] ?? null,
+ 'date' => $rawNationGeneralPolicy['prioritySetTime'] ?? null,
+ ]
+]
+
?>
@@ -90,6 +105,8 @@ $zeroPolicy = new AutorunNationPolicy($general, ($gameStor->autorun_user)['optio
'currentGeneralActionPriority' => $currentGeneralActionPriority,
'availableGeneralActionPriorityItems' => AutorunGeneralPolicy::$default_priority,
+ 'lastSetters' => $lastSetters,
+
'defaultStatNPCMax' => GameConst::$defaultStatNPCMax,
'defaultStatMax' => GameConst::$defaultStatMax,
]) ?>