Add Red Cliffs fleet camp and fire bridge
This commit is contained in:
@@ -1908,6 +1908,17 @@ func _check_battle_visual_data(failures: Array[String]) -> void:
|
||||
failures.append("could not load Red Cliffs Fleet data")
|
||||
else:
|
||||
_check_shop_items_unique(failures, red_cliffs_state, "029 base")
|
||||
var red_cliffs_conversations: Array = red_cliffs_state.get_briefing().get("camp_conversations", [])
|
||||
if red_cliffs_conversations.size() != 2:
|
||||
failures.append("029 base briefing should expose exactly two camp conversations")
|
||||
else:
|
||||
_check_camp_conversation(failures, red_cliffs_conversations[0], "red_cliffs_fleet_council", "topic", "")
|
||||
_check_camp_conversation(failures, red_cliffs_conversations[1], "red_cliffs_zhang_he_chain_line", "officer", "zhang_he")
|
||||
var red_cliffs_merchant := red_cliffs_state.get_shop_merchant()
|
||||
if str(red_cliffs_merchant.get("name", "")) != "Red Cliffs Deck Sutler":
|
||||
failures.append("029 shop should expose Red Cliffs Deck merchant name")
|
||||
if (red_cliffs_merchant.get("lines", []) as Array).size() < 2:
|
||||
failures.append("029 shop should expose merchant flavor lines")
|
||||
if red_cliffs_state.get_unit("zhang_he_ch29").is_empty() or not red_cliffs_state.is_required_deployment("zhang_he_ch29"):
|
||||
failures.append("029 should deploy Zhang He as a required officer")
|
||||
_check_shop_item_visibility(failures, red_cliffs_state, "war_drum", false, "029 base")
|
||||
@@ -1917,6 +1928,19 @@ func _check_battle_visual_data(failures: Array[String]) -> void:
|
||||
if not red_cliffs_pressed_state.load_battle("res://data/scenarios/029_red_cliffs_fleet.json", {}, {}, {"pressed_red_cliffs_fleet": true}, ["zhang_he"]):
|
||||
failures.append("could not load Red Cliffs pressed fleet data")
|
||||
else:
|
||||
var forward_beans: Dictionary = _find_camp_conversation(
|
||||
red_cliffs_pressed_state.get_briefing().get("camp_conversations", []),
|
||||
"red_cliffs_forward_deck_beans"
|
||||
)
|
||||
if forward_beans.is_empty():
|
||||
failures.append("029 pressed Red Cliffs fleet should expose forward deck beans")
|
||||
else:
|
||||
_check_camp_conversation_effect(failures, forward_beans, "bean", 1)
|
||||
if not _find_camp_conversation(
|
||||
red_cliffs_pressed_state.get_briefing().get("camp_conversations", []),
|
||||
"red_cliffs_harbor_medicine"
|
||||
).is_empty():
|
||||
failures.append("029 pressed Red Cliffs fleet should not expose harbor medicine")
|
||||
_check_shop_item_visibility(failures, red_cliffs_pressed_state, "war_drum", true, "029 pressed Red Cliffs fleet")
|
||||
_check_shop_item_visibility(failures, red_cliffs_pressed_state, "imperial_seal", false, "029 pressed Red Cliffs fleet")
|
||||
|
||||
@@ -1924,6 +1948,19 @@ func _check_battle_visual_data(failures: Array[String]) -> void:
|
||||
if not red_cliffs_harbor_state.load_battle("res://data/scenarios/029_red_cliffs_fleet.json", {}, {}, {"secured_xiakou_harbor": true}, ["zhang_he"]):
|
||||
failures.append("could not load Red Cliffs secured Xiakou harbor data")
|
||||
else:
|
||||
var harbor_medicine: Dictionary = _find_camp_conversation(
|
||||
red_cliffs_harbor_state.get_briefing().get("camp_conversations", []),
|
||||
"red_cliffs_harbor_medicine"
|
||||
)
|
||||
if harbor_medicine.is_empty():
|
||||
failures.append("029 secured Xiakou harbor should expose harbor medicine")
|
||||
else:
|
||||
_check_camp_conversation_effect(failures, harbor_medicine, "panacea", 1)
|
||||
if not _find_camp_conversation(
|
||||
red_cliffs_harbor_state.get_briefing().get("camp_conversations", []),
|
||||
"red_cliffs_forward_deck_beans"
|
||||
).is_empty():
|
||||
failures.append("029 secured Xiakou harbor should not expose forward deck beans")
|
||||
_check_shop_item_visibility(failures, red_cliffs_harbor_state, "imperial_seal", true, "029 secured Xiakou harbor")
|
||||
_check_shop_item_visibility(failures, red_cliffs_harbor_state, "war_drum", false, "029 secured Xiakou harbor")
|
||||
|
||||
@@ -1934,6 +1971,48 @@ func _check_battle_visual_data(failures: Array[String]) -> void:
|
||||
_check_shop_items_unique(failures, red_cliffs_old_flags_state, "029 old Xiakou setup flags")
|
||||
_check_shop_item_visibility(failures, red_cliffs_old_flags_state, "war_drum", false, "029 old Xiakou setup flags")
|
||||
_check_shop_item_visibility(failures, red_cliffs_old_flags_state, "imperial_seal", false, "029 old Xiakou setup flags")
|
||||
if not _find_camp_conversation(
|
||||
red_cliffs_old_flags_state.get_briefing().get("camp_conversations", []),
|
||||
"red_cliffs_forward_deck_beans"
|
||||
).is_empty():
|
||||
failures.append("029 old Xiakou setup flags should not expose forward deck beans")
|
||||
if not _find_camp_conversation(
|
||||
red_cliffs_old_flags_state.get_briefing().get("camp_conversations", []),
|
||||
"red_cliffs_harbor_medicine"
|
||||
).is_empty():
|
||||
failures.append("029 old Xiakou setup flags should not expose harbor medicine")
|
||||
|
||||
var red_fire_state = BattleStateScript.new()
|
||||
if not red_fire_state.load_battle("res://data/scenarios/030_red_cliffs_fire.json", {}, {}, {}, ["zhang_he"]):
|
||||
failures.append("could not load Red Cliffs Fire data")
|
||||
else:
|
||||
_check_shop_items_unique(failures, red_fire_state, "030 base")
|
||||
if red_fire_state.get_unit("zhang_he_ch30").is_empty() or not red_fire_state.is_required_deployment("zhang_he_ch30"):
|
||||
failures.append("030 should deploy Zhang He as a required officer")
|
||||
_check_shop_item_visibility(failures, red_fire_state, "war_drum", false, "030 base")
|
||||
_check_shop_item_visibility(failures, red_fire_state, "imperial_seal", false, "030 base")
|
||||
|
||||
var red_fire_chain_state = BattleStateScript.new()
|
||||
if not red_fire_chain_state.load_battle("res://data/scenarios/030_red_cliffs_fire.json", {}, {}, {"reinforced_chain_line": true}, ["zhang_he"]):
|
||||
failures.append("could not load Red Cliffs Fire reinforced chain data")
|
||||
else:
|
||||
_check_shop_item_visibility(failures, red_fire_chain_state, "imperial_seal", true, "030 reinforced chain")
|
||||
_check_shop_item_visibility(failures, red_fire_chain_state, "war_drum", false, "030 reinforced chain")
|
||||
|
||||
var red_fire_raid_state = BattleStateScript.new()
|
||||
if not red_fire_raid_state.load_battle("res://data/scenarios/030_red_cliffs_fire.json", {}, {}, {"ordered_night_raid": true}, ["zhang_he"]):
|
||||
failures.append("could not load Red Cliffs Fire night raid data")
|
||||
else:
|
||||
_check_shop_item_visibility(failures, red_fire_raid_state, "war_drum", true, "030 ordered night raid")
|
||||
_check_shop_item_visibility(failures, red_fire_raid_state, "imperial_seal", false, "030 ordered night raid")
|
||||
|
||||
var red_fire_old_flags_state = BattleStateScript.new()
|
||||
if not red_fire_old_flags_state.load_battle("res://data/scenarios/030_red_cliffs_fire.json", {}, {}, {"pressed_red_cliffs_fleet": true, "secured_xiakou_harbor": true}, ["zhang_he"]):
|
||||
failures.append("could not load Red Cliffs Fire old fleet setup flag data")
|
||||
else:
|
||||
_check_shop_items_unique(failures, red_fire_old_flags_state, "030 old Red Cliffs setup flags")
|
||||
_check_shop_item_visibility(failures, red_fire_old_flags_state, "war_drum", false, "030 old Red Cliffs setup flags")
|
||||
_check_shop_item_visibility(failures, red_fire_old_flags_state, "imperial_seal", false, "030 old Red Cliffs 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)
|
||||
|
||||
Reference in New Issue
Block a user