Viewer: weapon finishes per part type #121
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!121
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/121/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@holdmysocks on GitHub · 2026-11-24 04:53 UTC · original
holdmysocks:claude/weapon-finishes→master· +150 −8 · 3 files · 4 commits · merged 2026-11-24 05:06 UTCStacked on #119 (its commit shows here until it merges).
What this adds
weapon_families).Index::weapon_finishes(model)returns the finishes for a model: the family that lists the model, and the part type that is a word of the model name (…_slide_02->slide,…_sight_f_01->sight_fbeforesight).#finish=<part type hex>:<preset hex>,…, so it also works from the command line and survives part changes.colour_weapontakes the chosen preset instead of the part's own.What was checked
barrel,receiver,stock,magazine,frame,trigger,bolt,pgrip,muzzle,grip,slide,optic...), covering 1,051 of the 1,300 variants; the other 18 hashes are unnamed and are only offered when a model word hashes to them.--gpu radeon): the pistol with#finish=for frame and slide comes out gold with the panel showing both choices; without it, as before.cargo test -p sixng-core: 149 passed (the matlib test covers the family lookup and the longest-word rule). Release builds of CLI and viewer pass.What is not done / not known