Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (21 sloc) 459 Bytes
---
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