Commit 490a37f
committed
Balance annihilation plane enchantment energy cost (#8590)
The current implementation had two problems:
Enchanting an annihilation plane with any level of efficiency (and
nothing else) would reduce the required energy to zero due to
multiplying with the 0 in levelSum directly.
Enchanting an annihilation plane with unbreaking would increase the
energy cost by a factor of 8 per level of unbreaking, but only leading
to an average saving of 50% (lv1), 33% (lv2), or 25% (lv3), effectively
increasing the average cost rather than reducing it.
Fixes #8188
---------
Co-authored-by: Sebastian Hartte <shartte@users.noreply.github.com>
(cherry picked from commit 68e2b82)
(cherry picked from commit 8aa0c6b)1 parent 22bc441 commit 490a37f
1 file changed
Lines changed: 9 additions & 7 deletions
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
258 | | - | |
| 257 | + | |
| 258 | + | |
259 | 259 | | |
260 | | - | |
261 | 260 | | |
262 | 261 | | |
263 | | - | |
| 262 | + | |
| 263 | + | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
| 266 | + | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
270 | | - | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
271 | 273 | | |
272 | 274 | | |
273 | 275 | | |
| |||
0 commit comments