Skip to content

Instantly share code, notes, and snippets.

@abirmingham
Created April 28, 2020 23:24
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 abirmingham/2ade0661b197c0b87a3fe2f3cd406fbc to your computer and use it in GitHub Desktop.
Save abirmingham/2ade0661b197c0b87a3fe2f3cd406fbc to your computer and use it in GitHub Desktop.
cloak = GameObj.inv.find { |obj| obj.noun == "cloak" }
# TODO filter to note types rather than hard-coding
["light yellow note", "pale pink note", "bright pink note", "pale blue note", "bright orange note", "vivid pink note", "deep black note", "vivid blue note", "light pink note", "light blue note", "bright blue note"].each { |note_type|
fput "stow all"
return if cloak.contents.nil?
while note = cloak.contents.find { |obj| obj.name == note_type || obj.name == "stack of #{note_type}s" }
fput "get ##{note.id}"
fput "bundle"
end
}
fput "stow all"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment