fix: apply final dark fantasy HUD polish
This commit is contained in:
@@ -14,7 +14,7 @@ func test_configured_input_event_uses_the_same_action_path_as_submit_test_action
|
||||
var input_event := _key_event(KEY_DOWN)
|
||||
game._unhandled_input(input_event)
|
||||
assert_eq(state.player.cell, Vector2i(4, 8))
|
||||
assert_string_contains(game.get_node("HUD/EventLog").get_parsed_text(), "You move to (4, 8).")
|
||||
assert_string_contains(game.get_node("HUD/EventLog").get_parsed_text(), "Vous vous déplacez vers (4, 8).")
|
||||
|
||||
var submitted_game := GameScene.instantiate() as Game
|
||||
add_child_autofree(submitted_game)
|
||||
@@ -32,7 +32,7 @@ func test_real_game_scene_completes_adjacent_bump_combat_and_defeat_route() -> v
|
||||
game._sync_enemy_views()
|
||||
var hud := game.get_node("HUD") as GameHud
|
||||
hud.refresh(state, [], game.get_run_state())
|
||||
assert_eq(hud.combat_summary, "Target: Goblin HP: 6/6")
|
||||
assert_eq(hud.combat_summary, "Gobelin — PV : 6/6")
|
||||
|
||||
var first_melee := game.submit_test_action(Vector2i.RIGHT)
|
||||
assert_eq(first_melee[0].kind, &"melee")
|
||||
@@ -45,7 +45,7 @@ func test_real_game_scene_completes_adjacent_bump_combat_and_defeat_route() -> v
|
||||
assert_eq(lethal_melee[0].kind, &"melee")
|
||||
assert_eq(lethal_melee[1].kind, &"enemy_defeated")
|
||||
assert_false(state.enemies.has(&"goblin"))
|
||||
assert_eq(hud.combat_summary, "No active target")
|
||||
assert_eq(hud.combat_summary, "Aucune cible active")
|
||||
|
||||
func _key_event(keycode: Key) -> InputEventKey:
|
||||
var event := InputEventKey.new()
|
||||
|
||||
Reference in New Issue
Block a user