FickleLuckAdjustment

Qualified name:Ouxsoft\LuckByDice\LuckAdjustment\FickleLuckAdjustment
Extends:AbstractLuckAdjustment
class FickleLuckAdjustment
public getAdjustment([]) → int

Update luck based on percentage of roll outcome

Parameters:
  • $rollPercent (float) – Default: 0.5
Returns:

int –

public getMax() → int

Get max

Returns:int –
public getMin() → int

Get min

Returns:int –
public getName() → string

Get name of adjustment class

Returns:string –
public run(int $currentLuck[, float $rollPercent]) → int
Parameters:
  • $currentLuck (int) –
  • $rollPercent (float) – Default: 0.5
Returns:

int –

public setMax(int $max)

Set max

Parameters:
  • $max (int) –
Returns:

void

public setMin(int $min)

Set min

Parameters:
  • $min (int) –
Returns:

void