Add Puyang raid camp content
This commit is contained in:
@@ -189,6 +189,60 @@ func _check_battle_visual_data(failures: Array[String]) -> void:
|
||||
).is_empty():
|
||||
failures.append("004 regroup flag should not expose hardened veterans conversation")
|
||||
|
||||
var puyang_state = BattleStateScript.new()
|
||||
if not puyang_state.load_battle("res://data/scenarios/005_puyang_raid.json"):
|
||||
failures.append("could not load Puyang Raid camp data")
|
||||
else:
|
||||
var puyang_conversations: Array = puyang_state.get_briefing().get("camp_conversations", [])
|
||||
if puyang_conversations.size() != 3:
|
||||
failures.append("005 base briefing should expose exactly three camp conversations")
|
||||
else:
|
||||
_check_camp_conversation(failures, puyang_conversations[0], "puyang_night_raid_council", "officer", "cao_cao")
|
||||
_check_camp_conversation(failures, puyang_conversations[1], "puyang_dian_wei_shield", "officer", "dian_wei")
|
||||
_check_camp_conversation(failures, puyang_conversations[2], "puyang_raider_stores", "topic", "")
|
||||
_check_camp_conversation_effect(failures, puyang_conversations[2], "bean", 1)
|
||||
var puyang_merchant := puyang_state.get_shop_merchant()
|
||||
if str(puyang_merchant.get("name", "")) != "Puyang Night Trader":
|
||||
failures.append("005 shop should expose Puyang merchant name")
|
||||
if (puyang_merchant.get("lines", []) as Array).size() < 2:
|
||||
failures.append("005 shop should expose merchant flavor lines")
|
||||
|
||||
var puyang_pursuit_state = BattleStateScript.new()
|
||||
if not puyang_pursuit_state.load_battle("res://data/scenarios/005_puyang_raid.json", {}, {}, {"pursued_dong_zhuo": true}):
|
||||
failures.append("could not load Puyang pursuit camp data")
|
||||
else:
|
||||
var vanguard: Dictionary = _find_camp_conversation(
|
||||
puyang_pursuit_state.get_briefing().get("camp_conversations", []),
|
||||
"puyang_hardened_vanguard"
|
||||
)
|
||||
if vanguard.is_empty():
|
||||
failures.append("005 pursuit flag should expose hardened vanguard conversation")
|
||||
else:
|
||||
_check_camp_conversation_effect(failures, vanguard, "wine", 1)
|
||||
if not _find_camp_conversation(
|
||||
puyang_pursuit_state.get_briefing().get("camp_conversations", []),
|
||||
"puyang_qingzhou_reserve_wagon"
|
||||
).is_empty():
|
||||
failures.append("005 pursuit flag should not expose Qingzhou reserve wagon conversation")
|
||||
|
||||
var puyang_regroup_state = BattleStateScript.new()
|
||||
if not puyang_regroup_state.load_battle("res://data/scenarios/005_puyang_raid.json", {}, {}, {"regrouped_after_sishui": true}):
|
||||
failures.append("could not load Puyang regroup camp data")
|
||||
else:
|
||||
var reserve: Dictionary = _find_camp_conversation(
|
||||
puyang_regroup_state.get_briefing().get("camp_conversations", []),
|
||||
"puyang_qingzhou_reserve_wagon"
|
||||
)
|
||||
if reserve.is_empty():
|
||||
failures.append("005 regroup flag should expose Qingzhou reserve wagon conversation")
|
||||
else:
|
||||
_check_camp_conversation_effect(failures, reserve, "panacea", 1)
|
||||
if not _find_camp_conversation(
|
||||
puyang_regroup_state.get_briefing().get("camp_conversations", []),
|
||||
"puyang_hardened_vanguard"
|
||||
).is_empty():
|
||||
failures.append("005 regroup flag should not expose hardened vanguard conversation")
|
||||
|
||||
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