コード例 #1
0
ファイル: Effects.cs プロジェクト: b4k4m0n0/Cairath-ONI-Mods
		public static List<Effect> GenerateEffectsList(DebuffTier tier)
		{	
			return new List<Effect>
			{
				CreatePitchBlack(tier),
				CreateDark(tier)
			};
		}
コード例 #2
0
ファイル: Effects.cs プロジェクト: b4k4m0n0/Cairath-ONI-Mods
		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;
		}
コード例 #3
0
ファイル: Effects.cs プロジェクト: b4k4m0n0/Cairath-ONI-Mods
		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;
		}