Commit f6a544a
committed
Give two more uses to dipping in potion of restore ability
It was already possible to dip an eroded object in restore ability to
remove the erosion. This commit adds two more things it can do:
- Increasing an item's negative enchantment or charge, to a maximum of
0, provided it wasn't eroded and got that fixed instead.
- Restoring the ink in a spellbook to maximum freshness. (I don't see
any additional potential for abuse here; in the case where you refresh
spell knowledge 4 times and want even more from the same book, you
are probably far into the game and are likely to have either found a
duplicate spellbook, have a magic marker, or are doing large-scale
farming.)
This commit also restructures the code around restore ability dipping;
in particular, enshrining a principle that cursed restore ability dips
will just do nothing (not even use up the potion) and fall into the
"Interesting..." case, similar to how cursed restore ability has no
effect when quaffed.1 parent ffc7af8 commit f6a544a
2 files changed
+51
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3020 | 3020 | | |
3021 | 3021 | | |
3022 | 3022 | | |
3023 | | - | |
3024 | | - | |
3025 | | - | |
3026 | | - | |
3027 | | - | |
3028 | | - | |
| 3023 | + | |
| 3024 | + | |
| 3025 | + | |
| 3026 | + | |
| 3027 | + | |
| 3028 | + | |
| 3029 | + | |
| 3030 | + | |
| 3031 | + | |
| 3032 | + | |
| 3033 | + | |
| 3034 | + | |
| 3035 | + | |
| 3036 | + | |
| 3037 | + | |
| 3038 | + | |
| 3039 | + | |
| 3040 | + | |
| 3041 | + | |
| 3042 | + | |
| 3043 | + | |
| 3044 | + | |
| 3045 | + | |
| 3046 | + | |
| 3047 | + | |
| 3048 | + | |
| 3049 | + | |
| 3050 | + | |
| 3051 | + | |
| 3052 | + | |
| 3053 | + | |
| 3054 | + | |
| 3055 | + | |
| 3056 | + | |
| 3057 | + | |
| 3058 | + | |
| 3059 | + | |
| 3060 | + | |
| 3061 | + | |
| 3062 | + | |
| 3063 | + | |
| 3064 | + | |
| 3065 | + | |
3029 | 3066 | | |
3030 | | - | |
| 3067 | + | |
| 3068 | + | |
3031 | 3069 | | |
3032 | 3070 | | |
3033 | 3071 | | |
| |||
0 commit comments