Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #If the room's item array contains the item the player is attempting to pick up...
- if $facilityMap[@coordinates][1].include? command[1]
- #Tell the player she picked up the item...
- puts "You got the #{ command[1] }!"
- #Add the item to her inventory array...
- @inventory << command[1]
- #Then remove it from the room.
- $facilityMap[@coordinates][1][???] = nil
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement