Skip to content

gui/create-item: fix clothing material filters and bag powders/seeds#1578

Open
sizzlins wants to merge 3 commits intoDFHack:masterfrom
sizzlins:fix/issue-5782-create-item-bugs
Open

gui/create-item: fix clothing material filters and bag powders/seeds#1578
sizzlins wants to merge 3 commits intoDFHack:masterfrom
sizzlins:fix/issue-5782-create-item-bugs

Conversation

@sizzlins
Copy link
Copy Markdown

Fixes #5782

  • Updates modtools/create-item.lua to dynamically locate a compatible cloth/leather material, spawn a bag, and utilize dfhack.items.moveToContainer to securely bag POWDER_MISC and SEEDS (addressing powder item spatter and seed-induced FPS decay).
  • Modifies gui/create-item.lua to properly map PANTS to ARMOR and allow mat.flags.ITEMS_SOFT in the fallback filter, fixing the inability to select soft materials for shirts and tunics while properly restricting loincloths.

- Bag powders and seeds dynamically via modtools/create-item moveToBag
- Allow ITEMS_SOFT in ARMOR fallback
- Map PANTS to ARMOR for correct cloth restriction
@sizzlins sizzlins marked this pull request as ready for review April 21, 2026 14:44
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