mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-15 12:27:46 +01:00
Use strongly typed ids in most places.
This commit is contained in:
parent
dccd347432
commit
18b6b87e6b
26 changed files with 192 additions and 193 deletions
|
|
@ -225,10 +225,10 @@ internal record class ResolveContext(Configuration Config, IObjectIdentifier Ide
|
|||
{
|
||||
"chara" => SafeGet(path, 1) switch
|
||||
{
|
||||
"accessory" => IsMatchEquipment(path[2..], $"a{Equipment.Set.Value:D4}"),
|
||||
"equipment" => IsMatchEquipment(path[2..], $"e{Equipment.Set.Value:D4}"),
|
||||
"accessory" => IsMatchEquipment(path[2..], $"a{Equipment.Set.Id:D4}"),
|
||||
"equipment" => IsMatchEquipment(path[2..], $"e{Equipment.Set.Id:D4}"),
|
||||
"monster" => SafeGet(path, 2) == $"m{Skeleton:D4}",
|
||||
"weapon" => IsMatchEquipment(path[2..], $"w{Equipment.Set.Value:D4}"),
|
||||
"weapon" => IsMatchEquipment(path[2..], $"w{Equipment.Set.Id:D4}"),
|
||||
_ => null,
|
||||
},
|
||||
_ => null,
|
||||
|
|
@ -238,7 +238,7 @@ internal record class ResolveContext(Configuration Config, IObjectIdentifier Ide
|
|||
=> SafeGet(path, 0) == equipmentDir
|
||||
? SafeGet(path, 1) switch
|
||||
{
|
||||
"material" => SafeGet(path, 2) == $"v{Equipment.Variant:D4}",
|
||||
"material" => SafeGet(path, 2) == $"v{Equipment.Variant.Id:D4}",
|
||||
_ => null,
|
||||
}
|
||||
: false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue