@dicelette/core 1.0.5 → 1.0.7
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/README.md +5 -11
- package/package.json +2 -2
- package/tree.txt +25 -0
- package/tsconfig.json +2 -1
package/README.md
CHANGED
@@ -14,7 +14,7 @@ The two are used in the bot and documentation.
|
|
14
14
|
- **max**: `number` : The maximum value of the statistic
|
15
15
|
- **min**: `number` : The minimum value of the statistic
|
16
16
|
|
17
|
-
# Interface ([index.d.ts](
|
17
|
+
# Interface ([index.d.ts](@types/index.d.ts))
|
18
18
|
## Compare
|
19
19
|
|
20
20
|
- **sign**: ``"<"`` \| ``">"`` \| ``">="`` \| ``"<="`` \| ``"="`` \| ``"!="`` \| ``"=="``
|
@@ -42,22 +42,16 @@ The two are used in the bot and documentation.
|
|
42
42
|
### Example
|
43
43
|
|
44
44
|
```ts
|
45
|
-
diceType: 1d20+{{$}}>=20
|
46
|
-
comparator: {
|
47
|
-
sign: ">="
|
48
|
-
value: 20
|
49
|
-
formula: +$
|
50
|
-
}
|
51
|
-
The dice throw will be 1d20 + statistique that must be >= 20
|
45
|
+
diceType: "1d20+{{$}}>=20"
|
52
46
|
```
|
47
|
+
The dice throw will be 1d20 + statistique that must be less than 20
|
53
48
|
|
54
49
|
```ts
|
55
|
-
diceType: 1d20<=$
|
56
|
-
The dice throw will be 1d20 that must be <= statistique
|
50
|
+
diceType: "1d20<=$"
|
57
51
|
```
|
52
|
+
The dice throw will be 1d20 that must be less than the statistic
|
58
53
|
|
59
54
|
### Properties
|
60
|
-
|
61
55
|
- `Optional` **charName**: `boolean`
|
62
56
|
Allow to force the user to choose a name for them characters
|
63
57
|
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dicelette/core",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.7",
|
4
4
|
"description": "Core library for the Dicelette Discord bot",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
7
7
|
"url": "https://github.com/Dicelette/core.git"
|
8
8
|
},
|
9
|
-
"
|
9
|
+
"type": "module",
|
10
10
|
"main": "index.ts",
|
11
11
|
"keywords": [
|
12
12
|
"discord",
|
package/tree.txt
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
|
2
|
+
Source: E:\Documents\Github\dicelette\core
|
3
|
+
|
4
|
+
Mode Length Hierarchy
|
5
|
+
---- ------ ---------
|
6
|
+
d---- 121,97 KB core
|
7
|
+
-a--- 216,00 B ├── .eslintrc.js
|
8
|
+
-a--- 2,13 KB ├── .gitignore
|
9
|
+
-a--- 125,00 B ├── index.ts
|
10
|
+
-a--- 142,00 B ├── jest.config.js
|
11
|
+
-a--- 34,98 KB ├── LICENSE
|
12
|
+
-a--- 829,00 B ├── package.json
|
13
|
+
-a--- 76,68 KB ├── pnpm-lock.yaml
|
14
|
+
-a--- 6,14 KB ├── README.md
|
15
|
+
-a--- 0,00 B ├── tree.txt
|
16
|
+
-a--- 783,00 B ├── tsconfig.json
|
17
|
+
d---- 8,04 KB ├── tests
|
18
|
+
-a--- 8,04 KB │ └── verify_template.test.ts
|
19
|
+
d---- 14,39 KB ├── core
|
20
|
+
-a--- 3,08 KB │ ├── dice.ts
|
21
|
+
-a--- 2,01 KB │ ├── utils.ts
|
22
|
+
-a--- 9,30 KB │ └── verify_template.ts
|
23
|
+
d---- 1,48 KB └── @types
|
24
|
+
-a--- 1,48 KB └── index.d.ts
|
25
|
+
|