Quest generating + quest adding interface + some bugfixes

This commit is contained in:
gotfishmakesticks 2023-11-16 16:46:31 +03:00
commit f4cf1ef4e9
7 changed files with 71 additions and 20 deletions

View file

@ -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()