Skip to content

Commit

Permalink
Merge pull request #6708 from Nyt3/forge-reinforce
Browse files Browse the repository at this point in the history
[scripts][forge] Properly handle reinforcing armor
  • Loading branch information
MahtraDR authored Sep 28, 2023
2 parents b77c699 + aeca938 commit 8f732fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions forge.lic
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ class Forge
]

args = parse_args(arg_definitions)
Flags.add('forge-assembly', 'another finished \S+ shield (handle)', 'another finished wooden (hilt|haft)', 'another finished (long|short|small|large) leather (cord|backing)', 'another finished (small|large) cloth (padding)', 'another finished (long|short) wooden (pole)')
Flags.add('work-done', 'from the successful .* process', 'shows a slightly reduced weight', 'Applying the final touches', /^The .* was successfully/)
Flags.add('forge-assembly', 'another finished \S+ shield (handle)', 'another finished wooden (hilt|haft)', 'another finished (long|short|small|large) leather (cord|backing)', 'another finished (small|large) cloth (padding)', 'another finished (long|short) wooden (pole)', 'appears ready to be reinforced with some (leather strips)')
Flags.add('work-done', 'from the successful .* process', 'shows a slightly reduced weight', 'shows improved protection', 'Applying the final touches', /^The .* was successfully/)
Flags.add('ingot-restow', /^You realize .* will not require as much metal as you have, and so you split the ingot and leave the portion you won't be using in your (.*)./)

settings = get_settings
Expand Down Expand Up @@ -221,7 +221,7 @@ class Forge
magic_cleanup
exit
end
if /not required/ =~ DRC.bput("assemble my #{@item} with my #{part}", 'affix it securely in place', 'and tighten the pommel to secure it', 'carefully mark where it will attach when you continue crafting', 'is not required to continue crafting')
if /not required/ =~ DRC.bput("assemble my #{@item} with my #{part}", 'affix it securely in place', 'and tighten the pommel to secure it', 'carefully mark where it will attach when you continue crafting', 'You layer the leather strips', 'is not required to continue crafting')
DRC.bput("stow my #{part}")
end
swap_tool(tool) if tool
Expand Down Expand Up @@ -366,7 +366,7 @@ class Forge
when 'not spinning fast enough' # grindstone slowed before we used
spin_grindstone
when 'ready for grinding away of the excess metal', 'now appears ready for grinding and polishing',
'thinning the armor\'s metal at a grindstone', 'The armor is ready to be lightened', 'ready to be ground away' # grindstone time
'thinning the armor\'s metal at a grindstone', 'The armor is ready to be lightened', 'ready to be ground away', 'You think adjusting the armor' # grindstone time
unless DRCI.in_left_hand?(@item)
DRCC.stow_crafting_item(@hammer, @bag, @forging_belt) if DRCI.in_hands?(@hammer)
DRCC.stow_crafting_item('tongs', @bag, @forging_belt) if DRCI.in_hands?('tongs')
Expand Down

0 comments on commit 8f732fd

Please sign in to comment.