Fix QuestStage bug where it would not propery get the attribute.

This commit is contained in:
Major-
2015-03-02 10:53:00 +00:00
parent 73bc1e9666
commit 248b6a6c06
4 changed files with 22 additions and 12 deletions
@@ -7,7 +7,8 @@ module TutorialInstructions
# Sends the appropriate instruction to the player.
def self.show_instruction(player)
instructions = CONVERSATIONS[:tutorial_island_instructions]
name = case player.tutorial_island_progress
progress = player.tutorial_island_progress.name
name = case progress
# The Runescape Guide instructions.
when :not_started then :getting_started
when :runescape_guide_finished then :scenery
@@ -17,6 +18,7 @@ module TutorialInstructions
when :given_axe then :viewing_items
when :cut_tree then :cut_tree
when :cutting_tree then :please_wait
else raise "No dialogue for current stage #{progress} exists."
end
dialogue = instructions.part(name)