Skip to content

Commit

Permalink
rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
MahtraDR committed Oct 27, 2024
1 parent 2d94892 commit 4f7c02c
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 deletions ranger-companion.lic
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
##Added Functionality for Wolves
# #Added Functionality for Wolves
### Requires a Red Meat Pouch
=begin
Documentation: https://elanthipedia.play.net/Lich_script_repository#ranger-companion
Expand All @@ -9,7 +9,6 @@ custom_require.call(%w[common drinfomon])
no_pause_all

class Companion

def initialize
unless DRStats.ranger?
echo '***MUST BE A RANGER***'
Expand All @@ -21,7 +20,7 @@ class Companion
exit
end

while line = get
while (line = get)
waitrt?

# A baby wolf stands up then paces back and forth nervously.
Expand All @@ -41,44 +40,42 @@ class Companion
DRC.bput('pet raccoon', 'You pet', 'Touch what')
end


if line =~ /^A .*(young|full-grown) wolf begins to whimper./
if line =~ /^A .*(young|full-grown) wolf begins to whimper./
pause 1 until DRC.pause_all
waitrt?
DRC.bput('stow left', 'Stow what', 'You put')
case DRC.bput('rub my red pouch', 'brief flash of light emanates from inside', 'You rub', 'What were you referring to')
when 'What were you referring to'
DRC.bput('signal companion to sleep', 'wolf wanders off to find', 'Your companion is not', 'You have no companion', 'snapping your fingers')
exit
end
case DRC.bput('get my meat', 'You get', 'What were you referring to')
end
case DRC.bput('get my meat', 'You get', 'What were you referring to')
when 'What were you referring to'
DRC.bput('signal companion to sleep', 'wolf wanders off to find', 'Your companion is not', 'You have no companion', 'snapping your fingers')
exit
end
case DRC.bput('smell my meat', 'notice a pungent but flavorful smell', 'notice a slight odor', 'almost gag from the stench')
exit
end
case DRC.bput('smell my meat', 'notice a pungent but flavorful smell', 'notice a slight odor', 'almost gag from the stench')
when 'notice a pungent but flavorful smell'
case DRC.bput('feed my meat to wolf', 'wolf greedily devours', "It doesn't seem hungry", "You can't feed with", 'wolf shies away from you')
case DRC.bput('feed my meat to wolf', 'wolf greedily devours', "It doesn't seem hungry", "You can't feed with", 'wolf shies away from you')
when 'wolf shies away from you'
DRC.bput('feed my meat to second wolf', 'The baby wolf greedily drinks', "It doesn't seem hungry", "You can't feed with", 'wolf shies away from you')
when "You can't feed with"
DRC.bput('signal companion to sleep', 'wolf wanders off to find', 'Your companion is not', 'You have no companion', 'snapping your fingers')
exit
end
when 'notice a slight odor'
when 'notice a slight odor'
DRC.bput('drop my meat', 'You drop', 'What were you referring to')
DRC.bput('signal companion to sleep', 'wolf wanders off to find', 'Your companion is not', 'You have no companion', 'snapping your fingers')
DRC.bput('signal companion to sleep', 'wolf wanders off to find', 'Your companion is not', 'You have no companion', 'snapping your fingers')
exit
when 'almost gag from the stench'
when 'almost gag from the stench'
DRC.bput('drop my meat', 'You drop', 'What were you referring to')
DRC.bput('signal companion to sleep', 'wolf wanders off to find', 'Your companion is not', 'You have no companion', 'snapping your fingers')
DRC.bput('signal companion to sleep', 'wolf wanders off to find', 'Your companion is not', 'You have no companion', 'snapping your fingers')
exit
end
end
DRC.unpause_all
end


if line =~ /^A .*baby wolf begins to whimper./

if line =~ /^A .*baby wolf begins to whimper./
pause 1 until DRC.pause_all
waitrt?
DRC.bput('stow left', 'Stow what', 'You put')
Expand Down

0 comments on commit 4f7c02c

Please sign in to comment.