From ff66f387b5abd84be72cb5e3ca46142956d808be Mon Sep 17 00:00:00 2001 From: VMSolidus Date: Sun, 13 Oct 2024 16:42:44 -0400 Subject: [PATCH] Update PsionicsSystem.cs --- Content.Server/Psionics/PsionicsSystem.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Content.Server/Psionics/PsionicsSystem.cs b/Content.Server/Psionics/PsionicsSystem.cs index 0d05000a3c..90f69cf796 100644 --- a/Content.Server/Psionics/PsionicsSystem.cs +++ b/Content.Server/Psionics/PsionicsSystem.cs @@ -55,7 +55,7 @@ public override void Update(float frameTime) { base.Update(frameTime); foreach (var roller in _rollers) - RollPsionics(roller.uid, roller.component, false); + RollPsionics(roller.uid, roller.component, true); _rollers.Clear(); } public override void Initialize() @@ -214,7 +214,8 @@ public void RollPsionics(EntityUid uid, PsionicComponent component, bool applyGl // Calculate the initial odds based on the innate potential var baselineChance = component.Chance * component.PowerRollMultiplier - + component.PowerRollFlatBonus; + + component.PowerRollFlatBonus + + _random.NextFloat(0, 100); // Increase the initial odds based on Glimmer. // TODO: Change this equation when I do my Glimmer Refactor