Skip to content

ac equipment bug fixes - #17

Open
fayeforpay wants to merge 1 commit into
LastExceed:masterfrom
fayeforpay:inspect-equipment
Open

fayeforpay wants to merge 1 commit into
LastExceed:masterfrom
fayeforpay:inspect-equipment

Conversation

@fayeforpay

Copy link
Copy Markdown
Contributor

a player changed their Shoulder armor to Wood and received this message:

kicked Player because equipment[Shoulder].material was Wood, allowed was any of [Iron, Obsidian, Bone, Gold, Saurian, Parrot, Mammoth, Ice, Licht, Silk, Linen, Cotton]

which resulted in them reporting it to feedback because it displayed all materials, not just allowed materials for their class specifically - community feedback
I do agree that this can be confusing for some players and potentially trick them into equipping an invalid item which could get them kicked again. Which is why I included this "bug", which is not really a bug.

However, while adding this feature I stumbled upon two real bugs, that allow players to use weapons and armor from other classes:

  1. inspect_occupation checked equipment against the previous_state, allowing players to use armor from other classes
  2. weapons weren't checked against occupation, allowing players to use weapons from other classes

so a player was able to equip a Ranger set, then switch to Warrior (using cheats) without being detected by the anti cheat

+ inspect_occupation checked equipment against the previous_state, allowing players to use any armor they want
+ weapons weren't checked against occupation, allowing players to use any weapon they want
+ equipping armor with an invalid material (such as Wood, Silver, etc.) gave an error message with a full list of all allowed armor materials, not just for the player's current 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

Successfully merging this pull request may close these issues.

1 participant