@dnd-ed/jsshenanigans 1.1.0 → 1.1.1

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/src/index.js CHANGED
@@ -1,49 +1,49 @@
1
- /**
2
- * JSShenanigans --- build, load and modify Jujutsu Shenanigans movesets.
3
- *
4
- * A JavaScript port of pythonshenanigans. On top of everything libjjs could do
5
- * it can also:
6
- *
7
- * - **load** an existing character code and edit it (everything is preserved);
8
- * - model the `PARTICLE`, `LOOK` and `SETMELEE` nodes;
9
- * - set the `TOOL TIP` (skills) and `COLOR` (awakenings) fields;
10
- * - round-trip codes without dropping fields it does not understand.
11
- *
12
- * Quick start:
13
- *
14
- * import * as pts from "jsshenanigans";
15
- * import * as nodes from "jsshenanigans/nodes";
16
- *
17
- * const character = new pts.Character();
18
- * character.create.skill("Punch", [nodes.HITBOX({ damage: 5 })]);
19
- * const code = character.export_character_code();
20
- *
21
- * const loaded = pts.Character.from_code(code);
22
- * console.log(pts.describe(code));
23
- */
24
-
25
- export * from "./errors.js";
26
- export {
27
- ENV_BACKEND,
28
- ZSTD_MAGIC,
29
- backend_name,
30
- compress,
31
- decode,
32
- decompress,
33
- encode,
34
- } from "./codec.js";
35
- export { Character } from "./character.js";
36
- export { dumps, describe } from "./tools.js";
37
- export { Animations } from "./types.js";
38
- export { Branch, Properties } from "./utils.js";
39
-
40
- import * as codec from "./codec.js";
41
- import * as conditions from "./conditions.js";
42
- import * as nodes from "./nodes.js";
43
- import * as tools from "./tools.js";
44
- import * as types from "./types.js";
45
-
46
- export { codec, conditions, nodes, tools, types };
47
-
48
- /** The library version. */
49
- export const VERSION = "1.1.0";
1
+ /**
2
+ * JSShenanigans --- build, load and modify Jujutsu Shenanigans movesets.
3
+ *
4
+ * A JavaScript port of pythonshenanigans. On top of everything libjjs could do
5
+ * it can also:
6
+ *
7
+ * - **load** an existing character code and edit it (everything is preserved);
8
+ * - model the `PARTICLE`, `LOOK` and `SETMELEE` nodes;
9
+ * - set the `TOOL TIP` (skills) and `COLOR` (awakenings) fields;
10
+ * - round-trip codes without dropping fields it does not understand.
11
+ *
12
+ * Quick start:
13
+ *
14
+ * import * as pts from "jsshenanigans";
15
+ * import * as nodes from "jsshenanigans/nodes";
16
+ *
17
+ * const character = new pts.Character();
18
+ * character.create.skill("Punch", [nodes.HITBOX({ damage: 5 })]);
19
+ * const code = character.export_character_code();
20
+ *
21
+ * const loaded = pts.Character.from_code(code);
22
+ * console.log(pts.describe(code));
23
+ */
24
+
25
+ export * from "./errors.js";
26
+ export {
27
+ ENV_BACKEND,
28
+ ZSTD_MAGIC,
29
+ backend_name,
30
+ compress,
31
+ decode,
32
+ decompress,
33
+ encode,
34
+ } from "./codec.js";
35
+ export { Character } from "./character.js";
36
+ export { dumps, describe } from "./tools.js";
37
+ export { Animations } from "./types.js";
38
+ export { Branch, Properties } from "./utils.js";
39
+
40
+ import * as codec from "./codec.js";
41
+ import * as conditions from "./conditions.js";
42
+ import * as nodes from "./nodes.js";
43
+ import * as tools from "./tools.js";
44
+ import * as types from "./types.js";
45
+
46
+ export { codec, conditions, nodes, tools, types };
47
+
48
+ /** The library version. */
49
+ export const VERSION = "1.1.1";