Skip to content

Commit

Permalink
Simplify PerkPlacement initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
tr4wzified committed Oct 1, 2020
1 parent b090809 commit b2926bf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions KnowYourEnemyMutagen/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,7 @@ private static void RunPatch(SynthesisState<ISkyrimMod, ISkyrimModGetter> state)
kyeNpc.Perks = new ExtendedList<PerkPlacement>();
foreach (string trait in traits)
{
PerkPlacement p = new PerkPlacement();
p.Perk = perks[trait];
p.Rank = 1;
PerkPlacement p = new PerkPlacement() { Perk = perks[trait], Rank = 1 };
kyeNpc.Perks.Add(p);
}

Expand Down

0 comments on commit b2926bf

Please sign in to comment.