@wayward/types 2.13.3-beta.dev.20230619.1 → 2.13.3-beta.dev.20230621.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.
@@ -11,11 +11,9 @@
11
11
  import { Action } from "game/entity/action/Action";
12
12
  import type { IActionUsable } from "game/entity/action/IAction";
13
13
  import { ActionArgument } from "game/entity/action/IAction";
14
- import type { ISummon } from "game/item/IItem";
15
14
  import type Tile from "game/tile/Tile";
16
15
  export interface ISummonAction extends IActionUsable {
17
16
  tile: Tile;
18
- creatureSummon: ISummon;
19
17
  }
20
18
  /**
21
19
  * Summon a creature (golem) from an item.
@@ -24,6 +24,7 @@ import type { Quality } from "game/IObject";
24
24
  import type { ItemType } from "game/item/IItem";
25
25
  import type Item from "game/item/Item";
26
26
  import type ItemFinder from "game/item/ItemFinder";
27
+ import type { IItemFinderOptions } from "game/item/ItemFinder";
27
28
  import type Message from "language/dictionary/Message";
28
29
  import Translation from "language/Translation";
29
30
  import type Bindable from "ui/input/Bindable";
@@ -39,7 +40,7 @@ export interface IUsableActionRequirement<TYPE> {
39
40
  }
40
41
  export interface IUsableActionItemRequirement extends Omit<IUsableActionRequirement<Item>, "find"> {
41
42
  allowOnlyItemType?(player: Player, type: ItemType): boolean;
42
- finder?(player: Player): ItemFinder | undefined;
43
+ finder?(player: Player, options?: IItemFinderOptions): ItemFinder | undefined;
43
44
  requiresQuality?: true;
44
45
  }
45
46
  export declare namespace IUsableActionRequirement {
@@ -56,6 +56,7 @@ declare class UsableAction<REQUIREMENTS extends IUsableActionRequirements = IUsa
56
56
  getItem(player: Player, provided?: IUsableActionPossibleUsing, fullUsabilityCheck?: boolean): Item | false | undefined;
57
57
  private requirementsItemFinders?;
58
58
  private getItemFinder;
59
+ private createItemFinder;
59
60
  private itemFinderFullCheck?;
60
61
  private itemFinderSimpleCheck?;
61
62
  private getItemByType;
@@ -18,7 +18,6 @@ import type { IGetBestItemsOptions } from "game/item/IItemManager";
18
18
  import type Item from "game/item/Item";
19
19
  export interface IUseItemAction extends IUsableActionDynamicDefinition {
20
20
  canDamageItem?: true;
21
- allowProtectedItems?: true;
22
21
  allowAnyItems?: true;
23
22
  allowNoItem?: true;
24
23
  hasNoBestItem?: true;
@@ -99,6 +99,8 @@ export interface IItemDisassembly {
99
99
  magic: MagicalPropertyManager | undefined;
100
100
  disassembly: Item[];
101
101
  tradedFrom: string[] | undefined;
102
+ decay: number | undefined;
103
+ startingDecay: number | undefined;
102
104
  }
103
105
  export declare enum ItemDamageResult {
104
106
  NoDamage = 0,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wayward/types",
3
3
  "description": "TypeScript declarations for Wayward, used for modding.",
4
- "version": "2.13.3-beta.dev.20230619.1",
4
+ "version": "2.13.3-beta.dev.20230621.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",