Skip to content

Commit

Permalink
Update pick.lic to handle khri safe dodged failures
Browse files Browse the repository at this point in the history
The old logic assumes that dodging a blown trap with Khri Safe fully disarms the box, and that it's ok to proceed with picking. This doesn't seem to be the case, e.g.: https://pastebin.com/iU5CpVSs

From line 22 onward, all traps remain after dodging the failed disarm.
  • Loading branch information
urbaj-dr authored Feb 6, 2024
1 parent eb2f3f6 commit ab80460
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pick.lic
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,8 @@ class Pick

case disarm_identify_match
when 'Thanks to an instinct provided by your sense of security'
echo 'Dodged a trap with Safe...'
trapped = false
echo 'Dodged a trap with Safe...' if @debug
trapped = true
when *@disarm_lost_box_matches
DRC.message('Lost your box somehow...')
trapped = false # Flag the box as not trapped, so it will fall through and move on...
Expand Down Expand Up @@ -545,7 +545,7 @@ class Pick
trapped = true
when 'Thanks to an instinct provided by your sense of security'
echo 'Dodged a trap with Safe...' if @debug
trapped = false
trapped = true
when *@disarm_succeeded
echo 'Successfully disarmed trap' if @debug
trapped = false
Expand Down

0 comments on commit ab80460

Please sign in to comment.