mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-07 16:49:12 +00:00
Merge pull request #281 from CharlesVaneenoo/fix_issue_178
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.'
|
'inventory. Your inventory is a list of everything you have in your backpack.'
|
||||||
end
|
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.
|
# The instruction displayed before the player has begun to cut the tree.
|
||||||
dialogue :cut_tree do
|
dialogue :cut_tree do
|
||||||
type :text
|
type :text
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ on :message, :first_object_action do |player, message|
|
|||||||
progress = player.tutorial_island_progress
|
progress = player.tutorial_island_progress
|
||||||
|
|
||||||
if progress < :cut_tree
|
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
|
elsif player.tutorial_island_progress == :cut_tree
|
||||||
# Don't break the chain, so that the Woodcutting event actually happens.
|
# Don't break the chain, so that the Woodcutting event actually happens.
|
||||||
player.tutorial_island_progress = :cutting_tree
|
player.tutorial_island_progress = :cutting_tree
|
||||||
|
|||||||
Reference in New Issue
Block a user