@yipe/dice 0.2.12 → 0.2.15
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 +106 -23
- package/dist/builder/index.cjs.map +1 -1
- package/dist/builder/index.d.cts +30 -6
- package/dist/builder/index.d.ts +30 -6
- package/dist/builder/index.js +105 -24
- package/dist/builder/index.js.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{pmf-D1p2Re-J.d.cts → pmf-CYaEbY7m.d.cts} +4 -1
- package/dist/{pmf-D1p2Re-J.d.ts → pmf-CYaEbY7m.d.ts} +4 -1
- package/package.json +1 -1
|
@@ -28,6 +28,9 @@ interface Bin {
|
|
|
28
28
|
/** Optional per-outcome damage attribution at this damage. */
|
|
29
29
|
attr?: OutcomeLabelMap;
|
|
30
30
|
}
|
|
31
|
+
interface CritConfig {
|
|
32
|
+
critThreshold: number;
|
|
33
|
+
}
|
|
31
34
|
/** Simple mapping from damage value to probability. */
|
|
32
35
|
type DamageDistribution = Record<number, number>;
|
|
33
36
|
/** Canonical outcome labels supported by the query helpers. */
|
|
@@ -898,4 +901,4 @@ declare class PMF {
|
|
|
898
901
|
query(): DiceQuery;
|
|
899
902
|
}
|
|
900
903
|
|
|
901
|
-
export { type Bin as B, type DamageDistribution as D, EPS as E, LRUCache as L, type OutcomeLabelMap as O, PMF as P, type Rounding as R, type Snapshot as S, type OutcomeType as a, onCritOnly as b, onHitOnly as c, onMissOnly as d, onMissDamageOnly as e, onSaveHalfOnly as f, onSaveFailOnly as g, onPotentCantripOnly as h, DiceQuery as i, type OutcomeSnapshot as j, onAnyHit as o, pmfCache as p };
|
|
904
|
+
export { type Bin as B, type CritConfig as C, type DamageDistribution as D, EPS as E, LRUCache as L, type OutcomeLabelMap as O, PMF as P, type Rounding as R, type Snapshot as S, type OutcomeType as a, onCritOnly as b, onHitOnly as c, onMissOnly as d, onMissDamageOnly as e, onSaveHalfOnly as f, onSaveFailOnly as g, onPotentCantripOnly as h, DiceQuery as i, type OutcomeSnapshot as j, onAnyHit as o, pmfCache as p };
|
|
@@ -28,6 +28,9 @@ interface Bin {
|
|
|
28
28
|
/** Optional per-outcome damage attribution at this damage. */
|
|
29
29
|
attr?: OutcomeLabelMap;
|
|
30
30
|
}
|
|
31
|
+
interface CritConfig {
|
|
32
|
+
critThreshold: number;
|
|
33
|
+
}
|
|
31
34
|
/** Simple mapping from damage value to probability. */
|
|
32
35
|
type DamageDistribution = Record<number, number>;
|
|
33
36
|
/** Canonical outcome labels supported by the query helpers. */
|
|
@@ -898,4 +901,4 @@ declare class PMF {
|
|
|
898
901
|
query(): DiceQuery;
|
|
899
902
|
}
|
|
900
903
|
|
|
901
|
-
export { type Bin as B, type DamageDistribution as D, EPS as E, LRUCache as L, type OutcomeLabelMap as O, PMF as P, type Rounding as R, type Snapshot as S, type OutcomeType as a, onCritOnly as b, onHitOnly as c, onMissOnly as d, onMissDamageOnly as e, onSaveHalfOnly as f, onSaveFailOnly as g, onPotentCantripOnly as h, DiceQuery as i, type OutcomeSnapshot as j, onAnyHit as o, pmfCache as p };
|
|
904
|
+
export { type Bin as B, type CritConfig as C, type DamageDistribution as D, EPS as E, LRUCache as L, type OutcomeLabelMap as O, PMF as P, type Rounding as R, type Snapshot as S, type OutcomeType as a, onCritOnly as b, onHitOnly as c, onMissOnly as d, onMissDamageOnly as e, onSaveHalfOnly as f, onSaveFailOnly as g, onPotentCantripOnly as h, DiceQuery as i, type OutcomeSnapshot as j, onAnyHit as o, pmfCache as p };
|