Add support for specifying the option for events in the declaration (where applicable).

This commit is contained in:
Major-
2014-08-08 02:00:01 +01:00
parent a863d8ea71
commit 22f712da23
9 changed files with 89 additions and 96 deletions
+2 -2
View File
@@ -45,8 +45,8 @@ class DummyAction < DistancedAction
end
end
on :event, :object_action do |ctx, player, event|
if (event.option == 2 and event.id == DUMMY_ID)
on :event, :second_object_action do |ctx, player, event|
if (event.id == DUMMY_ID)
player.start_action(DummyAction.new(player, event.position))
end
end