ped-variations: dirt and blood preset definitions from common.rpf #36
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!36
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/36/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-23 04:39 UTC · original
holdmysocks:claude/minigames-dirt→master· +122 −3 · 3 files · 2 commits · merged 2026-11-23 12:07 UTCFollow-up to #34.
ped-variationsnow attaches each variation's dirt or blood preset asdirt, read from common.rpf's graphics definitions (CGraphicsDefinitionsData, plain XML): the scalar settings, cloth and skin dirt modifiers, the colour (ColorLookupresolved fromCannedColors, RGB 0..255) and the dirt-mask channels with probabilities (AlphaMasksLookupresolved fromAlphaChannels). Example:AM_Dirtdefinition_BloodEffect= Blood_Red [86, 20, 24], mask channels 2 and 0 at 50 %.wardrobe::dirt_presetswith a unit test. Uses common.rpf only when it is indexed; otherwisedirtstays empty.