PropertyInterface
Nectunia.Utility.CriticalChance Class Reference

Detailed Description

Class to calculate if an action is critical

Properties

float Coefficient [get, set]
 The coefficient of chance to have a critic. More...
 

Public Member Functions

 CriticalChance (float coefficient)
 
bool isCritical ()
 Is the current chance Critical ? More...
 

Static Public Member Functions

static bool isCritical (float coefficient)
 Is the current chance Critical ? More...
 

Property Documentation

◆ Coefficient

float Nectunia.Utility.CriticalChance.Coefficient
getset

The coefficient of chance to have a critic.

Constructor & Destructor Documentation

◆ CriticalChance()

Nectunia.Utility.CriticalChance.CriticalChance ( float  coefficient)

Member Function Documentation

◆ isCritical() [1/2]

bool Nectunia.Utility.CriticalChance.isCritical ( )

Is the current chance Critical ?

Returns
True if it's a critical, false otherwise.

◆ isCritical() [2/2]

static bool Nectunia.Utility.CriticalChance.isCritical ( float  coefficient)
static

Is the current chance Critical ?

Parameters
coefficientThe coefficient of chance to have a critic.
Returns
True if it's a critical, false otherwise.