Advertisement
jbrocky

Untitled

Jun 24th, 2019
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.03 KB | None | 0 0
  1.   def shoot_aimed(command, game_state)
  2.     case bput(command, 'isn\'t loaded', 'There is nothing', 'But your', /you (fire|poach|snipe) an? (?:.*\s)?(arrow|bolt|shard|rock|sphere|clump|coral|fist|holder|lump|patella|pellet|pulzone|quadrello|quill|stone|stopper|verretto) at/i, 'I could not find', 'with no effect and falls to the ground', 'Face what', 'How can you (poach|snipe)', 'you don\'t feel like fighting right now', 'That weapon must be in your right hand to fire')
  3.     when /How can you (poach|snipe)/
  4.       shoot_aimed('shoot', game_state)
  5.     when /you (fire|poach|snipe) an? (?:.*\s)?(arrow|bolt|shard|rock|sphere|clump|coral|fist|holder|lump|patella|pellet|pulzone|quadrello|quill|stone|stopper|verretto) at/i
  6.       game_state.action_taken
  7.     when 'you don\'t feel like fighting right now', 'That weapon must be in your right hand to fire'
  8.       pause 1
  9.       shoot_aimed(command, game_state)
  10.     end
  11.     bput('stow feet', 'You pick up', 'Stow what')
  12.     bput('stow feet', 'You pick up', 'Stow what') if game_state.dual_load?
  13.   end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement