extends InspectableEntity class_name Objective const RANDOM_MAX_OBJECTIVE_INTERVAL = 1. const DECONTAMINATION_ICON = preload("res://common/icons/skull.svg") var completed : bool = false @export var reward : ObjectiveReward = null func pointer_text() -> String: return "Contamination Objective" func _end_pass_day(): if planet and not completed: if not planet.garden.is_there_contamination(global_position): reward.reward(self) %AnimationPlayer.play("activate") completed = true