Interface PercentChanceData

The event and chance data for withPercentChance.

interface PercentChanceData {
    chance: number;
    event?: (() => void);
}

Properties

Properties

chance: number

The trigger probability, should be a percentage (0~1).

event?: (() => void)

The event.