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)
@@ -5,9 +5,11 @@ private
STAGES = []
# The stages that are used when interacting with the Runescape Guide.
STAGES << RUNESCAPE_GUIDE = [ :not_started, :talk_to_people, :go_through_door, :runescape_guide_finished, :moving_around ]
RUNESCAPE_GUIDE = [ :not_started, :talk_to_people, :go_through_door, :runescape_guide_finished, :moving_around ]
STAGES.concat(RUNESCAPE_GUIDE)
# The stages that are used when interacting with the Survival Expert.
STAGES << SURVIVAL_EXPERT = [ :given_axe, :cut_tree, :cutting_tree, ]
SURVIVAL_EXPERT = [ :given_axe, :cut_tree, :cutting_tree, ]
STAGES.concat(SURVIVAL_EXPERT)
quest :tutorial_island, STAGES