@wayward/types 2.14.6-beta.dev.20250808.1 → 2.14.6-beta.dev.20250812.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.
@@ -333,7 +333,8 @@ export declare enum Delay {
333
333
  ReallyLongPause = 100,
334
334
  AttackAnimation = 30,
335
335
  Jump = 18,
336
- VehicleConnection = 5.1
336
+ VehicleConnection = 5.1,// this should be a number that is fairly different from the others to avoid overlaps
337
+ Slowed = 15
337
338
  }
338
339
  export declare enum EquipType {
339
340
  None = 0,
@@ -193,4 +193,7 @@ export declare const actionDescriptionsSlow: {
193
193
  138: import("./Action").Action<[import("@wayward/game/game/entity/action/IAction").ActionArgument.Tile], import("../Human").default<unknown, number, import("../../reference/IReferenceManager").ReferenceType.NPC | import("../../reference/IReferenceManager").ReferenceType.Player>, void, {
194
194
  usable: true;
195
195
  }, [import("../../tile/Tile").default]>;
196
+ 144: import("./Action").Action<[import("@wayward/game/game/entity/action/IAction").ActionArgument.ItemInventory], import("../Human").default<unknown, number, import("../../reference/IReferenceManager").ReferenceType.NPC | import("../../reference/IReferenceManager").ReferenceType.Player>, void, {
197
+ usable: true;
198
+ }, [import("../../item/Item").default]>;
196
199
  };
@@ -188,7 +188,8 @@ export declare enum ActionType {
188
188
  DiscoverRecipe = 140,
189
189
  ExcavateCollapse = 141,
190
190
  AddItemDiscovered = 142,
191
- ResetItemDiscovered = 143
191
+ ResetItemDiscovered = 143,
192
+ Squish = 144
192
193
  }
193
194
  export declare const ACTIONS_RECOMMENDED: ActionType[];
194
195
  export declare enum ActionUsability {
@@ -0,0 +1,16 @@
1
+ /*!
2
+ * Copyright 2011-2025 Unlok
3
+ * https://www.unlok.ca
4
+ *
5
+ * Credits & Thanks:
6
+ * https://www.unlok.ca/credits-thanks/
7
+ *
8
+ * Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
9
+ * https://github.com/WaywardGame/types/wiki
10
+ */
11
+ import { Action } from "@wayward/game/game/entity/action/Action";
12
+ import { ActionArgument } from "@wayward/game/game/entity/action/IAction";
13
+ declare const _default: Action<[ActionArgument.ItemInventory], import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player>, void, {
14
+ usable: true;
15
+ }, [import("../../../item/Item").default]>;
16
+ export default _default;
@@ -297,7 +297,7 @@ export default class Item extends EntityMovable<IItemDescription, ItemType, Refe
297
297
  * Moves an item based on the result of a mob check.
298
298
  * This will apply side effects based on what the item hits / where the item lands
299
299
  */
300
- moveToTileWithMobCheck(mobCheck: IMobCheck, human: Human | undefined): IMoveToTileMobCheckResult;
300
+ moveToTileWithMobCheck(mobCheck: IMobCheck, human: Human | undefined, damage?: number): IMoveToTileMobCheckResult;
301
301
  /**
302
302
  * Moves an item to a target point / container while animating it
303
303
  * @param options Movement options
@@ -16,6 +16,7 @@ import type { IItemDescription, IMagicalPropertyInfo, ItemType } from "@wayward/
16
16
  import type Item from "@wayward/game/game/item/Item";
17
17
  import type { MagicalPropertyIdentity } from "@wayward/game/game/magic/IMagicalProperty";
18
18
  import type { TranslationArg } from "@wayward/game/language/ITranslation";
19
+ export declare const MAGICAL_PROPERTY_GLOWING_LIGHT_BONUS = 5;
19
20
  declare enum MagicalPropertyType {
20
21
  /** Increases attack value (for weapons and ammo) */
21
22
  Power_Attack = 0,
@@ -36,7 +36,7 @@ export interface ITileEventDescription extends IObjectDescription, IModdable, IC
36
36
  isWaste?: boolean;
37
37
  renderBelowItems?: boolean;
38
38
  renderBelowDoodads?: boolean;
39
- renderAboveOtherTileEvents?: boolean;
39
+ renderAbovePlayers?: boolean;
40
40
  isTall?: boolean;
41
41
  providesFire?: boolean;
42
42
  /**
@@ -60,9 +60,9 @@ export interface ITileEventDescription extends IObjectDescription, IModdable, IC
60
60
  */
61
61
  allowMultiple?: boolean;
62
62
  /**
63
- * Is the event made of water? These can put out fires if they are on the same tile as them.
63
+ * Is the event made of water or is liquidy? These can put out fires if they are on the same tile as them. Defaulted to false.
64
64
  */
65
- water?: boolean;
65
+ liquid?: boolean;
66
66
  /**
67
67
  * When more than three puddles of water exist on a tile, they create the this terrain type.
68
68
  */
@@ -90,6 +90,11 @@ export interface ITileEventDescription extends IObjectDescription, IModdable, IC
90
90
  * If set to true, tile items will appear in a circle around the tile event instead of over top of it.
91
91
  */
92
92
  tileItemOffset?: boolean;
93
+ /**
94
+ * If set to true, players will be slowed in movement speed, skip and turn, and reduce 1 point of stamina when moving over this tile event. Creatures and NPPs will simply skip a turn.
95
+ * If the tile event is a liquid and slowsEntities is set to true, then no slipping can occur.
96
+ */
97
+ slowsEntities?: boolean;
93
98
  }
94
99
  export declare enum TileEventType {
95
100
  None = 0,
@@ -114,5 +119,6 @@ export declare enum TileEventType {
114
119
  PuddleOfGoatMilk = 19,
115
120
  PuddleOfCoconutWater = 20,
116
121
  PuddleOfSwampWater = 21,
117
- PuddleOfFilteredWater = 22
122
+ PuddleOfFilteredWater = 22,
123
+ SlimePatch = 23
118
124
  }
@@ -413,7 +413,7 @@ export default class Tile implements IVector4, Partial<ITileContainer>, IFieldOf
413
413
  * Create particle effects when moving over a puddle and reduce its decay.
414
414
  * @param noSound True when no sound should be made when splashing.
415
415
  */
416
- splashPuddles(noSound?: boolean): void;
416
+ splashLiquids(noSound?: boolean): void;
417
417
  addOrUpdateOverlay(overlay: IOverlayInfo): void;
418
418
  removeOverlay(overlay: IOverlayInfo): void;
419
419
  canSeeObject(type: CanASeeBType, object: IRendererOrigin, fieldOfView?: FieldOfView, customRadius?: number): boolean;
@@ -42,7 +42,7 @@ export default class TileEventManager extends EntityManager<TileEvent> {
42
42
  * @param tile Tile that you want to look at.
43
43
  * @returns Array of tile events with water properties or undefined
44
44
  */
45
- getPuddles(tile: Tile): TileEvent[] | undefined;
45
+ getLiquids(tile: Tile): TileEvent[] | undefined;
46
46
  canGather(tile: Tile): TileEvent | undefined;
47
47
  updateAll(ticks: number): void;
48
48
  /**
@@ -8,6 +8,8 @@
8
8
  * Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
9
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
+ import { TerrainType } from "@wayward/game/game/tile/ITerrain";
11
12
  import type { ITileEventDescription } from "@wayward/game/game/tile/ITileEvent";
12
13
  import { TileEventType } from "@wayward/game/game/tile/ITileEvent";
14
+ export declare const TILE_EVENTS_LIQUID_TERRAIN_EXCLUSIONS: TerrainType[];
13
15
  export declare const tileEventDescriptions: OptionalDescriptions<TileEventType, ITileEventDescription>;
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * Copyright 2011-2025 Unlok
3
+ * https://www.unlok.ca
4
+ *
5
+ * Credits & Thanks:
6
+ * https://www.unlok.ca/credits-thanks/
7
+ *
8
+ * Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
9
+ * https://github.com/WaywardGame/types/wiki
10
+ */
11
+ import type { ITileEventDescription } from "@wayward/game/game/tile/ITileEvent";
12
+ export declare const slimePatch: ITileEventDescription;
@@ -872,6 +872,8 @@ declare enum Message {
872
872
  YouUnequip = 860,
873
873
  YouUsed = 861,
874
874
  YouViewTheItemsOn = 862,
875
- YouWhileTraveling = 863
875
+ YouWhileTraveling = 863,
876
+ ActionSquishCannotHere = 864,
877
+ ActionSquishNoRoom = 865
876
878
  }
877
879
  export default Message;
@@ -192,69 +192,70 @@ declare enum Bindable {
192
192
  GameActionRestSleep = 173,
193
193
  GameActionRotate = 174,
194
194
  GameActionSqueeze = 175,
195
- GameActionStillAttachContainer = 176,
196
- GameActionStillDetachContainer = 177,
197
- GameActionSummon = 178,
198
- GameActionTame = 179,
199
- GameActionTameOffer = 180,
200
- GameActionTamePet = 181,
201
- GameActionTameRelease = 182,
202
- GameActionTeleport = 183,
203
- GameActionTellTime = 184,
204
- GameActionTestDepth = 185,
205
- GameActionTill = 186,
206
- GameActionTillUntill = 187,
207
- GameActionTillWithHands = 188,
208
- GameActionTrade = 189,
209
- GameActionTradeBuyFromTrader = 190,
210
- GameActionTradeSellToTrader = 191,
211
- GameActionTravelSailToCivilization = 192,
212
- GameActionTravelShipToIsland = 193,
213
- GameActionVehicleRide = 194,
214
- GameActionVehicleUnride = 195,
215
- DialogCloseAll = 196,
216
- DialogOptions = 197,
217
- DialogHelp = 198,
218
- DialogMilestones = 199,
219
- DialogNotes = 200,
220
- DialogMessages = 201,
221
- DialogMessagesChatFocus = 202,
222
- DialogInventory = 203,
223
- DialogCrafting = 204,
224
- DialogDismantle = 205,
225
- DialogEquipment = 206,
226
- DialogSkills = 207,
227
- DialogQuests = 208,
228
- DialogIslands = 209,
229
- HudToggleMenuBar = 210,
230
- HudToggleActionBar = 211,
231
- HudToggleMessages = 212,
232
- HudToggleStats = 213,
233
- TooltipMoreInformation = 214,
234
- TooltipToggle = 215,
235
- MenuEnter = 216,
236
- MenuSubmit = 217,
237
- MenuNext = 218,
238
- MenuPrevious = 219,
239
- MenuUp = 220,
240
- MenuDown = 221,
241
- MenuLeft = 222,
242
- MenuRight = 223,
243
- MenuCancel = 224,
244
- MenuNextOption = 225,
245
- MenuPreviousOption = 226,
246
- MenuContextMenu = 227,
247
- MenuSelect = 228,
248
- DeveloperInterfaceScaleUp = 229,
249
- DeveloperInterfaceScaleDown = 230,
250
- DeveloperToggleDeveloperMode = 231,
251
- DeveloperToggleDeveloperTools = 232,
252
- DeveloperReloadGame = 233,
253
- DeveloperReloadWithoutSavingGame = 234,
254
- DeveloperReloadAndContinueGame = 235,
255
- DeveloperReloadWithoutSavingAndContinueGame = 236,
256
- DeveloperReloadStylesheets = 237,
257
- DeveloperReloadTextures = 238
195
+ GameActionSquish = 176,
196
+ GameActionStillAttachContainer = 177,
197
+ GameActionStillDetachContainer = 178,
198
+ GameActionSummon = 179,
199
+ GameActionTame = 180,
200
+ GameActionTameOffer = 181,
201
+ GameActionTamePet = 182,
202
+ GameActionTameRelease = 183,
203
+ GameActionTeleport = 184,
204
+ GameActionTellTime = 185,
205
+ GameActionTestDepth = 186,
206
+ GameActionTill = 187,
207
+ GameActionTillUntill = 188,
208
+ GameActionTillWithHands = 189,
209
+ GameActionTrade = 190,
210
+ GameActionTradeBuyFromTrader = 191,
211
+ GameActionTradeSellToTrader = 192,
212
+ GameActionTravelSailToCivilization = 193,
213
+ GameActionTravelShipToIsland = 194,
214
+ GameActionVehicleRide = 195,
215
+ GameActionVehicleUnride = 196,
216
+ DialogCloseAll = 197,
217
+ DialogOptions = 198,
218
+ DialogHelp = 199,
219
+ DialogMilestones = 200,
220
+ DialogNotes = 201,
221
+ DialogMessages = 202,
222
+ DialogMessagesChatFocus = 203,
223
+ DialogInventory = 204,
224
+ DialogCrafting = 205,
225
+ DialogDismantle = 206,
226
+ DialogEquipment = 207,
227
+ DialogSkills = 208,
228
+ DialogQuests = 209,
229
+ DialogIslands = 210,
230
+ HudToggleMenuBar = 211,
231
+ HudToggleActionBar = 212,
232
+ HudToggleMessages = 213,
233
+ HudToggleStats = 214,
234
+ TooltipMoreInformation = 215,
235
+ TooltipToggle = 216,
236
+ MenuEnter = 217,
237
+ MenuSubmit = 218,
238
+ MenuNext = 219,
239
+ MenuPrevious = 220,
240
+ MenuUp = 221,
241
+ MenuDown = 222,
242
+ MenuLeft = 223,
243
+ MenuRight = 224,
244
+ MenuCancel = 225,
245
+ MenuNextOption = 226,
246
+ MenuPreviousOption = 227,
247
+ MenuContextMenu = 228,
248
+ MenuSelect = 229,
249
+ DeveloperInterfaceScaleUp = 230,
250
+ DeveloperInterfaceScaleDown = 231,
251
+ DeveloperToggleDeveloperMode = 232,
252
+ DeveloperToggleDeveloperTools = 233,
253
+ DeveloperReloadGame = 234,
254
+ DeveloperReloadWithoutSavingGame = 235,
255
+ DeveloperReloadAndContinueGame = 236,
256
+ DeveloperReloadWithoutSavingAndContinueGame = 237,
257
+ DeveloperReloadStylesheets = 238,
258
+ DeveloperReloadTextures = 239
258
259
  }
259
260
  export default Bindable;
260
261
  export declare enum BindableType {
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.14.6-beta.dev.20250808.1",
4
+ "version": "2.14.6-beta.dev.20250812.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",