@yipe/dice 0.2.21 → 0.2.22
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/builder/index.cjs +20 -2
- package/dist/builder/index.cjs.map +1 -1
- package/dist/builder/index.d.cts +86 -94
- package/dist/builder/index.d.ts +86 -94
- package/dist/builder/index.js +20 -2
- package/dist/builder/index.js.map +1 -1
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2309,7 +2309,9 @@ var Dice = class _Dice {
|
|
|
2309
2309
|
if (key === "hit") {
|
|
2310
2310
|
this.ensureHitDistribution();
|
|
2311
2311
|
}
|
|
2312
|
-
|
|
2312
|
+
const distribution = this.outcomeData[key];
|
|
2313
|
+
if (distribution === void 0) return void 0;
|
|
2314
|
+
return { ...distribution };
|
|
2313
2315
|
}
|
|
2314
2316
|
getFullOutcomeDistribution() {
|
|
2315
2317
|
return { ...this.outcomeData };
|