mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-07 00:38:46 +00:00
Fix missing rparen in Survival Expert dialogue.
This commit is contained in:
@@ -112,22 +112,22 @@ end
|
|||||||
def add_survival_items(player)
|
def add_survival_items(player)
|
||||||
inventory = player.inventory
|
inventory = player.inventory
|
||||||
|
|
||||||
unless inventory.contains(BRONZE_AXE)
|
unless inventory.contains(SurvivalConstants::BRONZE_AXE)
|
||||||
inventory.add(BRONZE_AXE)
|
inventory.add(SurvivalConstants::BRONZE_AXE)
|
||||||
dialogue = :give_bronze_axe
|
dialogue = :give_bronze_axe
|
||||||
end
|
end
|
||||||
|
|
||||||
unless inventory.contains(TINDERBOX)
|
unless inventory.contains(SurvivalConstants::TINDERBOX)
|
||||||
inventory.add(TINDERBOX)
|
inventory.add(SurvivalConstants::TINDERBOX)
|
||||||
dialogue = (dialogue == :give_bronze_axe) ? :give_axe_and_tinderbox : give_tinderbox
|
dialogue = (dialogue == :give_bronze_axe) ? :give_axe_and_tinderbox : give_tinderbox
|
||||||
end
|
end
|
||||||
|
|
||||||
send_dialogue(player, get_dialogue(:tutorial_surivival_expert, dialogue)
|
send_dialogue(player, get_dialogue(:tutorial_surivival_expert, dialogue))
|
||||||
end
|
end
|
||||||
|
|
||||||
# Intercept the FirstObjectActionMessage to send tutorial-only events if the player is chopping down a tree.
|
# Intercept the FirstObjectActionMessage to send tutorial-only events if the player is chopping down a tree.
|
||||||
on :message, :first_object_action do |ctx, player, message|
|
on :message, :first_object_action do |ctx, player, message|
|
||||||
if (player.in_tutorial_island && message.id == TREE_ID)
|
if (player.in_tutorial_island && message.id == SurvivalConstants::TREE_ID)
|
||||||
progress = player.tutorial_island_progress
|
progress = player.tutorial_island_progress
|
||||||
if (progress < :cut_tree)
|
if (progress < :cut_tree)
|
||||||
# TODO display "You cannot cut down this tree; you must first follow the guide's instructions."
|
# TODO display "You cannot cut down this tree; you must first follow the guide's instructions."
|
||||||
@@ -139,7 +139,7 @@ end
|
|||||||
|
|
||||||
# Intercept the FlashingTabClickedMessage to update the player's progress, if applicable.
|
# Intercept the FlashingTabClickedMessage to update the player's progress, if applicable.
|
||||||
on :message, :flashing_tab_clicked do |ctx, player, message|
|
on :message, :flashing_tab_clicked do |ctx, player, message|
|
||||||
if (player.in_tutorial_island && message.tab == INVENTORY_TAB_INDEX && player.tutorial_island_progress == :given_axe)
|
if (player.in_tutorial_island && message.tab == SurvivalConstants::INVENTORY_TAB_INDEX && player.tutorial_island_progress == :given_axe)
|
||||||
player.tutorial_island_progress = :cut_tree
|
player.tutorial_island_progress = :cut_tree
|
||||||
ctx.break_handler_chain()
|
ctx.break_handler_chain()
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user