Skip to content

Commit

Permalink
Change this just incase Unity is borked.
Browse files Browse the repository at this point in the history
  • Loading branch information
joker-119 committed Mar 2, 2021
1 parent c92a8d1 commit 36f822a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CustomItems/Items/TranquilizerGun.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ protected override void OnHurting(HurtingEventArgs ev)
ev.Amount = Damage;

if (ev.Target.Team == Team.SCP && ResistantScps)
if (UnityEngine.Random.Range(1, 101) <= ScpResistChance)
if (CustomItems.Instance.Rng.Next(100) <= ScpResistChance)
return;

float dur = Duration;
Expand Down

0 comments on commit 36f822a

Please sign in to comment.