P16-01-DISMISS: 一般従業員の通常操作での解雇(退職金を含む。P16-01 の補助の作業。原単位への加算 0)

This commit is contained in:
Agent Control Runner
2026-10-25 14:45:45 +09:00
parent b06fec17c7
commit a073ccb59b
10 changed files with 668 additions and 127 deletions
+8 -1
View File
@@ -402,6 +402,8 @@ func _show_dismissal_result(result: Variant, employee_name: String) -> void:
text += "未払い G%d は次の0時に精算します。" % int(details[&"unpaid_wages_preserved"])
if not (details.get(&"reopened_task_ids", []) as Array).is_empty():
text += "持っていた作業は開き直しました。"
if not (details.get(&"interrupted_rescue_task_ids", []) as Array).is_empty():
text += "関わっていた救護の作業は取り消しました。"
_set_result(text, true)
@@ -418,6 +420,12 @@ func _dismissal_summary(row: Dictionary, preview: Dictionary) -> String:
task_names.append(String(TASK_NAMES.get(StringName(task_type), "作業")))
if not task_names.is_empty():
text += "持っている%sは開き直して、ほかの従業員に回します。" % "・".join(task_names)
# A rescue the command interrupts is cancelled, not reopened (SPEC 6.2.1).
var roles: Array = preview.get(&"interrupted_rescue_roles", [])
if roles.has(&"carrier"):
text += "運んでいる救護の搬送は取り消し、患者の救護をやり直します。"
if roles.has(&"patient"):
text += "この従業員への救護は取り消し、救護係を外します。"
return text
@@ -434,7 +442,6 @@ func _dismissal_reason_text(reason: StringName, details: Dictionary = {}) -> Str
&"NOT_GENERAL_EMPLOYEE": "ギルドで雇った一般従業員だけを解雇できます。",
&"EXTERNAL_TASK": "物流の受け取り・配達・返送の途中です。終わってから解雇できます。",
&"DEFENSE_LOCKED": "襲撃の防衛に参加中は解雇できません。襲撃が終わってから解雇できます。",
&"RESCUE_PAIR_ABOARD": "救護の搬送で昇降機に乗っています。着いてから解雇できます。",
&"RESERVATION_RELEASE_FAILED": "作業の予約を解けないため解雇できません。",
&"BANKRUPT": "運営終了後は解雇できません。",
}