17 lines
370 B
GDScript
17 lines
370 B
GDScript
class_name QuestNeedSomeSeeds
|
|
extends QuestBase
|
|
|
|
@export var is_seeds_found:bool = false
|
|
@export var is_seeds_delivered:bool = false
|
|
|
|
func _process(_delta):
|
|
if is_completed:
|
|
return
|
|
|
|
var seeds_item:ItemResource = load("res://data/items/seeds.tres")
|
|
if _player.inventory.has_all([seeds_item]):
|
|
is_seeds_found = true
|
|
|
|
if is_seeds_delivered:
|
|
is_completed = true
|