Quest system done
This commit is contained in:
parent
9bff79e019
commit
231ff2bb1d
10 changed files with 52 additions and 9 deletions
|
|
@ -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 = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue