Skip to content

Commit

Permalink
Update PsionicsSystem.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
VMSolidus committed Oct 13, 2024
1 parent eac6a19 commit ff66f38
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Content.Server/Psionics/PsionicsSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ff66f38

Please sign in to comment.