Advertisement
Guest User

sloot.lic patch for self-closing containers

a guest
Mar 12th, 2019
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. --- sloot.lic.NEW 2019-03-11 19:03:31.559524803 -0500
  2. +++ sloot.lic.OLD 2019-03-10 16:55:11.761543356 -0500
  3. @@ -794,7 +792,7 @@
  4. exit
  5. end
  6.  
  7. - res = dothistimeout "open ##{sack.id}", 5, /^You open .*|^Sliding the lever .*|.* is already open\.$/
  8. + res = dothistimeout "open ##{sack.id}", 5, /^You open .*\.$/
  9. unless res
  10. echo "fixme: unknown open_sack result: #{res}"
  11. exit
  12. @@ -808,7 +806,7 @@
  13. next unless settings['enable_close_sacks']
  14.  
  15. closed_sacks.each { |sack|
  16. - res = dothistimeout "close ##{sack}", 5, /^You close .*|^You slide .*|.* is already closed\.$/
  17. + res = dothistimeout "close ##{sack}", 5, /^You close .*\.$/
  18. unless res
  19. echo "fixme: unknown close_open_sacks result: #{res}"
  20. exit
  21. @@ -1708,10 +1706,6 @@
  22. }
  23.  
  24. found_sacks.each { |sack|
  25. - # open sacks if enable_close_sacks is set so we can see what we have
  26. - if settings['enable_close_sacks']
  27. - open_sack.call(sack)
  28. - end
  29. unless sack.contents
  30. dothistimeout "look in ##{sack.id}", 5, /In the .*?/
  31. unless sack.contents
  32. @@ -1852,9 +1846,6 @@
  33. skinweaponcurrent = skinweaponblunt
  34. end
  35.  
  36. - if settings['enable_close_sacks']
  37. - open_sack.call(sacks['skinweapon'])
  38. - end
  39. unless get_item.call(skinweaponcurrent,sacks['skinweapon'])
  40. msg.call("** failed to find #{skinweaponcurrent.name} in #{sacks['skinweapon'].name}")
  41. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement