Skip to content

Commit

Permalink
Merge pull request #80 from SS14-Classic:hotfix-psionic-rolls
Browse files Browse the repository at this point in the history
Update PsionicsSystem.cs
  • Loading branch information
VMSolidus authored Oct 13, 2024
2 parents 12b331e + ff66f38 commit 2302849
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 2302849

Please sign in to comment.