From 188f1d795c23fb60a44b3137b05301880a61ba15 Mon Sep 17 00:00:00 2001 From: Nyctus Date: Fri, 3 Nov 2023 14:17:08 -0700 Subject: [PATCH] Fixing rubocop offenses Space after # in some comments added Removed redundant .to_s methods --- sigilharvest.lic | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/sigilharvest.lic b/sigilharvest.lic index 010c43e35f..7549589818 100644 --- a/sigilharvest.lic +++ b/sigilharvest.lic @@ -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 @@ -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 @@ -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 @@ -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