rework l'ui et équilibrage général

This commit is contained in:
2025-11-09 15:56:09 +01:00
parent a8bb09407e
commit 1179e04956
24 changed files with 405 additions and 364 deletions

View File

@@ -5,7 +5,7 @@
[resource]
script = ExtResource("1_ctita")
name = "Solar Pannel"
name = "SOLAR_PANNEL"
scene = ExtResource("1_naexs")
description = "Charge every 2 days. When charged, can be used to recharge player energy."
description = "SOLAR_PANNEL_DESCRIPTION_TEXT"
metadata/_custom_type_script = "uid://bepx311a3f0o"

View File

@@ -14,7 +14,7 @@ func reward(p: Player):
p.pick_item(item)
func desc() -> String:
return tr("GIVE_THE_FOLLOWING_ITEM_%s") % item.name + ". " + item.description
return tr("GIVE_THE_FOLLOWING_ITEM_%s") % tr(item.name) + ". " + tr(item.description)
func icon() -> Texture:
return item.icon

View File

@@ -18,6 +18,9 @@ func get_description() -> String:
return machine_type.description
return ""
func get_energy_used() -> int:
return 0
func get_icon() -> Texture2D:
return preload("res://common/icons/cube-3d-sphere.svg")

View File

@@ -7,7 +7,7 @@ const LOOTED_ITEM_RANDOM_RANGE = 50
@export var item_number : int = 1
func pointer_text() -> String:
return tr("BURIED_LOOT")
return tr("BURIED_SEEDS")
func generate_collision_shape() -> CollisionShape2D:
var collision = CollisionShape2D.new()

View File

@@ -8,8 +8,8 @@ radius = 20.09975
[node name="UndergroundLootSprites" type="Area2D"]
script = ExtResource("1_knus5")
default_info_title = "Buried Seeds"
default_info_desc = "Contain some random seeds. [b]Dig it with a shovel.[/b]"
default_info_title = "BURIED_SEEDS"
default_info_desc = "BURIED_SEEDS_DESC_TEXT"
metadata/_custom_type_script = "uid://d3bk52402ylvl"
[node name="Sprite2D" type="Sprite2D" parent="."]