Skip to content
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

White item got enchanted with a Tier 4 enchant #28

Open
GScilingo opened this issue Oct 19, 2024 · 1 comment
Open

White item got enchanted with a Tier 4 enchant #28

GScilingo opened this issue Oct 19, 2024 · 1 comment

Comments

@GScilingo
Copy link

I've looted from a corpse a low lvl cape and got the +28 Spirit enchant which shouldn't be posible as it is a tier 4 enchantment in the item_enchantment_random_tier table

Looking at the code the maximum enchant tier for a white item should be 2.

@LordAle
Copy link

LordAle commented Oct 28, 2024

The SQL query results in any entry being chosen. It can be fixed by changing the WHERE clause to something similar to this :

tier={} AND (exclusiveSubClass IS NULL OR exclusiveSubClass={}) AND (class='ANY' OR class='{}')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants