Add Xian escort camp content
This commit is contained in:
@@ -301,6 +301,64 @@ func _check_battle_visual_data(failures: Array[String]) -> void:
|
||||
_check_shop_item_visibility(failures, dingtao_pressed_state, "iron_armor", false, "006 pressed")
|
||||
_check_shop_item_visibility(failures, dingtao_pressed_state, "war_drum", true, "006 pressed")
|
||||
|
||||
var xian_state = BattleStateScript.new()
|
||||
if not xian_state.load_battle("res://data/scenarios/007_xian_emperor_escort.json"):
|
||||
failures.append("could not load Xian Emperor Escort camp data")
|
||||
else:
|
||||
var xian_conversations: Array = xian_state.get_briefing().get("camp_conversations", [])
|
||||
if xian_conversations.size() != 2:
|
||||
failures.append("007 base briefing should expose exactly two camp conversations")
|
||||
else:
|
||||
_check_camp_conversation(failures, xian_conversations[0], "xian_escort_council", "officer", "cao_cao")
|
||||
_check_camp_conversation(failures, xian_conversations[1], "xian_dian_wei_envoy_screen", "officer", "dian_wei")
|
||||
var xian_merchant := xian_state.get_shop_merchant()
|
||||
if str(xian_merchant.get("name", "")) != "Escort Road Sutler":
|
||||
failures.append("007 shop should expose escort merchant name")
|
||||
if (xian_merchant.get("lines", []) as Array).size() < 2:
|
||||
failures.append("007 shop should expose merchant flavor lines")
|
||||
_check_shop_item_visibility(failures, xian_state, "iron_armor", false, "007 base")
|
||||
_check_shop_item_visibility(failures, xian_state, "war_axe", false, "007 base")
|
||||
|
||||
var xian_fortified_state = BattleStateScript.new()
|
||||
if not xian_fortified_state.load_battle("res://data/scenarios/007_xian_emperor_escort.json", {}, {}, {"fortified_yan_province": true}):
|
||||
failures.append("could not load Xian fortified camp data")
|
||||
else:
|
||||
var road_supplies: Dictionary = _find_camp_conversation(
|
||||
xian_fortified_state.get_briefing().get("camp_conversations", []),
|
||||
"xian_fortified_road_supplies"
|
||||
)
|
||||
if road_supplies.is_empty():
|
||||
failures.append("007 fortified flag should expose fortified road supplies conversation")
|
||||
else:
|
||||
_check_camp_conversation_effect(failures, road_supplies, "bean", 1)
|
||||
if not _find_camp_conversation(
|
||||
xian_fortified_state.get_briefing().get("camp_conversations", []),
|
||||
"xian_forced_march_canteens"
|
||||
).is_empty():
|
||||
failures.append("007 fortified flag should not expose forced march canteens conversation")
|
||||
_check_shop_item_visibility(failures, xian_fortified_state, "iron_armor", true, "007 fortified")
|
||||
_check_shop_item_visibility(failures, xian_fortified_state, "war_axe", false, "007 fortified")
|
||||
|
||||
var xian_pressed_state = BattleStateScript.new()
|
||||
if not xian_pressed_state.load_battle("res://data/scenarios/007_xian_emperor_escort.json", {}, {}, {"pressed_lu_bu": true}):
|
||||
failures.append("could not load Xian pressed camp data")
|
||||
else:
|
||||
var canteens: Dictionary = _find_camp_conversation(
|
||||
xian_pressed_state.get_briefing().get("camp_conversations", []),
|
||||
"xian_forced_march_canteens"
|
||||
)
|
||||
if canteens.is_empty():
|
||||
failures.append("007 pressed flag should expose forced march canteens conversation")
|
||||
else:
|
||||
_check_camp_conversation_effect(failures, canteens, "wine", 1)
|
||||
if not _find_camp_conversation(
|
||||
xian_pressed_state.get_briefing().get("camp_conversations", []),
|
||||
"xian_fortified_road_supplies"
|
||||
).is_empty():
|
||||
failures.append("007 pressed flag should not expose fortified road supplies conversation")
|
||||
_check_shop_item_visibility(failures, xian_pressed_state, "iron_armor", false, "007 pressed")
|
||||
_check_shop_item_visibility(failures, xian_pressed_state, "war_axe", true, "007 pressed")
|
||||
|
||||
for item_id in ["bronze_sword", "training_spear", "short_bow", "hand_axe", "iron_armor", "panacea"]:
|
||||
var item := state.get_item_def(item_id)
|
||||
if item.is_empty():
|
||||
|
||||
Reference in New Issue
Block a user