@wayward/types 2.13.2-beta.dev.20230531.1 → 2.13.2-beta.dev.20230602.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.
@@ -221,17 +221,18 @@ export declare enum TileUpdateType {
221
221
  DoodadOrientation = 14,
222
222
  DoodadOverHidden = 15,
223
223
  DoodadRemove = 16,
224
- Item = 17,
225
- ItemDrop = 18,
226
- ItemMovement = 19,
227
- Mod = 20,
228
- NPC = 21,
229
- NPCSpawn = 22,
230
- Player = 23,
231
- Terrain = 24,
232
- TileEvent = 25,
233
- TileEventManager = 26,
234
- Tilled = 27
224
+ DoodadAddWater = 17,
225
+ Item = 18,
226
+ ItemDrop = 19,
227
+ ItemMovement = 20,
228
+ Mod = 21,
229
+ NPC = 22,
230
+ NPCSpawn = 23,
231
+ Player = 24,
232
+ Terrain = 25,
233
+ TileEvent = 26,
234
+ TileEventManager = 27,
235
+ Tilled = 28
235
236
  }
236
237
  export declare enum PauseSource {
237
238
  /**
@@ -9,7 +9,7 @@
9
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
11
  import type { IEventEmitter } from "event/EventEmitter";
12
- import type { DisplayableDoodadType, DoodadTag, DoodadTypeExtra, DoorOrientation, IDoodadDescription, IDoodadOptions, IHasBuilder } from "game/doodad/IDoodad";
12
+ import type { DisplayableDoodadType, DoodadTag, DoodadTypeExtra, DoorOrientation, IDoodadDescription, IDoodadOptions, IHasBuilder, IHasWater } from "game/doodad/IDoodad";
13
13
  import { DoodadType, DoodadTypeGroup, GrowingStage } from "game/doodad/IDoodad";
14
14
  import { ActionType } from "game/entity/action/IAction";
15
15
  import type Creature from "game/entity/creature/Creature";
@@ -93,6 +93,7 @@ export default class Doodad extends Entity<IDoodadDescription, DoodadType, Dooda
93
93
  disassembly?: Item[];
94
94
  gatherReady?: number;
95
95
  growth?: GrowingStage;
96
+ hasWater?: IHasWater;
96
97
  hitchedCreature?: number;
97
98
  itemOrders?: number[];
98
99
  magic?: MagicalPropertyManager;
@@ -125,13 +126,13 @@ export default class Doodad extends Entity<IDoodadDescription, DoodadType, Dooda
125
126
  toString(): string;
126
127
  getRegistrarId(): number;
127
128
  /**
128
- * @param article Whether to include an article for the name of the doodad. Uses the article rules on the language. Defaults to `true`.
129
+ * @param article Whether to include an article for the name of the doodad. Uses the article rules on the language.`.
129
130
  * @param count The number of this doodad that you're getting the name of. Defaults to `1`.
130
131
  *
131
132
  * Examples:
132
133
  * - `doodad.getName()` // "a stone furnace"
133
- * - `doodad.getName(false)` // "stone furnace"
134
- * - `doodad.getName(undefined, 3)` // "stone furnaces"
134
+ * - `doodad.getName(Article.None)` // "stone furnace"
135
+ * - `doodad.getName(Article.None, 3)` // "stone furnaces"
135
136
  */
136
137
  getName(article?: Article, count?: number): import("../../language/impl/TranslationImpl").default;
137
138
  protected getDescription(): IDoodadDescription | undefined;
@@ -34,6 +34,7 @@ import type { IRGB } from "utilities/Color";
34
34
  export interface IDoodadOptions extends IObjectOptions {
35
35
  force?: boolean;
36
36
  gatherReady?: number;
37
+ hasWater?: IHasWater;
37
38
  stillContainer?: Item;
38
39
  growth?: GrowingStage;
39
40
  spread?: number;
@@ -402,7 +403,11 @@ export declare enum DoodadType {
402
403
  ClayLighthouse = 158,
403
404
  LitClayLighthouse = 159,
404
405
  BasaltLighthouse = 160,
405
- LitBasaltLighthouse = 161
406
+ LitBasaltLighthouse = 161,
407
+ GraniteDripstone = 162,
408
+ SandstoneDripstone = 163,
409
+ BasaltDripstone = 164,
410
+ ClayDripstone = 165
406
411
  }
407
412
  export declare enum DoodadTypeExtra {
408
413
  None = 999,
@@ -440,7 +445,8 @@ export declare enum DoodadTypeGroup {
440
445
  Scarecrow = 415,
441
446
  Lighthouse = 416,
442
447
  LitLighthouse = 417,
443
- Last = 418
448
+ Dripstone = 418,
449
+ Last = 419
444
450
  }
445
451
  export declare enum DoorOrientation {
446
452
  Default = 0,
@@ -458,4 +464,8 @@ export declare enum GrowingStage {
458
464
  export interface IHasBuilder {
459
465
  getBuilder(): Human | undefined;
460
466
  }
467
+ export interface IHasWater {
468
+ top?: boolean;
469
+ bottom?: boolean;
470
+ }
461
471
  export {};
@@ -1449,7 +1449,11 @@ export declare enum ItemType {
1449
1449
  AberrantClayGolemFigure = 750,
1450
1450
  AberrantGraniteGolemFigure = 751,
1451
1451
  AberrantSandstoneGolemFigure = 752,
1452
- AberrantBasaltGolemFigure = 753
1452
+ AberrantBasaltGolemFigure = 753,
1453
+ GraniteDripstone = 754,
1454
+ SandstoneDripstone = 755,
1455
+ BasaltDripstone = 756,
1456
+ ClayDripstone = 757
1453
1457
  }
1454
1458
  export declare enum ItemTypeExtra {
1455
1459
  None = 999,
@@ -1610,7 +1614,8 @@ export declare enum ItemTypeGroup {
1610
1614
  Gem = 931,
1611
1615
  Golem = 932,
1612
1616
  CreatureResource = 933,
1613
- All = 934,
1614
- Last = 935
1617
+ Dripstone = 934,
1618
+ All = 935,
1619
+ Last = 936
1615
1620
  }
1616
1621
  export {};
@@ -82,6 +82,7 @@ export interface IMagicalPropertyDescription {
82
82
  */
83
83
  disableInscription?: true;
84
84
  subTypeEnum?: any;
85
+ isValidEnum?(enumValue: number): boolean;
85
86
  }
86
87
  export interface MagicalPropertyTypeSubTypeMap {
87
88
  [MagicalPropertyType.Stat]: Stat;
@@ -32,7 +32,7 @@ export declare const promptGameConfirmationDestroyOnGather: import("game/meta/pr
32
32
  export declare const promptGameConfirmationDroppingContainer: import("game/meta/prompt/IPrompt").IPromptConfirmDescription<[]>;
33
33
  export declare const promptGameConfirmationRestWithEquippedFireSource: import("game/meta/prompt/IPrompt").IPromptConfirmDescription<[actionVerb: Text, objectName: Text, actionNoun: Text]>;
34
34
  export declare const promptGameContainerNotFull: import("game/meta/prompt/IPrompt").IPromptConfirmDescription<[]>;
35
- export declare const promptGameDesalinationNoNeed: import("game/meta/prompt/IPrompt").IPromptConfirmDescription<[]>;
35
+ export declare const promptGameDesalinationNoNeed: import("game/meta/prompt/IPrompt").IPromptConfirmDescription<[dripstoneOrStill: Text]>;
36
36
  export declare const promptGameExtinguishWaterStill: import("game/meta/prompt/IPrompt").IPromptConfirmDescription<[]>;
37
37
  export declare const promptGameItemMayBeDestroyedInCraft: import("game/meta/prompt/IPrompt").IPromptConfirmDescription<[breakingItemsList: Text]>;
38
38
  export declare const promptGameItemMayCauseBurns: import("game/meta/prompt/IPrompt").IPromptConfirmDescription<[]>;
@@ -40,7 +40,7 @@ export declare const promptGameItemsMayBeDestroyedOnUse: import("game/meta/promp
40
40
  export declare const promptGameLoadFailure: import("game/meta/prompt/IPrompt").IPromptInfoDescription<[]>;
41
41
  export declare const promptGameNoHealingRequired: import("game/meta/prompt/IPrompt").IPromptConfirmDescription<[]>;
42
42
  export declare const promptGameNoSaveOnDeath: import("game/meta/prompt/IPrompt").IPromptInfoDescription<[]>;
43
- export declare const promptGamePickUpStillWithWater: import("game/meta/prompt/IPrompt").IPromptConfirmDescription<[]>;
43
+ export declare const promptGamePickUpStillWithWater: import("game/meta/prompt/IPrompt").IPromptConfirmDescription<[dripstoneOrStill: Text]>;
44
44
  export declare const promptGameReleaseCreature: import("game/meta/prompt/IPrompt").IPromptConfirmDescription<[creatureName: Text]>;
45
45
  export declare const promptGameUncage: import("game/meta/prompt/IPrompt").IPromptConfirmDescription<[creatureName: Text]>;
46
46
  export declare const promptGameRenameGeneric: import("game/meta/prompt/IPrompt").IPromptInputDescription<[placeholder?: string | TranslationImpl | undefined, name?: string | ISerializedTranslation | undefined]>;
@@ -55,7 +55,7 @@ export declare const promptGameShipToIslandPayment: import("game/meta/prompt/IPr
55
55
  export declare const promptGameSaveFailure: import("game/meta/prompt/IPrompt").IPromptInfoDescription<[]>;
56
56
  export declare const promptGameIslandTravelConfirmation: import("game/meta/prompt/IPrompt").IPromptConfirmDescription<[isGhost: boolean]>;
57
57
  export declare const promptGameWellConvert: import("game/meta/prompt/IPrompt").IPromptConfirmDescription<[waterName: Text]>;
58
- export declare const promptGameSolarStillWontWorkInTemperature: import("game/meta/prompt/IPrompt").IPromptConfirmDescription<[]>;
58
+ export declare const promptGameSolarStillWontWorkInTemperature: import("game/meta/prompt/IPrompt").IPromptConfirmDescription<[dripstoneOrSolarStill: Text]>;
59
59
  export declare const promptGameSolarStillWontWorkInCave: import("game/meta/prompt/IPrompt").IPromptConfirmDescription<[]>;
60
60
  export declare const promptGamePause: import("game/meta/prompt/IPrompt").IPromptMenuDescription<MenuId.Pause, []>;
61
61
  export declare const promptGameWin: import("game/meta/prompt/IPrompt").IPromptMenuDescription<MenuId.GameEnd, []>;