@occultus/condition-api 0.22.1 → 0.23.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@occultus/condition-api",
3
- "version": "0.22.1",
3
+ "version": "0.23.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://codeberg.org/TeamOccultus/StarTenonAPI"
@@ -24,12 +24,12 @@
24
24
  "author": "CTN Studios",
25
25
  "peerDependencies": {
26
26
  "@minecraft/server": "^2.4.0",
27
- "@occultus/core": "~0.18.4"
27
+ "@occultus/core": "^1.1.0"
28
28
  },
29
29
  "dependencies": {
30
- "@occultus/text-api": "0.23.0",
31
- "@occultus/toolkit": "0.23.3",
32
- "@occultus/format-api": "0.21.0"
30
+ "@occultus/format-api": "0.21.0",
31
+ "@occultus/text-api": "0.24.0",
32
+ "@occultus/toolkit": "0.24.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "typedoc": "^0.28.16"
@@ -13,7 +13,7 @@ export class ItemConditions extends Conditions {
13
13
  * @param consumeAmount 倘若为`true`,则条件检查通过后会自动消耗对应物品
14
14
  */
15
15
  constructor(
16
- protected itemType: string,
16
+ public itemType: string,
17
17
  protected amount: number = 1,
18
18
  protected consumeAmount = false
19
19
  ) {
@@ -17,7 +17,7 @@ export class ItemTagConditions extends Conditions {
17
17
  * @param consumeAmount 检查通过时是否消耗物品,默认为 false
18
18
  */
19
19
  constructor(
20
- protected tag: string,
20
+ public tag: string,
21
21
  protected amount: number = 1,
22
22
  protected translateKey: string,
23
23
  protected consumeAmount: boolean = false