Skip to content

Commit

Permalink
Update tessera.lic
Browse files Browse the repository at this point in the history
Added a Tradining mindstate threshold
  • Loading branch information
urbaj-dr authored Jun 25, 2024
1 parent 1549f35 commit e932b0b
Showing 1 changed file with 2 additions and 1 deletion.
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 e932b0b

Please sign in to comment.