Skip to content

Commit 8fda9f9

Browse files
fix(OpErase): scale media cost appropriately with stack size, fixes #948 (#966)
2 parents c64e5d7 + cd3e841 commit 8fda9f9

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
6767
- Added several missing translations for config options, by Robotgiggle in [#921](https://github.com/FallingColors/HexMod/pull/921).
6868
- Clarified the description of Division Distillation, by JustS-js in [#832](https://github.com/FallingColors/HexMod/pull/832).
6969
- Fixed a bug where some patterns inconsistently checked the lower-north-west corner of blocks for ambit instead of the center, by YukkuriC in [#959](https://github.com/FallingColors/HexMod/pull/959).
70+
- Fixed Erase Item cost not scaling with stack size, by PoolloverNathan in [#966](https://github.com/FallingColors/HexMod/pull/966).
7071

7172
## Previous versions
7273

Common/src/main/java/at/petrak/hexcasting/common/casting/actions/spells/OpErase.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ object OpErase : SpellAction {
3535

3636
return SpellAction.Result(
3737
Spell(handStack),
38-
MediaConstants.DUST_UNIT, listOf()
38+
MediaConstants.DUST_UNIT * handStack.getCount(),
39+
listOf(),
3940
)
4041
}
4142

Common/src/main/resources/assets/hexcasting/lang/en_us.flatten.json5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2017,10 +2017,10 @@
20172017
"craft/trinket": "Costs about five $(l:items/amethyst)$(item)Charged Amethysts/$.",
20182018
"craft/artifact": "Costs about ten $(l:items/amethyst)$(item)Charged Amethysts/$.",
20192019

2020-
"recharge.1": "Recharge a _media-containing item in my other hand. Costs about one $(l:items/amethyst)$(item)Amethyst Shard/$.",
2020+
"recharge.1": "Recharge a _media-containing item in my other hand. Costs about one $(l:items/amethyst)$(item)Amethyst Shard/$ per item.",
20212021
"recharge.2": "This spell is cast in a similar method to the crafting spells; an entity representing a dropped stack of $(l:items/amethyst)$(item)Amethyst/$ is provided, and recharges the _media battery of the item in my other hand.$(br2)This spell $(italic)cannot/$ recharge the item farther than its original battery size.",
20222022

2023-
"erase.1": "Clear a _Hex-containing item in my other hand. Costs about one $(l:items/amethyst)$(item)Amethyst Dust/$.",
2023+
"erase.1": "Clears _Hex-containing or iota-containing items in my other hand. Costs about one $(l:items/amethyst)$(item)Amethyst Dust/$ per item.",
20242024
"erase.2": "The spell will also void all the _media stored inside the item, releasing it back to Nature and returning the item to a perfectly clean slate. This way, I can re-use $(l:items/hexcasting)$(item)Trinkets/$ I have put an erroneous spell into, for example.$(br2)This also works to clear a $(l:items/focus)$(item)Focus/$ or $(l:items/spellbook)$(item)Spellbook/$ page, unsealing them in the process.",
20252025
},
20262026

0 commit comments

Comments
 (0)