Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: b84a109b74
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (21 sloc) 0.459 kb
---
syntax:
- "drop <prop>"
- "drop <character>"
logic: |
if character
prop = character
end
output = ''
if prop.location == 'player'
output << @game.if_worn_take_off(prop)
prop.location = @player.location
output << "You drop #{prop.noun}.\n"
on_drop_output = @game.event(prop, 'on_drop')
if on_drop_output
output << on_drop_output
end
else
output << @game.not_found(prop.noun_base)
end
output
Jump to Line
Something went wrong with that request. Please try again.