mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 00:38:21 +00:00
Fix issue #178
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user