-
Notifications
You must be signed in to change notification settings - Fork 802
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
Make invalid items unusable #7506
Make invalid items unusable #7506
Conversation
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.
Can we make it so that this is triggered when the is loaded so that it is reflected in the hero menu and doesn't require that they first interact with there gear like in the second video?
I'll look into that but it's a good idea |
Would it be advantageous to create a new item struct variable that's similar to |
Additionally, what are the thoughts on treating items as invalid if 2 of the exact same item data are found in the inventory? For example, if someone duplicates a ring, one of the rings will temporarily become unusable while both exist in the inventory. Removing either copy from the inventory would render the existing one once again usable. In Diablo, this would only affect rings, as it's the only type of item you can equip 2 of simultaneously. In Hellfire, this would prevent Bard from using 2 duplicate weapons. When players die due to monsters, wearing duped items can create a situation anyway where one of the items get deleted. |
Lets keep that for a later PR. This one ha a good size and only minor changes are needed for it to get merged. It's also unclear how we should handle legit duplicates. This seems a bit more complex and would have little benefit.
I think it's going overboard, they shouldn't really be a feature :D |
6ba8b3e
to
a289bff
Compare
Town sourced items exceeding maximum vendor prices are no longer deleted, but made unusable instead. |
Stops players from equipping illegal items and removes the bonuses of already equipped illegal items when the game recalculates equipped items (for loading players with existing illegal items).
The definition of illegal items are any items that would fail existing multiplayer item validation, resulting in the "invalid packet" message or preventing a game join.
This creates a situation where debug build begins creating items that the developer cannot equip, however one can easily override this check. I believe it's better that way, as it prevents non-developers from utilizing debug build for cheating purposes.
The necessity for this comes from a recent Discord discussion, where a legitimate player was given an illegal item prior to the implementation of item validation. As there was no indication this item was illegal, this caused the player to end up unable to join games and unaware why.
Desktop.2024.11.03.-.15.23.21.50.mp4