zen-flow 7.2.0 → 8.0.0
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/zenflow.cjs +3 -8
- package/dist/zenflow.d.cts +1 -2
- package/dist/zenflow.d.mts +1 -2
- package/dist/zenflow.mjs +3 -8
- package/package.json +1 -1
package/dist/zenflow.cjs
CHANGED
|
@@ -72,8 +72,7 @@ const STYLE = {
|
|
|
72
72
|
bold: "\\u00A7l",
|
|
73
73
|
strikethrough: "\\u00A7m",
|
|
74
74
|
underline: "\\u00A7n",
|
|
75
|
-
italic: "\\u00A7o"
|
|
76
|
-
reset: "\\u00A7r"
|
|
75
|
+
italic: "\\u00A7o"
|
|
77
76
|
};
|
|
78
77
|
const name = (...texts) => literal(texts.map((text) => {
|
|
79
78
|
if (typeof text === "string") return text;
|
|
@@ -255,14 +254,10 @@ const addHammer = (id, recipe$1) => {
|
|
|
255
254
|
};
|
|
256
255
|
const removeHammer = (id) => `mods.exnihilo.Hammer.removeRecipe(${id});`;
|
|
257
256
|
const addSieve = (id, recipe$1) => {
|
|
258
|
-
const items = Object.entries(recipe$1).map((entry) => Array.from({ length: Math.ceil(entry[1]) }).map((_, i) => ({
|
|
259
|
-
id: entry[0],
|
|
260
|
-
chance: entry[1] - i < 1 ? Math.round(1 / (entry[1] - i)) : 1
|
|
261
|
-
}))).flat();
|
|
262
257
|
const out = recipe(
|
|
263
258
|
id,
|
|
264
|
-
|
|
265
|
-
|
|
259
|
+
Object.keys(recipe$1),
|
|
260
|
+
Object.values(recipe$1)
|
|
266
261
|
);
|
|
267
262
|
return `mods.exnihilo.Sieve.addRecipe(${out});`;
|
|
268
263
|
};
|
package/dist/zenflow.d.cts
CHANGED
|
@@ -53,7 +53,6 @@ declare const STYLE: {
|
|
|
53
53
|
readonly strikethrough: "\\u00A7m";
|
|
54
54
|
readonly underline: "\\u00A7n";
|
|
55
55
|
readonly italic: "\\u00A7o";
|
|
56
|
-
readonly reset: "\\u00A7r";
|
|
57
56
|
};
|
|
58
57
|
type TextRich = {
|
|
59
58
|
text: string;
|
|
@@ -368,7 +367,7 @@ type RecipeSieve = Record<string, number>;
|
|
|
368
367
|
/**
|
|
369
368
|
* Add [Sieve](https://ftb.fandom.com/wiki/Sieve_(Ex_Nihilo)) recipe
|
|
370
369
|
*
|
|
371
|
-
* Chance is calculated as `
|
|
370
|
+
* Chance is calculated as a fraction, e.g. `2` is `50%`
|
|
372
371
|
*
|
|
373
372
|
* @see https://minetweaker3.aizistral.com/wiki/ModTweaker:Ex_Nihilo_Support
|
|
374
373
|
*/
|
package/dist/zenflow.d.mts
CHANGED
|
@@ -53,7 +53,6 @@ declare const STYLE: {
|
|
|
53
53
|
readonly strikethrough: "\\u00A7m";
|
|
54
54
|
readonly underline: "\\u00A7n";
|
|
55
55
|
readonly italic: "\\u00A7o";
|
|
56
|
-
readonly reset: "\\u00A7r";
|
|
57
56
|
};
|
|
58
57
|
type TextRich = {
|
|
59
58
|
text: string;
|
|
@@ -368,7 +367,7 @@ type RecipeSieve = Record<string, number>;
|
|
|
368
367
|
/**
|
|
369
368
|
* Add [Sieve](https://ftb.fandom.com/wiki/Sieve_(Ex_Nihilo)) recipe
|
|
370
369
|
*
|
|
371
|
-
* Chance is calculated as `
|
|
370
|
+
* Chance is calculated as a fraction, e.g. `2` is `50%`
|
|
372
371
|
*
|
|
373
372
|
* @see https://minetweaker3.aizistral.com/wiki/ModTweaker:Ex_Nihilo_Support
|
|
374
373
|
*/
|
package/dist/zenflow.mjs
CHANGED
|
@@ -70,8 +70,7 @@ const STYLE = {
|
|
|
70
70
|
bold: "\\u00A7l",
|
|
71
71
|
strikethrough: "\\u00A7m",
|
|
72
72
|
underline: "\\u00A7n",
|
|
73
|
-
italic: "\\u00A7o"
|
|
74
|
-
reset: "\\u00A7r"
|
|
73
|
+
italic: "\\u00A7o"
|
|
75
74
|
};
|
|
76
75
|
const name = (...texts) => literal(texts.map((text) => {
|
|
77
76
|
if (typeof text === "string") return text;
|
|
@@ -253,14 +252,10 @@ const addHammer = (id, recipe$1) => {
|
|
|
253
252
|
};
|
|
254
253
|
const removeHammer = (id) => `mods.exnihilo.Hammer.removeRecipe(${id});`;
|
|
255
254
|
const addSieve = (id, recipe$1) => {
|
|
256
|
-
const items = Object.entries(recipe$1).map((entry) => Array.from({ length: Math.ceil(entry[1]) }).map((_, i) => ({
|
|
257
|
-
id: entry[0],
|
|
258
|
-
chance: entry[1] - i < 1 ? Math.round(1 / (entry[1] - i)) : 1
|
|
259
|
-
}))).flat();
|
|
260
255
|
const out = recipe(
|
|
261
256
|
id,
|
|
262
|
-
|
|
263
|
-
|
|
257
|
+
Object.keys(recipe$1),
|
|
258
|
+
Object.values(recipe$1)
|
|
264
259
|
);
|
|
265
260
|
return `mods.exnihilo.Sieve.addRecipe(${out});`;
|
|
266
261
|
};
|