Skip to content

Commit

Permalink
lockpicking buffs
Browse files Browse the repository at this point in the history
  • Loading branch information
rcuhljr committed Jul 1, 2016
1 parent 8818940 commit 0542f9d
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 5 deletions.
29 changes: 27 additions & 2 deletions pick.lic
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,37 @@ class LockPicker
end

def buff(buffs)
buffs.each do |name, spell|
buffs['spells'].each do |spell|
echo "Buffing: #{name}" if UserVars.lockpick_debug
fput("pre #{spell['abbrev']} #{spell['mana']}")
waitfor 'fully prepared'
if spell['cambrinth']
if @settings.held_cambrinth
fput("remove my @settings.cambrinth")
elsif @settings.stored_cambrinth
fput("get my @settings.cambrinth")
end
spell['cambrinth'].each do |mana|
bput("charge my #{@settings.cambrinth} #{mana}", '^You harness a', "You'll have to hold it")
waitrt?
end
bput("invoke my #{@settings.cambrinth}", 'You reach for its center', 'Your link to the', 'shows signs of having been charged')
pause
waitrt?
if @settings.held_cambrinth || @settings.stored_cambrinth
command = @settings.stored_cambrinth ? 'stow' : 'wear'
fput "#{command} my #{@settings.cambrinth}"
end
end
waitcastrt?
fput('cast')
end

buffs['khri'].each do |khri|
fput('kneel') if @settings.kneel_khri && !checkkneeling
bput("Khri #{name}", *@settings.khri_preps + [/Your body is willing/, /You have not recovered/])
pause
end
fput('stand') if checkkneeling
end

def refill_ring(type)
Expand Down
9 changes: 6 additions & 3 deletions profiles/Etreu-setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,12 @@ loot_subtractions:
prep_scaling_factor: 0.95
lockpick_type: stout
lockpick_buffs:
Hands of Lirisa:
abbrev: hol
mana: 55
spells:
- abbrev: hol
mana: 15
cambrinth:
- 25
- 25
lockpick_dismantle: whistle
mining_buddy_vein_list:
#- Gold
Expand Down

0 comments on commit 0542f9d

Please sign in to comment.