Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[blackarts] v1.2.7 bugfix for mortar return on grinding task #1745

Merged
merged 1 commit into from
Jan 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions scripts/BlackArts.lic
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,18 @@
contributors: Deysh, Tysong, Gob
game: Gemstone
tags: alchemy
version: 1.2.6
version: 1.2.7

Improvements:
Major_change.feature_addition.bugfix
v1.2.7 (2025-01-17)
- bugfix for giving mortar to clerk on grinding task
=end
=begin
v1.2.6 (2025-01-11)
- remove Sorcerer Guild rooms in FWI that don't have crucibles
- add a 1 minute delay if character has cycled thru all guilds
- add check for FWI Sorcerer guildmaster that wanders
=end
=begin
v1.2.5 (2025-01-10)
- bugfix for finding correct mortar for grinding tasks
v1.2.4 (2025-01-09)
Expand Down Expand Up @@ -8817,7 +8819,7 @@ module BlackArts
task_mortar = Tasks.find_mortar_for_task
Util.get_res("get ##{task_mortar}", BlackArts.data.get_regex)

shelf = GameObj.room_desc.find { |obj| obj.noun == 'shelf' } || GameObj.loot.find { |obj| obj.noun == 'shelf' }
shelf = (GameObj.room_desc.to_a + GameObj.loot.to_a).find { |obj| obj.noun =~ /shelf/ }

loop {
shelf_contents = Util.check_table(shelf)
Expand All @@ -8843,7 +8845,7 @@ module BlackArts
exit
end

give_result = Util.get_res("give ##{task_mortar} to #{clerk}", /^\[You have/)
give_result = Util.get_res("give #{clerk.noun}", /^\[You have/)
break unless give_result =~ /\[You have [0-9]+ repetitions? remaining\.\]/
}

Expand Down
Loading