Add White Wolf camp and Liaodong bridge
This commit is contained in:
@@ -1429,8 +1429,103 @@ func _check_battle_visual_data(failures: Array[String]) -> void:
|
||||
if not white_wolf_state.load_battle("res://data/scenarios/023_white_wolf_mountain.json", {}, {}, {}, ["zhang_he"]):
|
||||
failures.append("could not load White Wolf Mountain data")
|
||||
else:
|
||||
_check_shop_items_unique(failures, white_wolf_state, "023 base")
|
||||
var white_wolf_conversations: Array = white_wolf_state.get_briefing().get("camp_conversations", [])
|
||||
if white_wolf_conversations.size() != 2:
|
||||
failures.append("023 base briefing should expose exactly two camp conversations")
|
||||
else:
|
||||
_check_camp_conversation(failures, white_wolf_conversations[0], "white_wolf_ridge_council", "topic", "")
|
||||
_check_camp_conversation(failures, white_wolf_conversations[1], "white_wolf_zhang_he_ridge_wind", "officer", "zhang_he")
|
||||
var white_wolf_merchant := white_wolf_state.get_shop_merchant()
|
||||
if str(white_wolf_merchant.get("name", "")) != "White Wolf Ridge Sutler":
|
||||
failures.append("023 shop should expose White Wolf Ridge merchant name")
|
||||
if (white_wolf_merchant.get("lines", []) as Array).size() < 2:
|
||||
failures.append("023 shop should expose merchant flavor lines")
|
||||
if white_wolf_state.get_unit("zhang_he_ch23").is_empty() or not white_wolf_state.is_required_deployment("zhang_he_ch23"):
|
||||
failures.append("023 should deploy Zhang He as a required officer")
|
||||
_check_shop_item_visibility(failures, white_wolf_state, "war_drum", false, "023 base")
|
||||
_check_shop_item_visibility(failures, white_wolf_state, "imperial_seal", false, "023 base")
|
||||
_check_shop_item_visibility(failures, white_wolf_state, "iron_armor", true, "023 base")
|
||||
|
||||
var white_wolf_struck_state = BattleStateScript.new()
|
||||
if not white_wolf_struck_state.load_battle("res://data/scenarios/023_white_wolf_mountain.json", {}, {}, {"struck_wuhuan_vanguard": true}, ["zhang_he"]):
|
||||
failures.append("could not load White Wolf struck vanguard camp data")
|
||||
else:
|
||||
_check_shop_items_unique(failures, white_wolf_struck_state, "023 struck Wuhuan")
|
||||
var canteens: Dictionary = _find_camp_conversation(
|
||||
white_wolf_struck_state.get_briefing().get("camp_conversations", []),
|
||||
"white_wolf_scattered_canteens"
|
||||
)
|
||||
if canteens.is_empty():
|
||||
failures.append("023 struck Wuhuan flag should expose scattered canteens")
|
||||
else:
|
||||
_check_camp_conversation_effect(failures, canteens, "wine", 1)
|
||||
if not _find_camp_conversation(
|
||||
white_wolf_struck_state.get_briefing().get("camp_conversations", []),
|
||||
"white_wolf_route_medicine"
|
||||
).is_empty():
|
||||
failures.append("023 struck Wuhuan flag should not expose route medicine")
|
||||
_check_shop_item_visibility(failures, white_wolf_struck_state, "war_drum", true, "023 struck Wuhuan")
|
||||
_check_shop_item_visibility(failures, white_wolf_struck_state, "imperial_seal", false, "023 struck Wuhuan")
|
||||
|
||||
var white_wolf_fortified_state = BattleStateScript.new()
|
||||
if not white_wolf_fortified_state.load_battle("res://data/scenarios/023_white_wolf_mountain.json", {}, {}, {"fortified_white_wolf_route": true}, ["zhang_he"]):
|
||||
failures.append("could not load White Wolf fortified route camp data")
|
||||
else:
|
||||
_check_shop_items_unique(failures, white_wolf_fortified_state, "023 fortified White Wolf")
|
||||
var route_medicine: Dictionary = _find_camp_conversation(
|
||||
white_wolf_fortified_state.get_briefing().get("camp_conversations", []),
|
||||
"white_wolf_route_medicine"
|
||||
)
|
||||
if route_medicine.is_empty():
|
||||
failures.append("023 fortified White Wolf flag should expose route medicine")
|
||||
else:
|
||||
_check_camp_conversation_effect(failures, route_medicine, "panacea", 1)
|
||||
if not _find_camp_conversation(
|
||||
white_wolf_fortified_state.get_briefing().get("camp_conversations", []),
|
||||
"white_wolf_scattered_canteens"
|
||||
).is_empty():
|
||||
failures.append("023 fortified White Wolf flag should not expose scattered canteens")
|
||||
_check_shop_item_visibility(failures, white_wolf_fortified_state, "war_drum", false, "023 fortified White Wolf")
|
||||
_check_shop_item_visibility(failures, white_wolf_fortified_state, "imperial_seal", true, "023 fortified White Wolf")
|
||||
|
||||
var white_wolf_old_flags_state = BattleStateScript.new()
|
||||
if not white_wolf_old_flags_state.load_battle("res://data/scenarios/023_white_wolf_mountain.json", {}, {}, {"pressed_liaoxi_pursuit": true, "secured_liaoxi_approaches": true}, ["zhang_he"]):
|
||||
failures.append("could not load White Wolf old Liaoxi flag camp data")
|
||||
else:
|
||||
_check_shop_item_visibility(failures, white_wolf_old_flags_state, "war_drum", false, "023 old Liaoxi flags")
|
||||
_check_shop_item_visibility(failures, white_wolf_old_flags_state, "imperial_seal", false, "023 old Liaoxi flags")
|
||||
if not _find_camp_conversation(
|
||||
white_wolf_old_flags_state.get_briefing().get("camp_conversations", []),
|
||||
"white_wolf_scattered_canteens"
|
||||
).is_empty():
|
||||
failures.append("023 old Liaoxi flags should not expose scattered canteens")
|
||||
if not _find_camp_conversation(
|
||||
white_wolf_old_flags_state.get_briefing().get("camp_conversations", []),
|
||||
"white_wolf_route_medicine"
|
||||
).is_empty():
|
||||
failures.append("023 old Liaoxi flags should not expose route medicine")
|
||||
|
||||
var liaodong_state = BattleStateScript.new()
|
||||
if not liaodong_state.load_battle("res://data/scenarios/024_liaodong_pursuit.json", {}, {}, {}, ["zhang_he"]):
|
||||
failures.append("could not load Liaodong Pursuit data")
|
||||
else:
|
||||
if liaodong_state.get_unit("zhang_he_ch24").is_empty() or not liaodong_state.is_required_deployment("zhang_he_ch24"):
|
||||
failures.append("024 should deploy Zhang He as a required officer")
|
||||
|
||||
var liaodong_pressed_state = BattleStateScript.new()
|
||||
if not liaodong_pressed_state.load_battle("res://data/scenarios/024_liaodong_pursuit.json", {}, {}, {"pressed_liaodong_pursuit": true}, ["zhang_he"]):
|
||||
failures.append("could not load Liaodong pressed pursuit data")
|
||||
else:
|
||||
_check_shop_item_visibility(failures, liaodong_pressed_state, "war_drum", true, "024 pressed Liaodong")
|
||||
_check_shop_item_visibility(failures, liaodong_pressed_state, "imperial_seal", false, "024 pressed Liaodong")
|
||||
|
||||
var liaodong_secured_state = BattleStateScript.new()
|
||||
if not liaodong_secured_state.load_battle("res://data/scenarios/024_liaodong_pursuit.json", {}, {}, {"secured_wuhuan_submission": true}, ["zhang_he"]):
|
||||
failures.append("could not load Liaodong secured Wuhuan data")
|
||||
else:
|
||||
_check_shop_item_visibility(failures, liaodong_secured_state, "war_drum", false, "024 secured Wuhuan")
|
||||
_check_shop_item_visibility(failures, liaodong_secured_state, "imperial_seal", true, "024 secured Wuhuan")
|
||||
|
||||
for item_id in ["bronze_sword", "training_spear", "short_bow", "hand_axe", "iron_armor", "panacea"]:
|
||||
var item := state.get_item_def(item_id)
|
||||
|
||||
Reference in New Issue
Block a user