@@ -5,25 +5,13 @@ namespace Loki
55{
66 public readonly struct Hair
77 {
8- private static readonly Hair [ ] SensibleHairs =
9- {
10- new Hair ( Loki . Properties . Resources . No_hair , "HairNone" ) ,
11- new Hair ( Loki . Properties . Resources . Braided_1 , "Hair3" ) ,
12- new Hair ( Loki . Properties . Resources . Braided_2 , "Hair11" ) ,
13- new Hair ( Loki . Properties . Resources . Braided_3 , "Hair12" ) ,
14- new Hair ( Loki . Properties . Resources . Braided_4 , "Hair6" ) ,
15- new Hair ( Loki . Properties . Resources . Long_1 , "Hair1" ) ,
16- new Hair ( Loki . Properties . Resources . Ponytail_1 , "Hair2" ) ,
17- new Hair ( Loki . Properties . Resources . Ponytail_2 , "Hair4" ) ,
18- new Hair ( Loki . Properties . Resources . Ponytail_3 , "Hair7" ) ,
19- new Hair ( Loki . Properties . Resources . Ponytail_4 , "Hair5" ) ,
20- new Hair ( Loki . Properties . Resources . Short_1 , "Hair8" ) ,
21- new Hair ( Loki . Properties . Resources . Short_2 , "Hair13" ) ,
22- new Hair ( Loki . Properties . Resources . Side_Swept_1 , "Hair9" ) ,
23- new Hair ( Loki . Properties . Resources . Side_Swept_2 , "Hair10" ) ,
24- new Hair ( Loki . Properties . Resources . Side_Swept_3 , "Hair14" ) ,
25- new Hair ( Loki . Properties . Resources . Blob_hair , "TrophyBlob" ) ,
26- } ;
8+ private static readonly IEnumerable < Hair > SensibleHairs =
9+ ItemDb . AllItems
10+ . Where ( i =>
11+ i . ItemType == ItemType . Customization
12+ && i . ItemName . ToLower ( ) . Contains ( "hair" ) )
13+ . Select ( i =>
14+ new Hair ( i . DisplayName , i . ItemName ) ) ;
2715
2816 private static readonly IEnumerable < Hair > SillyHairs =
2917 ItemDb . AllItems . Where ( i => i . ItemType == ItemType . Trophy )
0 commit comments