iterami/Docs.htm/common HTM Projects/core.js/core_random_drop(args)
- Tests
- Selects a random drop from a table of options each with their own percentage chance.
- The "nothing-type" arg affects chance of returning false:
- 0: If total chance of all drops is < the value of the "nothing" arg, fill the remaining percent with returning false.
- 1: Add an additional fixed percentage chance of returning false.
nothing
| 1
| number
|
nothing-type
| 0
| number
|
options
|
| object of numbers
|