Skip to content

Commit

Permalink
Fixing rubocop offenses
Browse files Browse the repository at this point in the history
Space after # in some comments added
Removed redundant .to_s methods
  • Loading branch information
Nyctus committed Nov 3, 2023
1 parent 9d844a8 commit 188f1d7
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions sigilharvest.lic
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,9 @@ class SigilHarvest

# check our stock of scrolls since we just used some
get_scrolls
exit unless @args.roomcap #if roomcap was not specified, exit script once sigil-scrolls are harvested

#if roomcap was not specified, exit script once sigil-scrolls are harvested
exit unless @args.roomcap
end # scribe_sigils

# returns the current seasonw which determines what room list to pull from base-sigils
Expand All @@ -353,8 +355,8 @@ class SigilHarvest

# Count scrolls and store number in a variable, set variable to 0 if scrolls are not found
num_scrolls = DRCI.count_item_parts('blank scroll')
DRC.message("Scrolls Remaining: #{num_scrolls.to_s}") if @args.debug
DRC.message("Target Scrolls: #{target_scrolls.to_s}") if @args.debug
DRC.message("Scrolls Remaining: #{num_scrolls}") if @args.debug
DRC.message("Target Scrolls: #{target_scrolls}") if @args.debug

# if we have enough scrolls exit the function
return if num_scrolls >= target_scrolls
Expand All @@ -372,7 +374,7 @@ class SigilHarvest
scroll_price = 90 # dokora
end

DRC.message("Buying more scrolls from #{Room[scroll_room].title.to_s}") if @args.debug
DRC.message("Buying more scrolls from #{Room[scroll_room].title}") if @args.debug

# ensure hands are clear
DRCI.stow_hands
Expand All @@ -386,9 +388,9 @@ class SigilHarvest
coppers_needed = num_to_order * scroll_price

# go to bank if insufficient funds on hand
DRC.message("Getting #{coppers_needed.to_s} coppers to buy scrolls.") if @args.debug
DRC.message("Getting #{coppers_needed} coppers to buy scrolls.") if @args.debug

#get money if needed
# get money if needed
DRCM.ensure_copper_on_hand(coppers_needed, @settings)

# order repeatedly and combine
Expand Down

0 comments on commit 188f1d7

Please sign in to comment.