// Token: 0x0600009C RID: 156 RVA: 0x00006F50 File Offset: 0x00005150 public static void Apply(Skin skin, SkinType skinType) { bool flag = skinType == SkinType.Weapons; bool flag2 = flag; if (flag2) { Dictionary <ushort, int> itemSkins = OptimizationVariables.MainPlayer.channel.owner.itemSkins; bool flag3 = itemSkins == null; bool flag4 = !flag3; if (flag4) { ushort inventoryItemID = Provider.provider.economyService.getInventoryItemID(skin.ID); SkinOptions.SkinConfig.WeaponSkins.Clear(); int num; bool flag5 = itemSkins.TryGetValue(inventoryItemID, out num); bool flag6 = flag5; if (flag6) { itemSkins[inventoryItemID] = skin.ID; } else { itemSkins.Add(inventoryItemID, skin.ID); } OptimizationVariables.MainPlayer.equipment.applySkinVisual(); OptimizationVariables.MainPlayer.equipment.applyMythicVisual(); foreach (KeyValuePair <ushort, int> keyValuePair in itemSkins) { SkinOptions.SkinConfig.WeaponSkins.Add(new WeaponSave(keyValuePair.Key, keyValuePair.Value)); } } } else { SkinsUtilities.ApplyClothing(skin, skinType); } }