public ClothingPart(ClothingPartEnum id, int gpCost, int godTierNeeded, bool isPermanentUnlocked, bool isPlayerSet) { this.Id = id; this.PermanentGPCost = gpCost; this.GodDefeatedTierNeeded = godTierNeeded; this.IsPermanentUnlocked = isPermanentUnlocked; this.IsPlayerSet = isPlayerSet; }
private static void AddIfMissing(ref List <ClothingPart> allParts, List <ClothingPart> initial, ClothingPartEnum missingParts) { if (allParts.FirstOrDefault((ClothingPart x) => x.Id == missingParts) == null) { ClothingPart item = initial.FirstOrDefault((ClothingPart x) => x.Id == missingParts); allParts.Add(item); } }