@wayward/types 2.14.0-beta.dev.20240421.1 → 2.14.0-beta.dev.20240424.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.
@@ -18,6 +18,7 @@ import type Creature from "@wayward/game/game/entity/creature/Creature";
18
18
  import type Corpse from "@wayward/game/game/entity/creature/corpse/Corpse";
19
19
  import type NPC from "@wayward/game/game/entity/npc/NPC";
20
20
  import type Player from "@wayward/game/game/entity/player/Player";
21
+ import type Island from "@wayward/game/game/island/Island";
21
22
  import type { IUncastableContainer } from "@wayward/game/game/item/IItem";
22
23
  import type Item from "@wayward/game/game/item/Item";
23
24
  import type Tile from "@wayward/game/game/tile/Tile";
@@ -50,6 +51,7 @@ export interface IEntityConstructorOptions<TypeType extends number> {
50
51
  }
51
52
  export declare function asEntity(value?: unknown): Entity | undefined;
52
53
  export interface ICastable {
54
+ get island(): Island;
53
55
  get asEntity(): Entity | undefined;
54
56
  get asUnion(): Corpse | Creature | Doodad | Human | NPC | Player | TileEvent | Item | Tile | undefined;
55
57
  get asCorpse(): Corpse | undefined;
@@ -135,7 +135,7 @@ export default class ItemManager extends EntityManager<Item, IItemRemoveOptions>
135
135
  static getWeight(itemType: ItemType | Item | IItemWeightComponent, random: Random | undefined, weightType?: WeightType): number;
136
136
  static weightTree(itemType: ItemType, random: Random | undefined, weightType?: WeightType, debug?: boolean, depth?: number): number;
137
137
  static getGroups(itemType: ItemType): ItemTypeGroup[];
138
- static generateLookups(): Promise<void>;
138
+ static generateLookups(): void;
139
139
  private static cacheEquippables;
140
140
  private static cacheGroupItems;
141
141
  private static cacheItemRecipes;
@@ -17,6 +17,7 @@ import type Corpse from "@wayward/game/game/entity/creature/corpse/Corpse";
17
17
  import type NPC from "@wayward/game/game/entity/npc/NPC";
18
18
  import type Player from "@wayward/game/game/entity/player/Player";
19
19
  import type { IslandId } from "@wayward/game/game/island/IIsland";
20
+ import type Island from "@wayward/game/game/island/Island";
20
21
  import type { IContainer, IUncastableContainer } from "@wayward/game/game/item/IItem";
21
22
  import type Item from "@wayward/game/game/item/Item";
22
23
  import type Tile from "@wayward/game/game/tile/Tile";
@@ -32,6 +33,7 @@ export declare class WorldContainer implements IContainer, ICastable {
32
33
  */
33
34
  readonly containedItems: Item[];
34
35
  constructor(islandId: IslandId);
36
+ get island(): Island;
35
37
  getName(): Translation;
36
38
  toString(): string;
37
39
  get asCorpse(): undefined;
@@ -171,6 +171,7 @@ export interface ITileData {
171
171
  ownerIdentifier?: string;
172
172
  renamed?: string | ISerializedTranslation | undefined;
173
173
  tradedFrom?: string[];
174
+ tilesDug?: number;
174
175
  }
175
176
  export type ITileDataOld = Partial<ITileData> & {
176
177
  strength?: number;
@@ -340,3 +341,4 @@ export declare const trackTerrainTypes: Set<TerrainType>;
340
341
  export declare const trackGateDoodadTypes: Set<DoodadType>;
341
342
  export declare const DEFAULT_FISH_AVAILABLE = 6;
342
343
  export declare const TILE_MAX_CAPACITY = 36;
344
+ export declare const TILE_MAX_DUG_AMOUNT = 8;