Clarify attack preview badge wording
This commit is contained in:
@@ -9167,7 +9167,7 @@ func _attack_target_preview_badge(selected: Dictionary, target: Dictionary) -> D
|
||||
return _make_target_preview_badge("거리밖", "invalid")
|
||||
|
||||
var hit_chance := int(preview.get("hit_chance", 100))
|
||||
var result_text := "퇴각" if bool(preview.get("would_defeat", false)) else "-%d" % int(preview.get("damage", 0))
|
||||
var result_text := _format_attack_result_badge_text(preview)
|
||||
var directional_text := _format_directional_badge_suffix(preview)
|
||||
var counter_text := _format_attack_counter_badge_suffix(preview)
|
||||
var badge := _make_target_preview_badge("%s%s %d%%%s" % [result_text, directional_text, hit_chance, counter_text], _attack_preview_badge_kind(preview))
|
||||
@@ -9175,6 +9175,12 @@ func _attack_target_preview_badge(selected: Dictionary, target: Dictionary) -> D
|
||||
return badge
|
||||
|
||||
|
||||
func _format_attack_result_badge_text(preview: Dictionary) -> String:
|
||||
if bool(preview.get("would_defeat", false)):
|
||||
return "퇴각"
|
||||
return "피해%d" % int(preview.get("damage", 0))
|
||||
|
||||
|
||||
func _format_directional_badge_suffix(preview: Dictionary) -> String:
|
||||
var bonus := int(preview.get("directional_bonus", 0))
|
||||
if bonus <= 0:
|
||||
@@ -9244,12 +9250,11 @@ func _auto_attack_target_preview_badge_for_origin(selected: Dictionary, target:
|
||||
|
||||
|
||||
func _format_auto_attack_target_badge_text(preview: Dictionary) -> String:
|
||||
var damage := int(preview.get("damage", 0))
|
||||
var hit_chance := int(preview.get("hit_chance", 0))
|
||||
var result_text := "퇴각" if bool(preview.get("would_defeat", false)) else "-%d" % damage
|
||||
var result_text := _format_attack_result_badge_text(preview)
|
||||
var directional_text := _format_directional_badge_suffix(preview)
|
||||
var counter_text := _format_auto_attack_counter_badge_suffix(preview)
|
||||
return "이동 %s%s %d%%%s" % [result_text, directional_text, hit_chance, counter_text]
|
||||
return "진격 %s%s %d%%%s" % [result_text, directional_text, hit_chance, counter_text]
|
||||
|
||||
|
||||
func _format_auto_attack_target_hint(preview: Dictionary) -> String:
|
||||
|
||||
Reference in New Issue
Block a user