gros dev pre proto

* Changement de l'UI, ajouts de l'inspecteur par carte et changement de police
* Ajout d'un semblant d'exploration
* Ajout de la sauvegarde des entités
* Restructuration mineure de l'arborescence
* Fix divers et réécriture des textes
This commit is contained in:
2025-10-31 13:52:45 +01:00
parent ceae7af589
commit ed7a8bcb6e
167 changed files with 2665 additions and 1201 deletions

View File

@@ -10,25 +10,9 @@ var completed : bool = false
func pointer_text() -> String:
return "Contamination Objective"
func inspector_info() -> Inspector.Info:
var info : Inspector.Info = Inspector.Info.new(
pointer_text(),
"This dead branch can hide a treasure of life."
)
info.framed_infos.append(
Inspector.FramedInfo.new(
"When decontamined",
reward.get_description(),
DECONTAMINATION_ICON
)
)
return info
func _end_pass_day():
if planet and not completed:
if not planet.is_there_contamination(global_position):
if not planet.garden.is_there_contamination(global_position):
reward.reward(self)
%AnimationPlayer.play("activate")
completed = true

View File

@@ -1,20 +0,0 @@
extends ObjectiveReward
class_name IncreaseDayLimitReward
@export var day_limit_increase = 5
func _init(_day_limit_increase : int):
day_limit_increase = _day_limit_increase
func reward(objective : Objective):
if objective.planet:
objective.planet.day_limit += day_limit_increase
func get_icon() -> Texture:
return preload("res://common/icons/hourglass-empty.svg")
func get_text() -> String:
return "+"+str(day_limit_increase)
func get_description() -> String:
return "Increase the day limitation by " + str(day_limit_increase) + "."

View File

@@ -1 +0,0 @@
uid://df6i1hivw4ymn

View File

@@ -15,7 +15,7 @@ func get_text() -> String:
return ""
func get_description() -> String:
return "Loot the following item: " + item.name + "."
return "Loot the following item: [b]%s[/b]. %s" % [item.name, item.description]
func reward(objective : Objective):
objective.terrain.drop_item(