Struct Statics.ChanceSyntax
Struct that allows percentage syntax that will be evaluated at runtime.
Namespace: Towel
Assembly: Towel.dll
Syntax
public struct ChanceSyntax
Operators
| Improve this Doc View SourceModulus(Double, Statics.ChanceSyntax)
Creates a chance from a percentage that will be evaluated at runtime.
Declaration
public static bool operator %(double percentage, Statics.ChanceSyntax chance)
Parameters
Type | Name | Description |
---|---|---|
System.Double | percentage | The value of the percentage. |
Statics.ChanceSyntax | chance | The chance syntax struct object. |
Returns
Type | Description |
---|---|
System.Boolean | True if the the chance hits. False if not. |