Skip to content

Commit

Permalink
Merge pull request #6787 from Nyt3/sano-update
Browse files Browse the repository at this point in the history
[scripts][sanowret-crystal] Add EXHALE option.
  • Loading branch information
MahtraDR authored Apr 8, 2024
2 parents 6dc400f + b18cb8e commit 904f5a2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sanowret-crystal.lic
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ class SanowretCrystal
def initialize
arg_definitions = [
[
{ name: 'run', regex: /run/i, description: 'Single run of the script', optional: true }
{ name: 'run', regex: /run/i, description: 'Single run of the script', optional: true },
{ name: 'exhale', regex: /exhale/i, description: 'Force exhale, better for concentration conflicts with other scripts', optional: true }
]
]
@worn_crystal = false
Expand All @@ -17,12 +18,15 @@ class SanowretCrystal
@adjective = settings.sanowret_adjective
@no_use_scripts = settings.sanowret_no_use_scripts
@no_use_rooms = settings.sanowret_no_use_rooms
@force_exhale = args.exhale || settings.sanowret_force_exhale
check_crystal if args.run
passive unless args.run
end

def use_crystal
if DRSkill.getxp('Arcana') <= 10 && @worn_crystal
if DRSkill.getxp('Arcana') <= 30 && @force_exhale
response = DRC.bput("exhale my #{@adjective} crystal", 'you come away from the experience with a further understanding of Arcana as the scintillating lights fade again.', 'However, nothing much else happens, as you lack the concentration to focus.', 'This is not a good place for that.', 'Doing that would give away your hiding place.', 'That would be difficult to do while you attempt to keep the trail in sight.')
elsif DRSkill.getxp('Arcana') <= 10 && @worn_crystal
response = DRC.bput("gaze my #{@adjective} crystal", /A soft light blossoms in the very center of the crystal, and begins to fill your mind with the knowledge of .*\./, 'However, nothing much else happens, as you lack the concentration to focus.', 'This is not a good place for that.', 'However, you realize that you\'re already gleaning knowledge from it.', 'That would be difficult to do while you attempt to keep the trail in sight.')
elsif DRSkill.getxp('Arcana') <= 25
response = DRC.bput("exhale my #{@adjective} crystal", 'you come away from the experience with a further understanding of Arcana as the scintillating lights fade again.', 'However, nothing much else happens, as you lack the concentration to focus.', 'This is not a good place for that.', 'Doing that would give away your hiding place.', 'That would be difficult to do while you attempt to keep the trail in sight.')
Expand Down

0 comments on commit 904f5a2

Please sign in to comment.