Skip to content

Commit

Permalink
Merge pull request #6829 from mikejcook/remedy_stamp_and_cube
Browse files Browse the repository at this point in the history
  • Loading branch information
MahtraDR authored Jun 2, 2024
2 parents 6c5c774 + 990f633 commit 15b4d47
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions remedy.lic
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ class Remedy
@belt = @settings.alchemy_belt
@training_spells = @settings.crafting_training_spells
@stock = get_data('crafting')['remedies'][@settings.hometown]
@stamp = @settings.mark_crafted_goods
@cube = @settings.cube_armor_piece

arg_definitions = [
[
Expand Down Expand Up @@ -177,6 +179,8 @@ class Remedy
DRCC.stow_crafting_item("remed book", @bag, @forging_belt)
end

DRC.bput("touch my #{@cube}", /^Warm vapor swirls around your head in a misty halo/, /^A thin cloud of vapor manifests with no particular effect./, /^Touch what/) if @cube

if ('red flower').include?(@herb1)
@herb1 = 'dried flower' unless DRCI.exists?('red flower')
elsif ('blue flower').include?(@herb1)
Expand Down Expand Up @@ -397,11 +401,18 @@ class Remedy
DRC.bput('release symb', "But you haven't", 'You release', 'Repeat this command')
end

def stamp_item(noun)
DRCC.get_crafting_item('stamp', @bag, @bag_items, @belt)
DRC.bput("mark my #{noun} with my stamp", 'carefully hammer the stamp', 'You cannot figure out how to do that', 'too badly damaged', /score the surface with the stamp/)
DRCC.stow_crafting_item('stamp', @bag, @belt)
end

def finish
waitrt?
stow_item(DRC.left_hand)
fput("get my #{@noun} from my #{@container}")
stow_item(DRC.right_hand)
stamp_item(@noun) if @stamp
magic_cleanup
exit
end
Expand Down

0 comments on commit 15b4d47

Please sign in to comment.