Use rqid for armor coverage #379
Labels
🚩 breaking
Will need migration script and wiki update
type: enhancement
Improvement to existing feature. Use "feat: " commit message
Milestone
Why: Is your feature request related to a problem?
Use Rqid to link protected hitlocations to armor since the hit location name can change depending on language.
What: Describe the solution you'd like
Change
hitLocations
on the armor item that currently is an array of hitlocation names, toprotects
that should be an array of hitlocation rqids. The rqid should be used to find embedded hitlocation on the same actor.Additional context
This will require all hitlocations to have a rqid. Use this format
i.hit-location.bodytype-hl-name
, that way it will be easy to find all hitlocations for a particular body type with a regex rqid search likeawait game.system.api.rqid.fromRqidRegexAll(/i.hit-location.humanoid.*/, 'i')
.Related issues
The text was updated successfully, but these errors were encountered: