Skip to content

Commit

Permalink
Update StackingArchetypes.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Holic75 committed Apr 2, 2021
1 parent 86bc6fe commit b3069a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ZFavoredClass/StackingArchetypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ static BlueprintArchetype createCombinedArchetypeMultiple(params BlueprintArchet
combined_archetype.ChangeCasterType = combined_archetype.ChangeCasterType || a.ChangeCasterType;
combined_archetype.ComponentsArray = combined_archetype.ComponentsArray.AddToArray(a.ComponentsArray);
}

combined_archetype.AddComponent(Helpers.Create<CombineArchetypes>(c => c.archetypes =archetypes));
combined_archetype.ComponentsArray = combined_archetype.ComponentsArray.Distinct().ToArray();
combined_archetype.AddComponent(Helpers.Create<CombineArchetypes>(c => c.archetypes = archetypes));
combined_archetypes[combined_archetype.name] = combined_archetype;
return combined_archetype;
}
Expand Down

0 comments on commit b3069a5

Please sign in to comment.