Skip to content

Commit 4e4e002

Browse files
fix chance bug
1 parent d525679 commit 4e4e002

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Code/MethodSystem/Methods/NumberMethods/ChanceMethod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ public class ChanceMethod : ReturningMethod<BoolValue>, IAdditionalDescription
2121

2222
public override void Execute()
2323
{
24-
ReturnValue = Args.GetFloat("chance") < UnityEngine.Random.Range(0f, 1f);
24+
ReturnValue = Args.GetFloat("chance") >= UnityEngine.Random.Range(0f, 1f);
2525
}
2626
}

0 commit comments

Comments
 (0)