ajout de la traduction #70
* Fix de l'inspection de l'inventaire * Suppression des assets d'objectifs
This commit is contained in:
@@ -38,7 +38,7 @@ func get_rarity() -> int:
|
||||
func card_section() -> CardSectionInfo:
|
||||
var section = CardSectionInfo.new(
|
||||
get_mutation_name() + (" %d" % level if level > 1 else ""),
|
||||
"[b]%s[/b] %s" % [PlantMutation.get_rarity_text(get_rarity()), get_mutation_description()]
|
||||
"[b]%s[/b] %s" % [tr(PlantMutation.get_rarity_text(get_rarity())), get_mutation_description()]
|
||||
)
|
||||
|
||||
section.title_color = PlantMutation.get_rarity_color(get_rarity())
|
||||
@@ -49,11 +49,11 @@ func card_section() -> CardSectionInfo:
|
||||
|
||||
static func get_rarity_text(rarity) -> String:
|
||||
var rarity_text : Array[String] = [
|
||||
"Common",
|
||||
"Rare",
|
||||
"Very rare",
|
||||
"Impossible",
|
||||
"[rainbow]Absurd[/rainbow]",
|
||||
"COMMON",
|
||||
"RARE",
|
||||
"VERY_RARE",
|
||||
"IMPOSSIBLE",
|
||||
"ABSURD",
|
||||
]
|
||||
|
||||
if rarity < len(rarity_text):
|
||||
|
||||
Reference in New Issue
Block a user