ajout de la traduction #70
* Fix de l'inspection de l'inventaire * Suppression des assets d'objectifs
This commit is contained in:
@@ -11,10 +11,10 @@ const SCORE_ICON = preload("res://common/icons/growth.svg")
|
||||
@export var plant_mutations: Array[PlantMutation]
|
||||
|
||||
func get_item_name() -> String:
|
||||
return "%s Seed" % plant_type.name
|
||||
return tr("%s_SEED") % plant_type.name
|
||||
|
||||
func get_description() -> String:
|
||||
return "Plant [b]%s[/b]. Must be used in decontamined zone." % plant_type.name
|
||||
return tr("PLANT_%s_MUST_BE_USED_IN_DECONTAMINATED_ZONE") % plant_type.name
|
||||
|
||||
func get_icon() -> Texture2D:
|
||||
return plant_type.seed_texture
|
||||
@@ -23,7 +23,7 @@ func get_energy_used() -> int:
|
||||
return 1
|
||||
|
||||
func get_usage_zone_radius() -> int:
|
||||
return 40
|
||||
return 35
|
||||
|
||||
func get_usage_object_affected(i : InspectableEntity) -> bool:
|
||||
return i is Plant
|
||||
@@ -36,7 +36,7 @@ func _init(
|
||||
plant_mutations = Seed.mutate(_parent_mutation)
|
||||
|
||||
func use_text() -> String:
|
||||
return "Plant " + plant_type.name
|
||||
return tr("PLANT_%s") % plant_type.name
|
||||
|
||||
func is_one_time_use():
|
||||
return true
|
||||
@@ -80,7 +80,7 @@ func card_info() -> CardInfo:
|
||||
|
||||
info.stats.append(
|
||||
CardStatInfo.new(
|
||||
"Cost %d energy" % energy_usage,
|
||||
tr("COST_%d_ENERGY") % energy_usage,
|
||||
ENERGY_ICON
|
||||
)
|
||||
)
|
||||
@@ -88,13 +88,13 @@ func card_info() -> CardInfo:
|
||||
if is_one_time_use():
|
||||
info.stats.append(
|
||||
CardStatInfo.new(
|
||||
"One time use",
|
||||
tr("ONE_TIME_USE"),
|
||||
ONE_TIME_ICON
|
||||
)
|
||||
)
|
||||
|
||||
var effect_section = CardSectionInfo.new(
|
||||
"Effect",
|
||||
tr("EFFECT"),
|
||||
get_description()
|
||||
)
|
||||
effect_section.title_icon = ACTION_ICON
|
||||
|
||||
Reference in New Issue
Block a user