mirror of
https://github.com/runelite/plugin-hub.git
synced 2026-04-30 11:55:41 -04:00
update chance-man to v2.1.0 (#7778)
* Update chance-man to 2.0.0 Massive Overhaul: Integrate New Menus & Account Systems, Refactor Core Functionality Menus Enhancements: - Differentiated ground item interactions from other menu entries. - Introduced helper methods (isGroundItem and isLockedGroundItem) to accurately detect and manage locked ground items. - Locked ground items now display their 'Take' (and similar) options in grey (<col=808080> tags) and are disabled via a no-op click handler, while 'Drop' actions remain enabled. - Added a static method handleGroundItems as an extra safeguard to ensure locked ground item events are properly consumed. Account System Overhaul: - Integrated a new Account package to streamline multi-account management. - Added event handling (AccountChanged) for seamless account state transitions. - Enhanced item tracking and permissions with a robust account management logic. - Updated ChanceManPlugin with a public getter getItemManager() for reliable canonicalization, ensuring consistent operations across accounts. Refactoring and Structural Improvements: - Restructured the project into clearer packages: com.chanceman.account for account-related functionality and com.chanceman.menus for menu interactions. - Updated ActionHandler to manage user interactions more robustly, preventing unintended operations and enforcing skill, spell, and item usage restrictions. - Consolidated various helper classes and logic, including Restrictions, RuneProvider, SkillItem, SkillOp, and Spell. - Enhanced overall code quality and readability * Update chance-man add more blocked items to ItemsFilter increase item pool number * Update chance-man add more blocked items. * Update chance-man preserve order and improve manual roll messaging - Change unlocked/rolled items storage to LinkedHashSet to maintain insertion order, allowing the UI to display the most recent items on top. - set a manualRoll flag in the roll animation so manual rolls display "by pressing a button" instead of a random item name. * Update chance-man update deprecated usages to use gameval add items to itemfilter * Update chance-man update world types in "isNormalWorld" * Update chance-man to 2.1.0 Enhance filtering for poison weapons, flatpacks, and armour sets - Refactor ItemsFilter: - Add new files for supporting features (e.g., PoisonWeapons, ArmourSets, BlockedItems). - Simplify isBlocked() to combine checks for flatpacks, armour sets, and blocked items. - Add isPoisonEligible() method that wraps the PoisonWeapons logic for filtering eligible poisonable weapons. - Add new global prerequisites for poisonable weapons in the PoisonWeapons enum: - Introduce global constants for standard, enhanced, and superior weapon poisons. - Update all poisonable weapons (e.g. daggers, javelins, spears, darts, knives, arrows, bolts) with four variants: base, (p), (p+), and (p++). - Add new configuration options: - enableArmourSets: Toggle armour set items in the rollable list. - enableFlatpacks: Toggle flatpack items in the rollable list. - requireWeaponPoison: Require that both the base weapon and its matching global weapon poison are unlocked for poison variants. - Update ChanceManPlugin: - Modify refreshTradeableItems() to exclude poison variants when the base weapon or its corresponding global poison is not unlocked. * Update chance-man
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
repository=https://github.com/ChunkyAtlas/chance-man.git
|
||||
commit=5d966ec18dbb3aa766b7a92fef74050517d22416
|
||||
commit=b0dda087c9e5ef341fe9bc3c4d2a45557388a0da
|
||||
|
||||
Reference in New Issue
Block a user