Skip to content

Commit

Permalink
Merge pull request #6954 from MikeLC-hub/patch-6
Browse files Browse the repository at this point in the history
[scripts][herb-stock] Add Riverhaven and Ratha
  • Loading branch information
MahtraDR authored Oct 27, 2024
2 parents f7746b7 + ecf909a commit f58f529
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions herb-stock.lic
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ class HerbStock
herbs_override_herbstock = @settings.herbs_override_herbstock
user_herbs = @settings.herbs

if @hometown == 'Riverhaven' && DRSkill.getrank('Athletics') > 140
@hometown = 'Crossing'
if @hometown == 'Riverhaven' && DRSkill.getrank('Athletics') < 150
echo "Cannot swim the Jantspyre River."
echo "You are athletic enough to handle herb shopping in Therengia."
exit
end

if (@hometown != 'Crossing' && @hometown != 'Shard') && !(herbs_override_herbstock && user_herbs)
echo 'Only Crossing, Riverhaven (with over 140 Athletics), and Shard hometowns supported. You may provide Crossing or Shard as an argument to override your hometown.'
if (@hometown != 'Crossing' && @hometown != 'Shard' && @hometown != 'Riverhaven' && @hometown != 'Ratha') && !(herbs_override_herbstock && user_herbs)
echo 'Only Crossing, Riverhaven (150+ athletics), Ratha, and Shard hometowns supported. You may provide Crossing or Shard as an argument to override your hometown.'
echo 'Alternatively, define custom herbs in your yaml\'s herbs setting and set herbs_override_herbstock to true.'
exit
end
Expand Down

0 comments on commit f58f529

Please sign in to comment.