Commit 6d14f0e
committed
Fix: thiefstone couldn't be re-keyed
When I added extra uses for dipping objects in potions of restore
ability, I included an early return for that block. This meant the
thiefstone re-keying code which was left below that could never be
reached with a non-cursed potion of restore ability, meaning effectively
that thiefstones could no longer be re-keyed.
Fix is to move the re-keying code into the general case for restore
ability. While here, I slightly adjusted the undo-negative-enchantment
restore ability behavior to hit poof() -> trycall() rather than directly
calling trycall() itself (fixing a minor bug; the player would have been
prompted to call the potion even if its dknown wasn't set).
I decided to leave the thiefstone-rekeying case as something that will
prompt a trycall rather than automatically identifying the potion, since
it might not be obvious that it was restore ability even if the player
has identified the thiefstone and can see it went from inactive to
keyed.
There is no longer a case that handles re-keying a thiefstone with a
cursed potion of restore ability. Previously it printed a unique message
and used up the potion. Now it falls into the general dipping case,
meaning it results in "Interesting..." and doesn't use up the potion.
Fixes #2261 parent 01aa384 commit 6d14f0e
1 file changed
+8
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3062 | 3062 | | |
3063 | 3063 | | |
3064 | 3064 | | |
3065 | | - | |
3066 | | - | |
3067 | 3065 | | |
3068 | 3066 | | |
3069 | 3067 | | |
| |||
3080 | 3078 | | |
3081 | 3079 | | |
3082 | 3080 | | |
3083 | | - | |
3084 | | - | |
3085 | | - | |
3086 | | - | |
3087 | | - | |
3088 | | - | |
3089 | | - | |
3090 | | - | |
3091 | | - | |
3092 | | - | |
3093 | | - | |
3094 | | - | |
3095 | | - | |
3096 | | - | |
3097 | | - | |
| 3081 | + | |
| 3082 | + | |
| 3083 | + | |
3098 | 3084 | | |
3099 | 3085 | | |
3100 | 3086 | | |
| 3087 | + | |
3101 | 3088 | | |
3102 | | - | |
| 3089 | + | |
| 3090 | + | |
| 3091 | + | |
| 3092 | + | |
3103 | 3093 | | |
3104 | 3094 | | |
3105 | 3095 | | |
| |||
0 commit comments