Skip to content

Commit

Permalink
Merge pull request #997 from jrcarl624/patch-2
Browse files Browse the repository at this point in the history
Fixed an a header inconsistancy for weight
  • Loading branch information
QuazChick authored Feb 9, 2025
2 parents 6a16834 + 3b4db57 commit 657dbf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/concepts/sounds.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ The pitch of the sound (how low/high it sounds). Should be a positive value. For

Set to `true` by default.

### weight
#### weight

If there is more than one sound in the list, the sound to be played is chosen randomly. `"weight"` (integer value like 5) will give the relative chance that this sound is chosen from the list. For example, if there are two sounds in the list, one with `"weight": 10` and the other with `"weight": 2`, the first will be played approximately 5 times more likely than the second (accurately: `10 / (10 + 2) = 83.3%` chance vs. `2 / (10 + 2) = 16.7%` chance) . Set to `1` by default.

Expand Down

0 comments on commit 657dbf9

Please sign in to comment.