20 lines
517 B
GDScript
20 lines
517 B
GDScript
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):
|
|
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)
|