public static void Init() { PlagueOverheadVFX = VFXToolbox.CreateOverheadVFX(PlagueVFXPaths, "PlagueOverhead", 7); GameActorPlagueEffect StandPlague = StatusEffectHelper.GeneratePlagueEffect(100, 2, true, ExtendedColours.plaguePurple, true, ExtendedColours.plaguePurple); StaticStatusEffects.StandardPlagueEffect = StandPlague; }
public static GameActorPlagueEffect GeneratePlagueEffect(float duration, float dps, bool tintEnemy, Color bodyTint, bool tintCorpse, Color corpseTint) { GameActorPlagueEffect commonPlague = new GameActorPlagueEffect { duration = 10, effectIdentifier = "Plague", resistanceType = EffectResistanceType.None, DamagePerSecondToEnemies = 2f, ignitesGoops = false, OverheadVFX = PlagueStatusEffectSetup.PlagueOverheadVFX, AffectsEnemies = true, AffectsPlayers = false, AppliesOutlineTint = false, PlaysVFXOnActor = false, AppliesTint = tintEnemy, AppliesDeathTint = tintCorpse, TintColor = bodyTint, DeathTintColor = corpseTint, }; return(commonPlague); }