RandomChance constructor
RandomChance(
- double chance
Implementation
RandomChance(this.chance)
: looting_multiplier = null,
assert(
chance >= 0 && chance <= 1, 'The chance must be between 0 and 1');