ajout de la traduction #70
* Fix de l'inspection de l'inventaire * Suppression des assets d'objectifs
This commit is contained in:
@@ -61,7 +61,7 @@ class TakeShovelStep extends Step:
|
||||
func generate_indicators(_p: Player, planet : Planet) -> Array[InGameIndicator]:
|
||||
for entity in planet.entity_container.get_children():
|
||||
if entity is ItemObject and entity.item is Shovel:
|
||||
var indicator = generate_indicator("Take the Shovel")
|
||||
var indicator = generate_indicator(tr("TAKE_THE_SHOVEL"))
|
||||
indicator.follow_entity(entity)
|
||||
return [
|
||||
indicator
|
||||
@@ -88,7 +88,7 @@ class DigLootStep extends Step:
|
||||
closest_loot = entity
|
||||
|
||||
if closest_loot:
|
||||
var indicator = generate_indicator("Dig Underground Loot")
|
||||
var indicator = generate_indicator(tr("DIG_UNDERGROUND_LOOT"))
|
||||
indicator.follow_entity(closest_loot)
|
||||
return [indicator]
|
||||
return []
|
||||
@@ -104,7 +104,7 @@ class TakeSeedStep extends Step:
|
||||
var indicators : Array[InGameIndicator] = []
|
||||
for entity in planet.entity_container.get_children():
|
||||
if entity is ItemObject and entity.item is Seed:
|
||||
var indicator = generate_indicator("Take a seed")
|
||||
var indicator = generate_indicator(tr("TAKE_A_SEED"))
|
||||
indicator.follow_entity(entity)
|
||||
indicators.append(
|
||||
indicator
|
||||
@@ -119,7 +119,7 @@ class TakeSeedStep extends Step:
|
||||
|
||||
class PlantSeedStep extends Step:
|
||||
func generate_indicators(_p: Player, planet : Planet) -> Array[InGameIndicator]:
|
||||
var indicator = generate_indicator("Plant the seed in decontamined zone")
|
||||
var indicator = generate_indicator(tr("PLANT_THE_SEED_IN_DECONTAMINED_ZONE"))
|
||||
indicator.follow_game_position(Vector2(0,0) + planet.entity_container.global_position)
|
||||
return [indicator]
|
||||
|
||||
@@ -132,7 +132,7 @@ class PlantSeedStep extends Step:
|
||||
class RechargeStep extends Step:
|
||||
func generate_indicators(_p: Player, planet : Planet) -> Array[InGameIndicator]:
|
||||
for entity in planet.entity_container.get_children():
|
||||
var indicator = generate_indicator("Recharge to pass days")
|
||||
var indicator = generate_indicator(tr("RECHARGE_TO_PASS_DAYS"))
|
||||
indicator.follow_entity(entity)
|
||||
if entity is TruckRecharge:
|
||||
return [
|
||||
@@ -166,7 +166,7 @@ class HarvestMaturePlant extends Step:
|
||||
var indicators : Array[InGameIndicator] = []
|
||||
for entity in planet.entity_container.get_children():
|
||||
if entity is Plant and entity.state == Plant.State.MATURE:
|
||||
var indicator = generate_indicator("Harvest mature plants with shovel")
|
||||
var indicator = generate_indicator(tr("HARVEST_MATURE_PLANTS_WITH_SHOVEL"))
|
||||
indicator.follow_entity(entity)
|
||||
indicators.append(
|
||||
indicator
|
||||
|
||||
Reference in New Issue
Block a user