@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.js
CHANGED
|
@@ -2307,7 +2307,9 @@ var Dice = class _Dice {
|
|
|
2307
2307
|
if (key === "hit") {
|
|
2308
2308
|
this.ensureHitDistribution();
|
|
2309
2309
|
}
|
|
2310
|
-
|
|
2310
|
+
const distribution = this.outcomeData[key];
|
|
2311
|
+
if (distribution === void 0) return void 0;
|
|
2312
|
+
return { ...distribution };
|
|
2311
2313
|
}
|
|
2312
2314
|
getFullOutcomeDistribution() {
|
|
2313
2315
|
return { ...this.outcomeData };
|