private void SpeedEffect(FlippableCover obj) { PlayerController owner = base.Owner; owner.PlayEffectOnActor(EasyVFXDatabase.SpeedUpVFX, new Vector3(0, 0.25f, 0), true, true); PlayerToolbox tools = owner.GetComponent <PlayerToolbox>(); if (tools) { float time = 7f; if (owner.PlayerHasActiveSynergy("Sound Barrier")) { time = 14f; } tools.DoTimedStatModifier(PlayerStats.StatType.MovementSpeed, 2f, time, StatModifier.ModifyMethod.ADDITIVE); } }
public static void Enrage(this PlayerController player, float duration) { PlayerToolbox effecter = player.GetComponent <PlayerToolbox>(); effecter.Enrage(duration); }