@wayward/types 2.15.3-beta.dev.20260110.1 → 2.15.3-beta.dev.20260112.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.
@@ -20,6 +20,7 @@ import { type IContainer } from "@wayward/game/game/item/IItem";
20
20
  import type Item from "@wayward/game/game/item/Item";
21
21
  import type Tile from "@wayward/game/game/tile/Tile";
22
22
  import Translation from "@wayward/game/language/Translation";
23
+ import { DropLocation } from "@wayward/game/save/data/ISaveDataGlobal";
23
24
  export declare enum DropAllowProtected {
24
25
  Disallow = 0,
25
26
  AllowSafe = 1,
@@ -27,6 +28,10 @@ export declare enum DropAllowProtected {
27
28
  }
28
29
  export interface IDropItemFilterArgument extends IMoveItemFilterArgument {
29
30
  allowProtected?: DropAllowProtected;
31
+ /**
32
+ * Overridable drop location
33
+ */
34
+ dropLocation?: DropLocation;
30
35
  }
31
36
  export declare class DropItemFilterArgument extends MoveItemFilterArgument<IDropItemFilterArgument> {
32
37
  validate(executor: Entity | undefined, value: unknown): value is IDropItemFilterArgument;
@@ -43,8 +48,8 @@ interface IResolvedTileDrop {
43
48
  into: IContainer;
44
49
  blocker?: Translation;
45
50
  }
46
- export declare function resolveTileDrop(human: Human | undefined, tile: Tile, items?: MoveItemsSourceArgumentResolvable, dropIntoContainers?: boolean): IResolvedTileDrop;
47
- export declare function resolveTileDrop(human: Human, tile?: Tile, items?: MoveItemsSourceArgumentResolvable, dropIntoContainers?: boolean): IResolvedTileDrop;
51
+ export declare function resolveTileDrop(human: Human | undefined, tile: Tile, items?: MoveItemsSourceArgumentResolvable, dropLocation?: DropLocation, dropIntoContainers?: boolean): IResolvedTileDrop;
52
+ export declare function resolveTileDrop(human: Human, tile?: Tile, items?: MoveItemsSourceArgumentResolvable, dropLocation?: DropLocation, dropIntoContainers?: boolean): IResolvedTileDrop;
48
53
  export interface IDropCanUse {
49
54
  items: Item[];
50
55
  tile: Tile;
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.15.3-beta.dev.20260110.1",
4
+ "version": "2.15.3-beta.dev.20260112.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",