-
Notifications
You must be signed in to change notification settings - Fork 10
Add talismans #366
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
Add talismans #366
Conversation
|
(Let me know when this is ready for re-review - not sure if it is rn) |
LordIdra
left a comment
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.
Sorry I didn't review earlier, I kept forgetting... but here it is
src/main/java/io/github/pylonmc/pylon/base/content/talismans/BarteringTalisman.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/pylonmc/pylon/base/content/talismans/AttributeTalisman.java
Show resolved
Hide resolved
src/main/resources/lang/en.yml
Outdated
| luck_talisman_advanced: | ||
| name: "Advanced Luck Talisman" | ||
| lore: |- | ||
| <arrow> Makes you a much luckier ducky while in your inventory |
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.
Needs clarification on what the heck this means in practice
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.
not entirely sure myself. I imagine it's a similar effect to what a luck potion does. Minecraft wiki says it affects drop tables by making you more likely to get higher quality items. updated the text for that explanation
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.
nice work, just 3 last formatting things
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.
'only works when in your inventory' should go before any attributes (by convention)
src/main/resources/lang/en.yml
Outdated
| enchanting_talisman_simple: | ||
| name: "Simple Enchanting Talisman" | ||
| lore: |- | ||
| <arrow> Improves your odds of getting higher level enchants from the enchanting table | ||
| <arrow> <attr>Chance of incrementing enchantment level by 1:</attr> %bonus_level_chance% | ||
| <arrow> Only works while in your inventory | ||
| enchanting_talisman_advanced: | ||
| name: "Advanced Enchanting Talisman" | ||
| lore: |- | ||
| <arrow> Improves your odds of getting higher level enchants from the enchanting table | ||
| <arrow> <attr>Chance of incrementing enchantment level by 1:</attr> %bonus_level_chance% | ||
| <arrow> Only works while in your inventory | ||
| enchanting_talisman_ultimate: | ||
| name: "Ultimate Enchanting Talisman" | ||
| lore: |- | ||
| <arrow> Improves your odds of getting higher level enchants from the enchanting table | ||
| <arrow> <attr>Chance of incrementing enchantment level by 1:</attr> %bonus_level_chance% |
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.
These 3 have blue names due to their material - you can fix by putting <white> before their name
| hunting_talisman_simple: | ||
| name: "Simple Hunting Talisman" | ||
| lore: |- | ||
| <arrow> Grants you a chance to get an extra item for each drop when you kill a mob | ||
| <arrow> <attr>Chance for extra item:</attr> %bonus_item_chance% | ||
| <arrow> Only works while in your inventory | ||
| hunting_talisman_advanced: | ||
| name: "Advanced Hunting Talisman" | ||
| lore: |- | ||
| <arrow> Grants you a chance to get an extra item for each drop when you kill a mob | ||
| <arrow> <attr>Chance for extra item:</attr> %bonus_item_chance% | ||
| <arrow> Only works while in your inventory | ||
| hunting_talisman_ultimate: | ||
| name: "Ultimate Hunting Talisman" | ||
| lore: |- | ||
| <arrow> Grants you a chance to get an extra item for each drop when you kill a mob | ||
| <arrow> <attr>Chance for extra item:</attr> %bonus_item_chance% | ||
| <arrow> Only works while in your inventory | ||
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.
These 3 have yellow names (again just need<white> before the name)
Implements the following:
Makes tick interval of talismans configurable. Leaving Talisman ring #335 for future pr since with the Talisman class, this likely won't need to be refactored much to accommodate that.