69 lines
2.4 KiB
GDScript
69 lines
2.4 KiB
GDScript
extends Quest
|
|
|
|
func _init():
|
|
questName = "The Trials of Jonald"
|
|
questScale = Quest.Scales.Moderate
|
|
questPointReward = 2
|
|
|
|
func get_progress_report():
|
|
var resultText = ""
|
|
|
|
if not SaveManager.get_save_value("jonaldGardeningSectionStarted", false) and not SaveManager.get_save_value("jonaldJuiceSectionStarted", false):
|
|
return "Talk to the Jonalds in the Forest"
|
|
|
|
if SaveManager.get_save_value("jonaldTrialsQuestComplete", false):
|
|
return "QUEST COMPLETE!
|
|
I drank the Ash Juice and planted the Evidence.
|
|
I learned the Titanic Truth."
|
|
|
|
if not SaveManager.get_save_value("jonaldGardeningSectionStarted", false):
|
|
resultText += "I need to talk to the southern Jonald in the Forest"
|
|
elif not SaveManager.get_save_value("jonaldGardeningSectionCompleted", false):
|
|
resultText += "The southern Jonald told me to plant Evidence in the Pigeon Grove and report back."
|
|
if SaveManager.get_save_value("jonaldPigeonEvidencePlanted", false):
|
|
resultText += " I have planted the Evidence."
|
|
else:
|
|
resultText += " Jonald said to find the grove I should follow the Sunflower Seeds."
|
|
else:
|
|
resultText += "The southern Jonald told me to plant some Evidence and I did."
|
|
|
|
if resultText != "":
|
|
resultText += "\n"
|
|
|
|
if not SaveManager.get_save_value("jonaldJuiceSectionStarted", false):
|
|
resultText += "I need to talk to the northern Jonald in the Forest"
|
|
elif not SaveManager.get_save_value("jonaldJuiceSectionCompleted", false):
|
|
resultText += "The northern Jonald told me to drink Ash Juice and report back."
|
|
if SaveManager.get_value_from_section("drank", "Ash Juice", 0) > 0:
|
|
resultText += " I drank Ash Juice."
|
|
else:
|
|
resultText += "The northern Jonald told me to drink Ash Juice and I did."
|
|
|
|
if resultText != "":
|
|
resultText += "\n"
|
|
|
|
if SaveManager.get_save_value("jonaldGardeningSectionCompleted", false) and SaveManager.get_save_value("jonaldJuiceSectionCompleted", false):
|
|
resultText += "I need to complete the central Jonald's task"
|
|
|
|
return resultText
|
|
|
|
func get_completion_message():
|
|
return "Rewards
|
|
100 Juice Drinking XP
|
|
100 Gardening XP
|
|
2 Quest Points"
|
|
|
|
func get_requirements_report():
|
|
return "Requirements
|
|
Level 20 Juice Drinking
|
|
Level 20 Gardening"
|
|
|
|
func complete():
|
|
LevelManager.add_XP("juiceDrinking", 1000)
|
|
LevelManager.add_XP("gardening", 1000)
|
|
|
|
func is_completed():
|
|
if SaveManager.get_save_value("jonaldTrialsQuestComplete", false):
|
|
return true
|
|
return false
|