Merge pull request #281 from CharlesVaneenoo/fix_issue_178

Fix issue #178
This commit is contained in:
Major
2016-03-14 13:15:57 +00:00
2 changed files with 9 additions and 1 deletions
@@ -73,6 +73,14 @@ module TutorialInstructions
'inventory. Your inventory is a list of everything you have in your backpack.'
end
# The instruction displayed if the player tries to cut a tree before having the axe.
dialogue :try_cut_tree do
type :text
title 'Follow the guide\'s instructions'
text 'You cannot cut down this tree, you must first follow the guide\'s instructions.'
end
# The instruction displayed before the player has begun to cut the tree.
dialogue :cut_tree do
type :text
@@ -136,7 +136,7 @@ on :message, :first_object_action do |player, message|
progress = player.tutorial_island_progress
if progress < :cut_tree
# TODO: 'You cannot cut down this tree; you must first follow the guide's instructions.'
send_dialogue(player, get_dialogue(:tutorial_island_instructions, :try_cut_tree))
elsif player.tutorial_island_progress == :cut_tree
# Don't break the chain, so that the Woodcutting event actually happens.
player.tutorial_island_progress = :cutting_tree