// FIXME: Some way to combine StatParts for multiple LADs? public override void ResolveReferences(LootAffixDef parentDef) { var statPart = new StatPart_LootAffix { parentStat = affectedStat, parentStatChanger = this, parentLootAffix = parentDef, }; if (affectedStat.parts == null) { affectedStat.parts = new List <StatPart> { statPart } } ; else { affectedStat.parts.Add(statPart) ; } affectedStat.ResolveReferences(); affectedStat.PostLoad(); // sometimes a reload, since we added a new part }