We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d525679 commit 4e4e002Copy full SHA for 4e4e002
1 file changed
Code/MethodSystem/Methods/NumberMethods/ChanceMethod.cs
@@ -21,6 +21,6 @@ public class ChanceMethod : ReturningMethod<BoolValue>, IAdditionalDescription
21
22
public override void Execute()
23
{
24
- ReturnValue = Args.GetFloat("chance") < UnityEngine.Random.Range(0f, 1f);
+ ReturnValue = Args.GetFloat("chance") >= UnityEngine.Random.Range(0f, 1f);
25
}
26
0 commit comments