public static List<Effect> GenerateEffectsList(DebuffTier tier) { return new List<Effect> { CreatePitchBlack(tier), CreateDark(tier) }; }
private static Effect CreateDark(DebuffTier tier) { var dark = new Effect(DarkId, "Dark", "This Duplicant is in a dark place and can't see well!", 0f, true, false, true) { SelfModifiers = new List<AttributeModifier>() }; dark.SelfModifiers.Add(new AttributeModifier("Athletics", DebuffValues.Dark.AthleticsDebuff[tier])); foreach (var attributeId in AttributeIds) { dark.SelfModifiers.Add(new AttributeModifier(attributeId, DebuffValues.Dark.OtherStatsDebuff[tier])); } return dark; }
private static Effect CreatePitchBlack(DebuffTier tier) { var pitchBlack = new Effect(PitchBlackId, "Pitch Black", "This Duplicant can't see anything!", 0f, true, false, true) { SelfModifiers = new List<AttributeModifier>() }; pitchBlack.SelfModifiers.Add(new AttributeModifier("Athletics", DebuffValues.PitchBlack.AthleticsDebuff[tier])); foreach (var attributeId in AttributeIds) { pitchBlack.SelfModifiers.Add(new AttributeModifier(attributeId, DebuffValues.PitchBlack.OtherStatsDebuff[tier])); } return pitchBlack; }