Add Jiangling rearguard camp and Tong Pass bridge

This commit is contained in:
2026-06-19 04:53:59 +09:00
parent 7abe2b36c1
commit 70563668a2
4 changed files with 388 additions and 2 deletions

View File

@@ -2145,6 +2145,17 @@ func _check_battle_visual_data(failures: Array[String]) -> void:
failures.append("could not load Jiangling Rearguard data")
else:
_check_shop_items_unique(failures, jiangling_rearguard_state, "032 base")
var jiangling_rearguard_conversations: Array = jiangling_rearguard_state.get_briefing().get("camp_conversations", [])
if jiangling_rearguard_conversations.size() != 2:
failures.append("032 base briefing should expose exactly two camp conversations")
else:
_check_camp_conversation(failures, _find_camp_conversation(jiangling_rearguard_conversations, "jiangling_rearguard_council"), "jiangling_rearguard_council", "topic", "")
_check_camp_conversation(failures, _find_camp_conversation(jiangling_rearguard_conversations, "jiangling_zhang_he_rear_line"), "jiangling_zhang_he_rear_line", "officer", "zhang_he")
var jiangling_rearguard_merchant := jiangling_rearguard_state.get_shop_merchant()
if str(jiangling_rearguard_merchant.get("name", "")) != "Jiangling Rear Road Sutler":
failures.append("032 shop should expose Jiangling rear road merchant name")
if (jiangling_rearguard_merchant.get("lines", []) as Array).size() < 2:
failures.append("032 shop should expose merchant flavor lines")
if jiangling_rearguard_state.get_unit("zhang_he_ch32").is_empty() or not jiangling_rearguard_state.is_required_deployment("zhang_he_ch32"):
failures.append("032 should deploy Zhang He as a required officer")
_check_shop_item_visibility(failures, jiangling_rearguard_state, "war_drum", false, "032 base")
@@ -2155,6 +2166,19 @@ func _check_battle_visual_data(failures: Array[String]) -> void:
failures.append("could not load Jiangling Rearguard secured Huarong data")
else:
_check_shop_items_unique(failures, jiangling_rearguard_secured_state, "032 secured Huarong rearguard")
var stability_medicine: Dictionary = _find_camp_conversation(
jiangling_rearguard_secured_state.get_briefing().get("camp_conversations", []),
"jiangling_rearguard_stability_medicine"
)
if stability_medicine.is_empty():
failures.append("032 secured Huarong rearguard should expose stability medicine")
else:
_check_camp_conversation_effect(failures, stability_medicine, "panacea", 1)
if not _find_camp_conversation(
jiangling_rearguard_secured_state.get_briefing().get("camp_conversations", []),
"jiangling_rearguard_forced_march_beans"
).is_empty():
failures.append("032 secured Huarong rearguard should not expose forced march beans")
_check_shop_item_visibility(failures, jiangling_rearguard_secured_state, "imperial_seal", true, "032 secured Huarong rearguard")
_check_shop_item_visibility(failures, jiangling_rearguard_secured_state, "war_drum", false, "032 secured Huarong rearguard")
@@ -2163,6 +2187,19 @@ func _check_battle_visual_data(failures: Array[String]) -> void:
failures.append("could not load Jiangling Rearguard rushed Xuchang data")
else:
_check_shop_items_unique(failures, jiangling_rearguard_rushed_state, "032 rushed Xuchang return")
var forced_march_beans: Dictionary = _find_camp_conversation(
jiangling_rearguard_rushed_state.get_briefing().get("camp_conversations", []),
"jiangling_rearguard_forced_march_beans"
)
if forced_march_beans.is_empty():
failures.append("032 rushed Xuchang return should expose forced march beans")
else:
_check_camp_conversation_effect(failures, forced_march_beans, "bean", 1)
if not _find_camp_conversation(
jiangling_rearguard_rushed_state.get_briefing().get("camp_conversations", []),
"jiangling_rearguard_stability_medicine"
).is_empty():
failures.append("032 rushed Xuchang return should not expose stability medicine")
_check_shop_item_visibility(failures, jiangling_rearguard_rushed_state, "war_drum", true, "032 rushed Xuchang return")
_check_shop_item_visibility(failures, jiangling_rearguard_rushed_state, "imperial_seal", false, "032 rushed Xuchang return")
@@ -2173,6 +2210,50 @@ func _check_battle_visual_data(failures: Array[String]) -> void:
_check_shop_items_unique(failures, jiangling_rearguard_old_flags_state, "032 old Huarong setup flags")
_check_shop_item_visibility(failures, jiangling_rearguard_old_flags_state, "war_drum", false, "032 old Huarong setup flags")
_check_shop_item_visibility(failures, jiangling_rearguard_old_flags_state, "imperial_seal", false, "032 old Huarong setup flags")
if not _find_camp_conversation(
jiangling_rearguard_old_flags_state.get_briefing().get("camp_conversations", []),
"jiangling_rearguard_stability_medicine"
).is_empty():
failures.append("032 old Huarong setup flags should not expose stability medicine")
if not _find_camp_conversation(
jiangling_rearguard_old_flags_state.get_briefing().get("camp_conversations", []),
"jiangling_rearguard_forced_march_beans"
).is_empty():
failures.append("032 old Huarong setup flags should not expose forced march beans")
var tong_pass_state = BattleStateScript.new()
if not tong_pass_state.load_battle("res://data/scenarios/033_tong_pass_vanguard.json", {}, {}, {}, ["zhang_he"]):
failures.append("could not load Tong Pass Vanguard data")
else:
_check_shop_items_unique(failures, tong_pass_state, "033 base")
if tong_pass_state.get_unit("zhang_he_ch33").is_empty() or not tong_pass_state.is_required_deployment("zhang_he_ch33"):
failures.append("033 should deploy Zhang He as a required officer")
_check_shop_item_visibility(failures, tong_pass_state, "war_drum", false, "033 base")
_check_shop_item_visibility(failures, tong_pass_state, "imperial_seal", false, "033 base")
var tong_pass_stabilized_state = BattleStateScript.new()
if not tong_pass_stabilized_state.load_battle("res://data/scenarios/033_tong_pass_vanguard.json", {}, {}, {"stabilized_jiangling_rearguard": true}, ["zhang_he"]):
failures.append("could not load Tong Pass stabilized Jiangling data")
else:
_check_shop_items_unique(failures, tong_pass_stabilized_state, "033 stabilized Jiangling rearguard")
_check_shop_item_visibility(failures, tong_pass_stabilized_state, "imperial_seal", true, "033 stabilized Jiangling rearguard")
_check_shop_item_visibility(failures, tong_pass_stabilized_state, "war_drum", false, "033 stabilized Jiangling rearguard")
var tong_pass_mobilized_state = BattleStateScript.new()
if not tong_pass_mobilized_state.load_battle("res://data/scenarios/033_tong_pass_vanguard.json", {}, {}, {"mobilized_tong_pass_vanguard": true}, ["zhang_he"]):
failures.append("could not load Tong Pass mobilized vanguard data")
else:
_check_shop_items_unique(failures, tong_pass_mobilized_state, "033 mobilized Tong Pass vanguard")
_check_shop_item_visibility(failures, tong_pass_mobilized_state, "war_drum", true, "033 mobilized Tong Pass vanguard")
_check_shop_item_visibility(failures, tong_pass_mobilized_state, "imperial_seal", false, "033 mobilized Tong Pass vanguard")
var tong_pass_old_flags_state = BattleStateScript.new()
if not tong_pass_old_flags_state.load_battle("res://data/scenarios/033_tong_pass_vanguard.json", {}, {}, {"secured_huarong_rearguard": true, "rushed_xuchang_return": true}, ["zhang_he"]):
failures.append("could not load Tong Pass old Jiangling setup flag data")
else:
_check_shop_items_unique(failures, tong_pass_old_flags_state, "033 old Jiangling setup flags")
_check_shop_item_visibility(failures, tong_pass_old_flags_state, "war_drum", false, "033 old Jiangling setup flags")
_check_shop_item_visibility(failures, tong_pass_old_flags_state, "imperial_seal", false, "033 old Jiangling setup flags")
for item_id in ["bronze_sword", "training_spear", "short_bow", "hand_axe", "iron_armor", "panacea"]:
var item := state.get_item_def(item_id)