Skip to content

Commit cf83369

Browse files
committed
Fix duplicate texts.csv ids
1 parent 24e190f commit cf83369

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/actions/action_research_element.gd

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static func verify(player: Player, element: Element.enm) -> bool:
3333
var can_afford_research: bool = player.can_afford_research(element)
3434

3535
if !can_afford_research:
36-
Utils.add_ui_error(player, Utils.tr("MESSAGE_NOT_ENOUGH_TOMES"))
36+
Utils.add_ui_error(player, Utils.tr("MESSAGE_NOT_ENOUGH_TOMES_FOR_RESEARCH"))
3737

3838
return false
3939

src/game_scene/build_tower.gd

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static func add_error_about_tower_only_gold_and_tomes(tower_id: int, player: Pla
120120
if !enough_gold:
121121
Utils.add_ui_error(player, Utils.tr("MESSAGE_NOT_ENOUGH_GOLD"))
122122
elif !enough_tomes:
123-
Utils.add_ui_error(player, Utils.tr("MESSAGE_NOT_ENOUGH_TOMES"))
123+
Utils.add_ui_error(player, Utils.tr("MESSAGE_NOT_ENOUGH_TOMES_FOR_BUILD"))
124124

125125

126126
static func add_error_about_building_tower(tower_id: int, player: Player, preceding_tower_id: int = -1):
@@ -131,7 +131,7 @@ static func add_error_about_building_tower(tower_id: int, player: Player, preced
131131
if !enough_gold:
132132
Utils.add_ui_error(player, Utils.tr("MESSAGE_NOT_ENOUGH_GOLD"))
133133
elif !enough_tomes:
134-
Utils.add_ui_error(player, Utils.tr("MESSAGE_NOT_ENOUGH_TOMES"))
134+
Utils.add_ui_error(player, Utils.tr("MESSAGE_NOT_ENOUGH_TOMES_FOR_BUILD"))
135135
elif !enough_food:
136136
Utils.add_ui_error(player, Utils.tr("MESSAGE_NOT_ENOUGH_FOOD"))
137137

0 commit comments

Comments
 (0)