Properly pass variadic arguments in the dialogue plugin.

This commit is contained in:
shed-
2015-03-02 17:24:44 +03:00
parent 782563267a
commit 98372858c4
2 changed files with 2 additions and 2 deletions
@@ -95,7 +95,7 @@ conversation :tutorial_runescape_guide do
text "To continue the tutorial go through that door over there, and speak to your first instructor." text "To continue the tutorial go through that door over there, and speak to your first instructor."
continue :close => true do |player| continue :close => true do |player|
if (player.tutorial_island_progress == :not_started) if (player.tutorial_island_progress < :runescape_guide_finished)
reset_hint_icon(player) reset_hint_icon(player)
# TODO door hint icon # TODO door hint icon
player.tutorial_island_progress = :runescape_guide_finished player.tutorial_island_progress = :runescape_guide_finished
+1 -1
View File
@@ -116,7 +116,7 @@ class Player
args[0] = arg.name if arg.kind_of?(QuestStage) args[0] = arg.name if arg.kind_of?(QuestStage)
end end
result = super(symbol, args) result = super(symbol, *args)
string = symbol.to_s string = symbol.to_s
if (string.end_with?('_progress')) if (string.end_with?('_progress'))