Skip to content

Commit

Permalink
Merge pull request #6851 from urbaj-dr/master
Browse files Browse the repository at this point in the history
  • Loading branch information
MahtraDR authored Jun 25, 2024
2 parents 1549f35 + f4cb504 commit 8dc4255
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions profiles/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2058,6 +2058,9 @@ tessera_noun: tessera
# How often you want to retry your tessera
tessera_retry_interval: 375

# The Trading mindstate threshold below which (or equal to) you will use your tessera.
tessera_mindstates: 3

# Tessera Pause time before pausing scripts and starting up
tessera_startup_delay: 15

Expand Down
3 changes: 2 additions & 1 deletion tessera.lic
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class Tessera
@no_use_scripts = settings.tessera_no_use_scripts
@no_use_rooms = settings.tessera_no_use_rooms
@tessera = settings.tessera_noun
@tessera_mindstates = settings.tessera_mindstates

pause @startup_delay
passive_loop
Expand Down Expand Up @@ -67,7 +68,7 @@ class Tessera

# def to make sure when to use the tessera. The following conditions must NOT be true: hidden, invisible, cooldown active, hands full, not allowed scripts running and not standing in rooms that are not allowed.
def should_use_tessera?
!(hidden? || invisible? || tessera_on_cooldown? || hands_full? || running_no_use_scripts? || inside_no_use_room?)
!(hidden? || invisible? || tessera_on_cooldown? || hands_full? || running_no_use_scripts? || inside_no_use_room? || DRSkill.getxp('Trading') >= @tessera_mindstates)
end

# def for checking if no_use_scripts (from yaml) are running. Used in should_use_tessera?.
Expand Down

0 comments on commit 8dc4255

Please sign in to comment.