@swrpg-online/dice 1.0.3 → 1.0.4

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 CHANGED
@@ -1,2 +1,4 @@
1
1
  #!/usr/bin/env node
2
- export {};
2
+ import { DicePool } from "./types";
3
+ export declare function parseDiceNotation(input: string): DicePool;
4
+ export declare function formatResult(result: any): string;
package/dist/cli.js CHANGED
@@ -1,6 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.parseDiceNotation = parseDiceNotation;
5
+ exports.formatResult = formatResult;
4
6
  const dice_1 = require("./dice");
5
7
  // import * as path from 'path';
6
8
  function parseDiceNotation(input) {
@@ -73,16 +75,16 @@ function parseDiceNotation(input) {
73
75
  break;
74
76
  // blk/k/sb/s = Black/Setback
75
77
  case "blk":
76
- pool.boostDice = count;
78
+ pool.setBackDice = count;
77
79
  break;
78
80
  case "k":
79
- pool.boostDice = count;
81
+ pool.setBackDice = count;
80
82
  break;
81
83
  case "sb":
82
- pool.boostDice = count;
84
+ pool.setBackDice = count;
83
85
  break;
84
86
  case "s":
85
- pool.boostDice = count;
87
+ pool.setBackDice = count;
86
88
  break;
87
89
  // w/f = White/Force
88
90
  // TODO
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swrpg-online/dice",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "A TypeScript library for simulating Star Wars RPG narrative dice rolls.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {