56 lines
1.7 KiB
GDScript
56 lines
1.7 KiB
GDScript
extends Quest
|
|
|
|
const loveNovelItemClass = preload("res://Items/Paper/LoveNovel.gd")
|
|
var loveNovel
|
|
|
|
const loveTomeItemClass = preload("res://Items/Paper/LoveTome.gd")
|
|
var loveTome
|
|
|
|
const damFireStarterClass = preload("res://Items/Artificial/Products/DamFireStarter.gd")
|
|
|
|
func _init():
|
|
questName = "Beaver Love"
|
|
questScale = Quest.Scales.Humble
|
|
questPointReward = 2
|
|
|
|
loveNovel = loveNovelItemClass.new()
|
|
loveTome = loveTomeItemClass.new()
|
|
|
|
func get_progress_report():
|
|
if SaveManager.get_save_value("BeaverLoveQuestComplete", false):
|
|
return "QUEST COMPLETE!
|
|
My Dam withstood the Love Novel
|
|
I delivered the Love Novel
|
|
My Dam withstood the Love Tome
|
|
I delivered the Love Tome
|
|
I learnt how to build Beaver Dams and got an item to help burn them"
|
|
|
|
if InventoryManager.check_if_in_inventory(loveTome):
|
|
return "I delivered a Love Novel to the beaver across the river.
|
|
Now I need to deliver the Love Tome to the first beaver."
|
|
|
|
if InventoryManager.check_if_in_inventory(loveNovel) or !SaveManager.get_save_value("BeaverLoveQuestStarted", false):
|
|
return "I need to deliver a Love Novel to the beaver across the river."
|
|
|
|
return "Speak to the Longing Beaver on the path to the Beach"
|
|
|
|
func get_completion_message():
|
|
return "Rewards
|
|
170 Building XP
|
|
You learnt the Beaver Dam Building Technique
|
|
Lammy gave you a kit to start Dam Fires easier
|
|
2 Quest Point"
|
|
|
|
func get_requirements_report():
|
|
return "Requirements
|
|
Level 10 Building
|
|
Level 10 Swimming"
|
|
|
|
func complete():
|
|
InventoryManager.add_item_to_inventory(damFireStarterClass.new(), 1, "keyItems")
|
|
LevelManager.add_XP("building", 1700)
|
|
|
|
func is_completed():
|
|
return SaveManager.get_save_value("BeaverLoveQuestComplete", false)
|
|
|