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.
- Any other value: no additional chance of returning false is added.
nothing
| 1
| number
|
nothing_type
| 0
| number
|
options
|
| object of numbers
|