Show / Hide Table of Contents

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 Source

Modulus(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.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX