Advertisement
icantsplel2

Untitled

Nov 16th, 2020
1,163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.64 KB | None | 0 0
  1. custom_require.call(%w[common common-items])
  2.  
  3. class Nugg
  4.   include DRC
  5.   include DRCI
  6.  
  7.   def initialize
  8.     arg_definitions = [
  9.       [
  10.         { name: 'type', regex: /\w+/, optional: true, description: 'Type of item to sell.  Default is nugget.' }
  11.       ]
  12.     ]
  13.  
  14.     args = parse_args(arg_definitions)
  15.     type = args.type.nil? ? "nugget" : args.type
  16.     trash_item(type)
  17.   end
  18.  
  19.   def trash_item(type)
  20.     stow_hands
  21.     loop do
  22.       waitrt?
  23.       case bput("get my #{type}", 'You get a', 'What were you')
  24.       when 'What were you'
  25.         break
  26.       end
  27.       bput("sell my #{type}", 'You ask')
  28.     end
  29.   end
  30. end
  31.  
  32. Nugg.new
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement