Skip to content

Commit

Permalink
[script] [tome] Add additional study failure message
Browse files Browse the repository at this point in the history
Add failure message for when you try to study your tome in a room where it is not allowed (such as the Crossing Bank Lobby). This is to allow the script to continue gracefully, without hanging due to no recognized response.
  • Loading branch information
dantiadr committed Jul 31, 2024
1 parent 970d96f commit 27140d3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tome.lic
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,15 @@ class Tome
/^You are unable to focus on studying your/,
/^You must complete or cancel your current magical research project/,
/^Considering that you are in combat/,
/^However, you find that you lack the concentration to focus on your studies/)
/^However, you find that you lack the concentration to focus on your studies/,
/^This is not a good place for that/)
DRC.safe_unpause_list @scripts_to_unpause if @passive
case result
when /^You are unable to focus on studying your/,
/^You must complete or cancel your current magical research project/,
/^Considering that you are in combat/,
/^However, you find that you lack the concentration to focus on your studies/
/^However, you find that you lack the concentration to focus on your studies/,
/^This is not a good place for that/
pause_scripts if @passive
DRCI.stow_item?(@@tome)
DRC.safe_unpause_list @scripts_to_unpause if @passive
Expand Down

0 comments on commit 27140d3

Please sign in to comment.