@swrpg-online/dice 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +5 -3
- package/package.json +1 -1
package/dist/cli.d.ts
CHANGED
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.main = void 0;
|
|
4
5
|
exports.parseDiceNotation = parseDiceNotation;
|
|
5
6
|
exports.formatResult = formatResult;
|
|
6
7
|
const dice_1 = require("./dice");
|
|
@@ -54,10 +55,10 @@ function parseDiceNotation(input) {
|
|
|
54
55
|
break;
|
|
55
56
|
// b/boo = Blue/Boost
|
|
56
57
|
case "b":
|
|
57
|
-
pool.
|
|
58
|
+
pool.boostDice = count;
|
|
58
59
|
break;
|
|
59
60
|
case "boo":
|
|
60
|
-
pool.
|
|
61
|
+
pool.boostDice = count;
|
|
61
62
|
break;
|
|
62
63
|
// r/c = Red/ Challenge
|
|
63
64
|
case "r":
|
|
@@ -125,6 +126,7 @@ const main = () => {
|
|
|
125
126
|
const result = (0, dice_1.roll)(pool);
|
|
126
127
|
console.log(formatResult(result));
|
|
127
128
|
};
|
|
129
|
+
exports.main = main;
|
|
128
130
|
if (require.main === module) {
|
|
129
|
-
main();
|
|
131
|
+
(0, exports.main)();
|
|
130
132
|
}
|