Sha256: bf704539203977f7f150bcaf531429fcebb4fd800ba7ff2cce010dd89e2bd5e0

Contents?: true

Size: 1.06 KB

Versions: 1

Compression:

Stored size: 1.06 KB

Contents

respond :drop, Query::Visible.new() do |actor, thing|
  actor.tell "You're not carrying #{the thing}."
end

respond :drop, Query::Children.new() do |actor, thing|
  thing.parent = actor.parent
  actor.tell "You drop #{the thing}.", true
end

xlate "put down :thing", :drop, :thing
xlate "put :thing down", :drop, :thing

#respond :drop, Query::Family.new(Thing), Query::Reachable.new(Thing) do |actor, thing, supporter|
#  actor.tell "You're not carrying #{thing}."
#end
#respond :drop, Query::Text.new(), Query::Text.new() do |actor, thing, supporter|
#  actor.tell "You don't see anything called '#{thing}.'"
#end
#respond :drop, Query::Children.new(Thing), Query::Visible.new(Thing) do |actor, thing, target|
#  if actor.parent != target.parent
#    if actor.is?(:supported) or actor.is?(:container)
#      actor.tell "You can't reach #{the target} from #{the actor.parent}."
#      next
#    end
#  end
#  passthru
#end
#respond :drop, Query::Children.new(Thing), Query::Text.new() do |actor, thing, supporter|
#  actor.tell "You don't see anything called '#{supporter}.'"
#end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gamefic-0.2.0 lib/gamefic/import/basics/actions/drop.rb