Skip to content

Commit

Permalink
Update sort-scrolls.lic
Browse files Browse the repository at this point in the history
three word scrolls were having parsing issues.  unable to get `sanguine paper scroll`.  scroll system puts it all into the 15 characters for adjective, so we can split and use the first + last to successfully grab.  tested with various paper colors.
  • Loading branch information
desertkaz authored Aug 24, 2024
1 parent 90683e2 commit 88973ce
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sort-scrolls.lic
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,12 @@ class ScrollSorter
def sort_scrolls
scrolls = DRCI.get_scroll_list_in_container(@default_container)
scrolls.each do |s|
next unless get_scroll(s)
s.split.count > 2 ? scroll = "#{s.split.first} #{s.split.last}" : scroll = s
next unless get_scroll(scroll)

guild = check_scroll(s)
guild = check_scroll(scroll)
unknown(guild) if guild.nil?
stack_scroll(s, guild)
stack_scroll(scroll, guild)
end
end

Expand Down

0 comments on commit 88973ce

Please sign in to comment.