Quest generating + quest adding interface + some bugfixes
This commit is contained in:
parent
008e74eba3
commit
f4cf1ef4e9
7 changed files with 71 additions and 20 deletions
|
|
@ -26,16 +26,17 @@ func create(type : TYPE, progress_max : int, reward_money : float, restrictions
|
|||
|
||||
func do_progress() -> void:
|
||||
progress += 1
|
||||
print("sheesh")
|
||||
if progress >= progress_max:
|
||||
quest_ended.emit(true)
|
||||
|
||||
func fail() -> void:
|
||||
quest_failed.emit(false)
|
||||
|
||||
func _restriction_no_deaths():
|
||||
func _restriction_no_deaths() -> void:
|
||||
if restrictions.has(RESTRICTIONS.NO_DEATHS):
|
||||
fail()
|
||||
|
||||
func _restriction_no_weapon():
|
||||
func _restriction_no_weapon() -> void:
|
||||
if restrictions.has(RESTRICTIONS.NO_WEAPON):
|
||||
fail()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue