Skip to content

Instantly share code, notes, and snippets.

/gametest.rb Secret

Created October 26, 2015 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/53d07616feed0aab35be to your computer and use it in GitHub Desktop.
Save anonymous/53d07616feed0aab35be to your computer and use it in GitHub Desktop.
why isnt this modifying the value?
def equip_item(item)
@items.each do |key, value|
if key == item
value = 1
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment