WIP: feat: make items consumable #53

Draft
Athemis wants to merge 26 commits from feature/consume-items into main
Owner

This PR makes items consumable.

Fixes #51

This PR makes items consumable. Fixes #51
Athemis self-assigned this 2025-12-16 19:10:34 +00:00
Add consumable flag and gated consume overlay for items.
feat(packs): add consumable flag to suitable items
All checks were successful
ci/woodpecker/pr/checks Pipeline was successful
61990e0a72
This includes all potions, light sources and herbs
feat: track item uses for consumables and support multi-use items
All checks were successful
ci/woodpecker/pr/checks Pipeline was successful
332814534b
feat: track consumable uses and prevent zero-qty with remaining uses
Some checks failed
ci/woodpecker/pr/checks Pipeline failed
95afb39733
refactor: change pre-update-item hook from TypeScript to JavaScript
All checks were successful
ci/woodpecker/pr/checks Pipeline was successful
cc0dd6a689
test: cover preUpdateItem hook edge cases
All checks were successful
ci/woodpecker/pr/checks Pipeline was successful
61908b7fc7
feat: switch consumable uses to max/spent and add hook coverage
All checks were successful
ci/woodpecker/pr/checks Pipeline was successful
e2a9535ef5
Merge branch 'main' into feature/consume-items
All checks were successful
ci/woodpecker/pr/checks Pipeline was successful
8023cb10dc
refactor: sorting icons use shared utility function
All checks were successful
ci/woodpecker/pr/checks Pipeline was successful
2e9497d72c
style(ui): indicate "consume" by hand icon
All checks were successful
ci/woodpecker/pr/checks Pipeline was successful
0ddfadb1a2
feat: add uses column for consumables
All checks were successful
ci/woodpecker/pr/checks Pipeline was successful
3e491140d6
style: rename remaining uses variable to avoid confusion
All checks were successful
ci/woodpecker/pr/checks Pipeline was successful
54dbf57dc8
feat: add consume target selection for effects
Some checks failed
ci/woodpecker/pr/checks Pipeline failed
85f46f401d
refactor: remove uses column and related flags from equipment inventory
Some checks failed
ci/woodpecker/pr/checks Pipeline failed
837c4dba40
list display

- currently no equipment item has a limited amount of uses -> drop the
  column to not waste space
fix(tests): adjust render-chat globals stubs
All checks were successful
ci/woodpecker/pr/checks Pipeline was successful
5ca78f54b7
feat: add consume effect type selector and default to roll
All checks were successful
ci/woodpecker/pr/checks Pipeline was successful
d1c6ff0df5
- Add allowTargetChange flag for consume effects with checkbox UI
- Display target info and allow changing target via chat messages
- Implement undo button to revert item consume with permission checks
- Disable buttons after effect applied or undone
- Add related localization strings and styles for chat components
Merge remote-tracking branch 'origin/main' into feature/consume-items
All checks were successful
ci/woodpecker/pr/checks Pipeline was successful
ba4a7d9042
All checks were successful
ci/woodpecker/pr/checks Pipeline was successful
Required
Details
This pull request is marked as a work in progress.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feature/consume-items:feature/consume-items
git switch feature/consume-items
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Athemis/ds4!53
No description provided.