TinyAdventure/quests/mage_missing_seeds.gd

17 lines
370 B
GDScript
Raw Normal View History

2024-11-01 18:07:23 +01:00
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