Repository navigation
Open the loadout to Bandits and remove /handsup - #53
Merged
Merged
Conversation
The loadout now opens for any character with a lockpicking, robbery or pickpocket trait, since robbery's coin pouch and grave looting read the loadout categories. Chest and display lockpicking keep the top-level traits gate. /handsup, its inspection listeners and the ItemsAdder pose are removed, along with the ItemsAdder build dependency only they used. The bundled config now ships debug-allow-own-chest off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
The removed hands-up animation also re-skinned every ItemsAdder emote from the active character profile. Keep that as EmoteSkinListener, registered when ItemsAdder is enabled, with the ItemsAdder dependency and softdepend it needs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Bandits can use the loadout
/thievery loadoutnow opens for any character with a lockpicking trait (top-leveltraits:), a robbery trait (robbery.traits) or a pickpocket trait (pickpocket.traits). On Main that meansthieforbandit.TraitChecker.hasLockpickingTraits, top-leveltraits:only), so Bandits still cannot pick locks.traits:list opened the loadout.TraitChecker.hasRequiredTraitsis replaced byhasLoadoutTraits. Its only caller was the loadout command. The missing-trait message is unchanged ("You lack the training for thievery!"). The help listing and tab-complete already showloadoutto every player, and no GUI opens the loadout, so nothing else needed changing./handsupremoved/handsupcommand, theinspection/package (HandsUpManager, HandsUpCharacterListener, InspectionInventory, HandsUpAnimation, ItemsAdderHandsUpAnimation) and their tests.plugin.ymlcommand entry.Character skins on ItemsAdder emotes kept
ItemsAdderHandsUpAnimationalso re-skinned every ItemsAdder emote, not just the hands-up pose, using the player's active character profile textures. ItemsAdder 4.0.18 otherwise renders emotes with the account's Mojang skin.emote/EmoteSkinListener, which is registered when ItemsAdder is enabled. It keeps the original next-tick skinning and its test (anyEmoteIsSkinnedFromTheActiveProfileOnTheNextTick).ItemsAddersoftdepend and the.github/JAR download, checksum and install step are unchanged frommain.tfmc_emotes/handsup) and the Docs pages that mention it are separate repositories and are not touched here.Default config
config.ymlnow shipslockpicking.debug-allow-own-chest: false. The code default was alreadyfalse.Tests
AccessUtilitiesTestcase covers the loadout gate: a bandit, a pickpocket-only character and a thief can open it, a scholar cannot, Bandits and pickpockets still fail the lock-picking check, and an open (empty or null) gate opens the loadout.ThieveryTestnow asserts that/handsupis no longer registered, and thatEmoteSkinListeneris registered only when ItemsAdder is present.EmoteSkinListenerTestcovers next-tick skinning of any emote, a missing profile, missing or empty textures, a missing renderer, and failures being logged.mvn clean verifypasses for every class touched here, with full coverage onTraitChecker,CommandManager,EmoteSkinListenerand the loaders. The tests that fail locally are the known Windows file-locking/path failures in the lock-store tests, and they fail the same way onorigin/main. Linux CI is authoritative.🤖 Generated with Claude Code