* changements des objectifs, donnent juste des graines, sprite moins gros et objectifs plus nombreux * changement de la probabilité de mutation * refactor du code terrain et planet
20 lines
531 B
GDScript
20 lines
531 B
GDScript
extends ObjectiveReward
|
|
class_name UpgradePlayerInventorySizeReward
|
|
|
|
@export var upgrade_amount = 1
|
|
|
|
func _init(_upgrade_amount : int = 1):
|
|
upgrade_amount = _upgrade_amount
|
|
|
|
func reward(objective : Objective):
|
|
objective.terrain.player.upgrade_inventory_size(upgrade_amount)
|
|
|
|
func get_icon() -> Texture:
|
|
return preload("res://common/icons/backpack.svg")
|
|
|
|
func get_text() -> String:
|
|
return "+"+str(upgrade_amount)+" max"
|
|
|
|
func get_description() -> String:
|
|
return "Increase player inventory size by " + str(upgrade_amount) + "."
|