Rebase the MessageHandler, MessageHandlerChain and MessageHandlerChainSet

Rebased several other pieces of code
This commit is contained in:
atomicint committed 2015-03-29 12:52:55 -04:00
1 parent 7f345fffac
commit 654a1a6dfd
71 files changed
+452 -457

No files matched your search

+2 -2
View File
@@ -54,11 +54,11 @@ class ConsumeAction < Action
end
# Intercepts the first item option message and consumes the consumable, if necessary.
on :message, :first_item_option do |ctx, player, message|
on :message, :first_item_option do |player, message|
consumable = CONSUMABLES[message.id]
unless consumable.nil?
player.start_action(ConsumeAction.new(player, message.slot, consumable))
ctx.break_handler_chain
message.terminate
end
end