Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- custom_require.call(%w[common common-items])
- class Nugg
- include DRC
- include DRCI
- def initialize
- arg_definitions = [
- [
- { name: 'type', regex: /\w+/, optional: true, description: 'Type of item to sell. Default is nugget.' }
- ]
- ]
- args = parse_args(arg_definitions)
- type = args.type.nil? ? "nugget" : args.type
- trash_item(type)
- end
- def trash_item(type)
- stow_hands
- loop do
- waitrt?
- case bput("get my #{type}", 'You get a', 'What were you')
- when 'What were you'
- break
- end
- bput("sell my #{type}", 'You ask')
- end
- end
- end
- Nugg.new
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement