61 lines
1.9 KiB
GDScript
61 lines
1.9 KiB
GDScript
extends Quest
|
|
|
|
func _init():
|
|
questName = "Filling Juice Lake"
|
|
questScale = Quest.Scales.Adventurous
|
|
questPointReward = 3
|
|
|
|
func get_progress_report():
|
|
var result = ""
|
|
|
|
if not SaveManager.get_save_value("refillQuestStarted", false):
|
|
return "Speak to the Largest Jonald"
|
|
|
|
if SaveManager.get_save_value("refillQuestComplete", false):
|
|
return "QUEST COMPLETE!
|
|
I unlocked the wisdom within.
|
|
I met with the Juice Consultant Jonald.
|
|
I got the Ultimate Juice.
|
|
I refilled Juice Lake."
|
|
elif SaveManager.get_save_value("juiceLakeRefilled", false):
|
|
return "Someone near Juice Lake wants to speak to me."
|
|
|
|
if SaveManager.get_save_value("juiceKnowledgeObtained", false):
|
|
result += "I ate the Brass Key and spoke the wisdom:
|
|
\"Upon a circle ever spinning. I must board a creature ever buzzing. Upon them I must shout with glee: Yippee!\""
|
|
else:
|
|
result += "I somehow need to find the Juice Consultant Jonald. The Largest Jonald said I must unlock the solution within. They gave me an Empty Key Packet."
|
|
|
|
if SaveManager.get_save_value("juiceJonaldMet", false):
|
|
result = "I met the Juice Consultant Jonald by saying \"Yippee!\" while riding the Bee Box of the Ferris Wheel.
|
|
I need 1 Banana Juice, 1 Iron Ingot Juice, and 1 Silica Gel Juice to make the Ultimate Juice.
|
|
They can tell me where to get Silica Gel."
|
|
|
|
return result
|
|
|
|
func get_completion_message():
|
|
return "Rewards
|
|
360 Juice Drinking XP
|
|
230 Swimming XP
|
|
110 Experiencing XP
|
|
3 Quest Points"
|
|
|
|
func get_requirements_report():
|
|
return "Requirements
|
|
Drinking Juice Lake
|
|
The Trials of Jonald
|
|
Level 30 Juice Drinking
|
|
Level 28 Experiencing
|
|
Level 25 Swimming"
|
|
|
|
func complete():
|
|
SaveManager.set_save_value("refillQuestComplete", true)
|
|
LevelManager.add_XP("juiceDrinking", 3600)
|
|
LevelManager.add_XP("swimming", 2300)
|
|
LevelManager.add_XP("appreciating", 1100)
|
|
|
|
func is_completed():
|
|
if SaveManager.get_save_value("refillQuestComplete", false):
|
|
return true
|
|
return false
|