Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lsocrate/wod-dice
https://github.com/lsocrate/wod-dice
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/lsocrate/wod-dice
- Owner: lsocrate
- Created: 2012-03-22T00:47:52.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-10-19T20:48:22.000Z (about 11 years ago)
- Last Synced: 2024-11-28T04:06:06.133Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 104 KB
- Stars: 2
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Usage
```javascript
pool = new Pool(7); // create pool with 7 dice
pool = new Pool({dice:7, rerollOn:9, weak:true}); // create pool with 7 dice, rerolling on 9's and with attribute weakness
pool = new Pool(); // create empty pool
pool.isWeak(); // Set pool as weak. 10's do not reroll and 1's cancel successes
pool.reroll(8); // Set pool to reroll 8 and above
successes = pool.roll(); // Roll pool and return successes// COMBO USE
successes = new Pool().addDice(8).penalty(2).isWeak().reroll(9).roll();
```