diff --git a/CHANGELOG.md b/CHANGELOG.md index 26dfda2544..6a9235ad30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). +## `0.11.5` - [UNRELEASED] + +### Added + +- Added the `requires_enlightenment_in_parens` tag for patterns that should mishap without enlightenment even while parenthesized ([#1290](https://github.com/FallingColors/HexMod/pull/1290)) @Robotgiggle + +### Fixed + +- Fixed Great Spells causing a mishap when drawn without enlightenment even while parenthesized ([#1290](https://github.com/FallingColors/HexMod/pull/1290)) @Robotgiggle + ## `0.11.4` - 2026-08-26 ### Added diff --git a/Common/src/main/java/at/petrak/hexcasting/api/casting/iota/PatternIota.java b/Common/src/main/java/at/petrak/hexcasting/api/casting/iota/PatternIota.java index 593e46a212..90bddac652 100644 --- a/Common/src/main/java/at/petrak/hexcasting/api/casting/iota/PatternIota.java +++ b/Common/src/main/java/at/petrak/hexcasting/api/casting/iota/PatternIota.java @@ -106,7 +106,7 @@ public boolean executable() { } var reqsEnlightenment = isOfTag(IXplatAbstractions.INSTANCE.getActionRegistry(), key, - HexTags.Actions.REQUIRES_ENLIGHTENMENT); + inParens ? HexTags.Actions.REQUIRES_ENLIGHTENMENT_IN_PARENS : HexTags.Actions.REQUIRES_ENLIGHTENMENT); castedName = () -> HexAPI.instance().getActionI18n(key, reqsEnlightenment); action = Objects.requireNonNull(IXplatAbstractions.INSTANCE.getActionRegistry().get(key)).action(); diff --git a/Common/src/main/java/at/petrak/hexcasting/api/mod/HexTags.java b/Common/src/main/java/at/petrak/hexcasting/api/mod/HexTags.java index 30671bf2c1..e2e9bd073f 100644 --- a/Common/src/main/java/at/petrak/hexcasting/api/mod/HexTags.java +++ b/Common/src/main/java/at/petrak/hexcasting/api/mod/HexTags.java @@ -76,6 +76,11 @@ public static final class Actions { * "am I not skilled enough" message */ public static final TagKey REQUIRES_ENLIGHTENMENT = create("requires_enlightenment"); + /** + * Same as REQUIRES_ENLIGHTENMENT but applies to actions that take effect while parenthesized. + * The base mod does not have any actions meeting both criteria but future addons might. + */ + public static final TagKey REQUIRES_ENLIGHTENMENT_IN_PARENS = create("requires_enlightenment_in_parens"); /** * Actions where the pattern is calculated per-world */ diff --git a/Fabric/src/main/resources/data/hexcasting/tags/action/requires_enlightenment_in_parens.json b/Fabric/src/main/resources/data/hexcasting/tags/action/requires_enlightenment_in_parens.json new file mode 100644 index 0000000000..5e8aecc986 --- /dev/null +++ b/Fabric/src/main/resources/data/hexcasting/tags/action/requires_enlightenment_in_parens.json @@ -0,0 +1,4 @@ +{ + "replace": false, + "values": [] +} \ No newline at end of file diff --git a/Forge/src/main/resources/data/hexcasting/tags/hexcasting/action/requires_enlightenment_in_parens.json b/Forge/src/main/resources/data/hexcasting/tags/hexcasting/action/requires_enlightenment_in_parens.json new file mode 100644 index 0000000000..f72d209df7 --- /dev/null +++ b/Forge/src/main/resources/data/hexcasting/tags/hexcasting/action/requires_enlightenment_in_parens.json @@ -0,0 +1,3 @@ +{ + "values": [] +} \ No newline at end of file