-
-
Notifications
You must be signed in to change notification settings - Fork 447
Modernise enchantments #8668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
bluelhf
wants to merge
27
commits into
SkriptLang:dev/feature
Choose a base branch
from
bluelhf:feature/enchantments-module
base: dev/feature
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Modernise enchantments #8668
Changes from 4 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
13d7af5
refactor(syntax): migrate enchantments to module-based system
bluelhf d021d94
feat(enchantments): add min level, max level, and stored enchantments…
bluelhf 0f8b9ca
fix(codestyle): remove duplicate code and assert non-nullability in E…
bluelhf 6fbe3ff
style(enchantment): address code style issues and use converters wher…
bluelhf a8e34ff
style: apply suggestions from code review
bluelhf 555fb4c
fix(enchantment): fix enchantment glint override logic
bluelhf decd611
style(enchantments): newline before closing brace in ExprStoredEnchan…
bluelhf 23c9750
Revert "style(enchantments): newline before closing brace in ExprStor…
bluelhf 68cb97a
chore(enchantments): add explicit syntax instance suppliers
bluelhf 3fa0fc4
style: add blank lines and fix annotations
bluelhf faba4ad
fix(classes): allow 'enchantmenttype' user input
bluelhf 28026d3
style(tests): replace spaces with tabs
bluelhf 7138a8b
chore(math): add more saturating arithmetic tools to math2
bluelhf bb0caeb
chore(test): move enchantment tests to enchantments module
bluelhf 2c0efd1
refactor(enchantments): merge min and max enchantment level expressions
bluelhf 3d80def
style(enchantments): apply code style to registrations
bluelhf 5745638
fix(enchantment-offer): add bounds checks and use Integer rather than…
bluelhf 363b06c
fix(enchantment-offer): correct pattern
bluelhf cd4d41a
fix(enchantment-offer): compute enchantment cost correctly
bluelhf d452bb2
fix(enchantments): use saturating arithmetic in ExprEnchantmentLevel …
bluelhf 88d8429
fix(enchantments): fix typo in enchant item
bluelhf b852974
fix(enchantments): improve legacy handling of ExprEnchantItem changer
bluelhf 54ecd1f
fix(enchantments): add article to ExprAppliedEnchantments#toString
bluelhf 5ee0deb
fix(enchantments): use pattern matching instanceof in ExprAppliedEnch…
bluelhf 33e6859
feat(enchantments): add ExprEnchantmentHint and alphabetise registrat…
bluelhf 150ffbe
fix(enchantments): use index-based detection for override type in Con…
bluelhf b7ccc61
Merge branch 'dev/feature' into feature/enchantments-module
bluelhf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
105 changes: 0 additions & 105 deletions
105
src/main/java/ch/njol/skript/expressions/ExprEnchantingExpCost.java
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be ordered alphabetically in the list