mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-04 00:38:11 +00:00
Add support for specifying the option for events in the declaration (where applicable).
This commit is contained in:
@@ -43,13 +43,11 @@ class BuryBoneAction < Action
|
||||
end
|
||||
|
||||
# Intercepts the first item option event,
|
||||
on :event, :item_option do |ctx, player, event|
|
||||
if event.option == 1
|
||||
bone = BONES[event.id]
|
||||
unless bone == nil
|
||||
player.start_action(BuryBoneAction.new(player, event.slot, bone))
|
||||
ctx.break_handler_chain
|
||||
end
|
||||
on :event, :first_item_option do |ctx, player, event|
|
||||
bone = BONES[event.id]
|
||||
unless bone == nil
|
||||
player.start_action(BuryBoneAction.new(player, event.slot, bone))
|
||||
ctx.break_handler_chain
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user