Quest system done

This commit is contained in:
2ndbeam 2024-06-08 13:21:45 +03:00
commit 231ff2bb1d
10 changed files with 52 additions and 9 deletions

View file

@ -40,8 +40,12 @@ enum Status{
@export var progress_max : int = 1
var progress : int = 0:
set(value):
if value >= progress_max:
end()
if status == Status.Taken:
if value >= progress_max:
progress = progress_max
end()
else:
progress = value
@export var reward_money : float
@export var restrictions : Array[Restriction] = []
@export var data : Dictionary = {}