Partially reverts 19e782fc
Crafted auto types for futuristic items were previously disabled in a hotfix after the R84 release. After a bit of digging I managed to trace down the issue to an improper assignment of Item.Property
, one that is triggered when the following two conditions are met:
null
).Now, both the typed
and modular
archetypes have proper support for setting Item.Property
, but for the null
archetype? There is currently no standardized way of properly parsing the auto type string and assigning it. The end result is that most (if not all) the auto types of the relevant items are broken, be it either in minor or major ways.
This PR fixes aforementioned issue by placing a check for filtering out all extended items that lack an archetype.
const AssetNames: Array<string> = Asset.filter((a) => (
a.Extended
&& (a.Archetype == null)
&& (a.AllowType != null)
&& (a.AllowType.length > 0)
)).map((a) => a.Name);
console.log(AssetNames);
/**
* 0: "Halo"
* 1: "Halo"
* 2: "AnalBeads2"
* 3: "LoveChastityBelt"
* 4: "FuturisticHarness"
* 5: "FuturisticHarness"
* 6: "FuturisticBra"
* 7: "FullLatexSuit"
* 8: "PrisonLockdownSuit"
* 9: "TransportJacket"
* 10: "SpankingToys"
* 11: "SlaveCollar"
* 12: "ShockCollar"
* 13: "AutoShockCollar"
* 14: "CollarShockUnit"
* 15: "CollarAutoShockUnit"
* 16: "CollarNameTag"
* 17: "CollarNameTagOval"
* 18: "CollarNameTagPet"
* 19: "CollarNameTagLover"
* 20: "CollarNameTagLivestock"
* 21: "FuturisticPanelGag"
* 22: "FuturisticHarnessPanelGag"
* 23: "FuturisticHarnessBallGag"
* 24: "WoodenBox"
* 25: "VacBedDeluxe"
* 26: "Locker"
* 27: "SmallLocker"
* 28: "Kennel"
* 29: "TransportWoodenBox"
* length: 30
* <prototype>: Array []
*/