From fe351346c6533dba03ddfa5e3d71e2c774277ea5 Mon Sep 17 00:00:00 2001
From: Helloworld <1326521+LYZhelloworld@users.noreply.github.com>
Date: Sun, 29 May 2022 22:37:31 +0800
Subject: [PATCH] Added cost changes
---
tools/CopilotDesinger/index.js | 8 +++++++-
tools/CopilotDesinger/自动战斗作业生成器.html | 1 +
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/tools/CopilotDesinger/index.js b/tools/CopilotDesinger/index.js
index d130000f7e..07eb54fe4e 100644
--- a/tools/CopilotDesinger/index.js
+++ b/tools/CopilotDesinger/index.js
@@ -70,12 +70,18 @@ const action = (action_data) => {
.val(action_data.type ?? "")
.change(function () { action_data.type = $(this).val(); });
tr.append($('
').append(type_input));
- // Kills
+ // 击杀数
const kills_input = input_text()
.attr('type', 'number')
.val(String(action_data.kills ?? ""))
.change(function () { action_data.kills = $(this).val !== "" ? Number($(this).val()) : undefined; });
tr.append($(' | ').append(kills_input));
+ // 费用变化
+ const cost_changes = input_text()
+ .attr('type', 'number')
+ .val(String(action_data.cost_changes ?? ""))
+ .change(function () { action_data.cost_changes = $(this).val !== "" ? Number($(this).val()) : undefined; });
+ tr.append($(' | ').append(cost_changes));
// 干员
const name_input = input_text()
.val(action_data.name ?? "")
diff --git a/tools/CopilotDesinger/自动战斗作业生成器.html b/tools/CopilotDesinger/自动战斗作业生成器.html
index 9bb612e5bb..627d437557 100644
--- a/tools/CopilotDesinger/自动战斗作业生成器.html
+++ b/tools/CopilotDesinger/自动战斗作业生成器.html
@@ -62,6 +62,7 @@
|
| 类别 |
击杀数 |
+ 费用变化 |
干员名字 |
x坐标 |
y坐标 |