@wayward/types 2.14.0 → 2.14.1-beta

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.
Files changed (165) hide show
  1. package/definitions/cplusplus/index.d.ts +2 -0
  2. package/definitions/game/game/Game.d.ts +1 -1
  3. package/definitions/game/game/IObject.d.ts +4 -0
  4. package/definitions/game/game/biome/arid/mapGen/2.14.1.d.ts +12 -0
  5. package/definitions/game/game/biome/coastal/Coastal.d.ts +1 -1
  6. package/definitions/game/game/biome/coastal/mapGen/2.14.1.d.ts +12 -0
  7. package/definitions/game/game/biome/iceCap/mapGen/2.14.1.d.ts +12 -0
  8. package/definitions/game/game/biome/template/Template.d.ts +3 -2
  9. package/definitions/game/game/biome/volcanic/mapGen/2.14.1.d.ts +12 -0
  10. package/definitions/game/game/biome/wetlands/mapGen/2.14.1.d.ts +12 -0
  11. package/definitions/game/game/deity/Deity.d.ts +1 -0
  12. package/definitions/game/game/deity/IDeities.d.ts +7 -0
  13. package/definitions/game/game/doodad/Doodad.d.ts +1 -1
  14. package/definitions/game/game/doodad/IDoodad.d.ts +2 -0
  15. package/definitions/game/game/entity/CombatStrengthManager.d.ts +6 -5
  16. package/definitions/game/game/entity/Entity.d.ts +1 -1
  17. package/definitions/game/game/entity/EntityMovable.d.ts +3 -1
  18. package/definitions/game/game/entity/Human.d.ts +2 -2
  19. package/definitions/game/game/entity/IEntity.d.ts +1 -0
  20. package/definitions/game/game/entity/IHuman.d.ts +0 -3
  21. package/definitions/game/game/entity/action/Action.d.ts +2 -6
  22. package/definitions/game/game/entity/action/ActionExecutor.d.ts +1 -1
  23. package/definitions/game/game/entity/action/ActionsRegistration.d.ts +17 -8
  24. package/definitions/game/game/entity/action/IAction.d.ts +16 -11
  25. package/definitions/game/game/entity/action/actions/{Sacrifice.d.ts → AscendDescend.d.ts} +1 -8
  26. package/definitions/game/game/entity/action/actions/CageCreature.d.ts +1 -1
  27. package/definitions/game/game/entity/action/actions/ClearMessages.d.ts +1 -1
  28. package/definitions/game/game/entity/action/actions/Consecrate.d.ts +43 -0
  29. package/definitions/game/game/entity/action/actions/Craft.d.ts +1 -1
  30. package/definitions/game/game/entity/action/actions/CraftNew.d.ts +1 -1
  31. package/definitions/game/game/entity/action/actions/Dismantle.d.ts +1 -1
  32. package/definitions/game/game/entity/action/actions/Drop.d.ts +1 -1
  33. package/definitions/game/game/entity/action/actions/Eat.d.ts +1 -1
  34. package/definitions/game/game/entity/action/actions/GatherLiquid.d.ts +1 -1
  35. package/definitions/game/game/entity/action/actions/Harvest.d.ts +2 -1
  36. package/definitions/game/game/entity/action/actions/Ignite.d.ts +1 -1
  37. package/definitions/game/game/entity/action/actions/Plant.d.ts +2 -1
  38. package/definitions/game/game/entity/action/actions/SetCreatureAi.d.ts +1 -1
  39. package/definitions/game/game/entity/action/actions/SetCreatureAiAll.d.ts +1 -1
  40. package/definitions/game/game/entity/action/actions/SetTitle.d.ts +1 -1
  41. package/definitions/game/game/entity/action/actions/Stack.d.ts +2 -2
  42. package/definitions/game/game/entity/action/actions/Throw.d.ts +1 -1
  43. package/definitions/game/game/entity/action/actions/moveItem/MoveItemFilterArgument.d.ts +1 -0
  44. package/definitions/game/game/entity/action/actions/moveItem/MoveItemOptionsArgument.d.ts +1 -0
  45. package/definitions/game/game/entity/action/usable/IUsableAction.d.ts +2 -1
  46. package/definitions/game/game/entity/action/usable/UsableAction.d.ts +3 -1
  47. package/definitions/game/game/entity/action/usable/UsableActionTranslator.d.ts +6 -6
  48. package/definitions/game/game/entity/action/usable/UsableActionType.d.ts +3 -1
  49. package/definitions/game/game/entity/action/usable/actions/UsableActionsDynamic.d.ts +3 -0
  50. package/definitions/game/game/entity/action/usable/actions/UsableActionsWorld.d.ts +1 -1
  51. package/definitions/game/game/entity/ai/AI.d.ts +7 -7
  52. package/definitions/game/game/entity/creature/Creature.d.ts +1 -0
  53. package/definitions/game/game/entity/creature/zone/CreatureZone.d.ts +4 -3
  54. package/definitions/game/game/entity/creature/zone/CreatureZoneManager.d.ts +2 -2
  55. package/definitions/game/game/entity/creature/zone/ICreatureZone.d.ts +29 -1
  56. package/definitions/game/game/entity/creature/zone/zones/arid/AridCreatures.d.ts +12 -0
  57. package/definitions/game/game/entity/creature/zone/zones/arid/AridDoodadReplacements.d.ts +12 -0
  58. package/definitions/game/game/entity/creature/zone/zones/arid/AridGuardians.d.ts +12 -0
  59. package/definitions/game/game/entity/creature/zone/zones/arid/AridTileReplacements.d.ts +12 -0
  60. package/definitions/game/game/entity/creature/zone/zones/coastal/CoastalCreatures.d.ts +12 -0
  61. package/definitions/game/game/entity/creature/zone/zones/coastal/CoastalDoodadReplacements.d.ts +12 -0
  62. package/definitions/game/game/entity/creature/zone/zones/coastal/CoastalGuardians.d.ts +12 -0
  63. package/definitions/game/game/entity/creature/zone/zones/coastal/CoastalTileReplacements.d.ts +12 -0
  64. package/definitions/game/game/entity/creature/zone/zones/iceCap/IceCapCreatures.d.ts +12 -0
  65. package/definitions/game/game/entity/creature/zone/zones/iceCap/IceCapDoodadReplacements.d.ts +12 -0
  66. package/definitions/game/game/entity/creature/zone/zones/iceCap/IceCapGuardians.d.ts +12 -0
  67. package/definitions/game/game/entity/creature/zone/zones/iceCap/IceCapTileReplacements.d.ts +12 -0
  68. package/definitions/game/game/entity/creature/zone/zones/volcanic/VolcanicCreatures.d.ts +12 -0
  69. package/definitions/game/game/entity/creature/zone/zones/volcanic/VolcanicDoodadReplacements.d.ts +12 -0
  70. package/definitions/game/game/entity/creature/zone/zones/volcanic/VolcanicGuardians.d.ts +12 -0
  71. package/definitions/game/game/entity/creature/zone/zones/volcanic/VolcanicTileReplacements.d.ts +12 -0
  72. package/definitions/game/game/entity/creature/zone/zones/wetlands/WetlandsCreatures.d.ts +12 -0
  73. package/definitions/game/game/entity/creature/zone/zones/wetlands/WetlandsDoodadReplacements.d.ts +12 -0
  74. package/definitions/game/game/entity/creature/zone/zones/wetlands/WetlandsGuardians.d.ts +12 -0
  75. package/definitions/game/game/entity/creature/zone/zones/wetlands/WetlandsTileReplacements.d.ts +12 -0
  76. package/definitions/game/game/entity/flowfield/FlowFieldManager.d.ts +1 -1
  77. package/definitions/game/game/entity/player/IPlayer.d.ts +3 -4
  78. package/definitions/game/game/entity/player/Player.d.ts +3 -0
  79. package/definitions/game/game/entity/player/quest/quest/Quest.d.ts +1 -0
  80. package/definitions/game/game/entity/status/IStatus.d.ts +3 -0
  81. package/definitions/game/game/inspection/InfoProvider.d.ts +3 -0
  82. package/definitions/game/game/inspection/Inspection.d.ts +1 -0
  83. package/definitions/game/game/inspection/infoProviders/item/use/ItemConsumeInfo.d.ts +1 -2
  84. package/definitions/game/game/inspection/infoProviders/item/use/ItemEquipInfo.d.ts +5 -8
  85. package/definitions/game/game/island/IIsland.d.ts +1 -1
  86. package/definitions/game/game/island/Island.d.ts +1 -1
  87. package/definitions/game/game/island/automation/Automation.d.ts +12 -3
  88. package/definitions/game/game/island/automation/AutomationStep.d.ts +1 -0
  89. package/definitions/game/game/island/automation/IAutomation.d.ts +103 -8
  90. package/definitions/game/game/island/automation/steps/ExecuteAction.d.ts +1 -1
  91. package/definitions/game/game/item/IItem.d.ts +26 -5
  92. package/definitions/game/game/item/IItemManager.d.ts +7 -3
  93. package/definitions/game/game/item/Item.d.ts +1 -0
  94. package/definitions/game/game/item/ItemFinder.d.ts +1 -0
  95. package/definitions/game/game/item/ItemManager.d.ts +6 -6
  96. package/definitions/game/game/magic/MagicalPropertyManager.d.ts +1 -3
  97. package/definitions/game/game/mapgen/IMapGen.d.ts +1 -1
  98. package/definitions/game/game/mapgen/version/2.14.1.d.ts +19 -0
  99. package/definitions/game/game/meta/prompt/IPrompt.d.ts +85 -83
  100. package/definitions/game/game/meta/prompt/PromptDescriptions.d.ts +2 -0
  101. package/definitions/game/game/milestones/MilestoneDefinition.d.ts +4 -4
  102. package/definitions/game/game/milestones/milestone/Runekeeper.d.ts +6 -2
  103. package/definitions/game/game/options/modifiers/milestone/modifiers/Versatile.d.ts +8 -2
  104. package/definitions/game/game/reference/IReferenceManager.d.ts +2 -2
  105. package/definitions/game/game/tile/Tile.d.ts +6 -4
  106. package/definitions/game/game/tile/TileEventManager.d.ts +5 -0
  107. package/definitions/game/language/DictionaryMap.d.ts +8 -8
  108. package/definitions/game/language/Translation.d.ts +9 -4
  109. package/definitions/game/language/dictionary/Message.d.ts +829 -848
  110. package/definitions/game/language/dictionary/Misc.d.ts +68 -69
  111. package/definitions/game/language/dictionary/Note.d.ts +1 -2
  112. package/definitions/game/language/dictionary/UiTranslation.d.ts +902 -924
  113. package/definitions/game/language/english/ui/RunekeeperDomains.d.ts +1 -1
  114. package/definitions/game/language/impl/TranslationImpl.d.ts +1 -0
  115. package/definitions/game/multiplayer/IMultiplayer.d.ts +68 -68
  116. package/definitions/game/renderer/IRenderer.d.ts +26 -24
  117. package/definitions/game/renderer/fieldOfView/FieldOfView.d.ts +6 -0
  118. package/definitions/game/renderer/notifier/INotifier.d.ts +3 -1
  119. package/definitions/game/save/data/ISaveDataGlobal.d.ts +3 -2
  120. package/definitions/game/save/serializer/Serializer.d.ts +2 -1
  121. package/definitions/game/save/upgrade/UpgradeVersion.d.ts +3 -1
  122. package/definitions/game/save/upgrade/versions/beta2.14.0/beta2.14.0-dev20241129.d.ts +12 -0
  123. package/definitions/game/steamworks/Steamworks.d.ts +7 -0
  124. package/definitions/game/ui/ServerJoinHandler.d.ts +1 -0
  125. package/definitions/game/ui/Ui.d.ts +1 -0
  126. package/definitions/game/ui/component/Component.d.ts +2 -1
  127. package/definitions/game/ui/input/Bind.d.ts +21 -14
  128. package/definitions/game/ui/input/Bindable.d.ts +224 -222
  129. package/definitions/game/ui/input/IInput.d.ts +19 -0
  130. package/definitions/game/ui/screen/screens/GameScreen.d.ts +3 -4
  131. package/definitions/game/ui/screen/screens/game/DialogMap.d.ts +2 -0
  132. package/definitions/game/ui/screen/screens/game/Dialogs.d.ts +2 -1
  133. package/definitions/game/ui/screen/screens/game/component/Dialog.d.ts +1 -0
  134. package/definitions/game/ui/screen/screens/game/component/ItemComponent.d.ts +3 -0
  135. package/definitions/game/ui/screen/screens/game/component/container/ContainerBucketItemList.d.ts +8 -3
  136. package/definitions/game/ui/screen/screens/game/dialog/AltarDialog.d.ts +38 -0
  137. package/definitions/game/ui/screen/screens/game/dialog/ContainerDialog.d.ts +1 -0
  138. package/definitions/game/ui/screen/screens/game/static/ActionBar.d.ts +1 -0
  139. package/definitions/game/ui/screen/screens/game/static/actions/ActionSlot.d.ts +3 -1
  140. package/definitions/game/ui/screen/screens/game/static/actions/ActionsSelector.d.ts +2 -1
  141. package/definitions/game/ui/screen/screens/game/static/actions/IActionBar.d.ts +3 -1
  142. package/definitions/game/ui/screen/screens/menu/menus/options/TabDeveloper.d.ts +3 -2
  143. package/definitions/game/ui/util/ComponentManipulator.d.ts +5 -4
  144. package/definitions/game/utilities/Version.d.ts +1 -1
  145. package/definitions/game/utilities/WebWorker.d.ts +4 -1
  146. package/definitions/game/utilities/math/Direction.d.ts +1 -1
  147. package/definitions/hosts/electron/main/ipc/handlers/electron/electron.d.ts +1 -0
  148. package/definitions/hosts/shared/globals.d.ts +2 -2
  149. package/definitions/hosts/shared/interfaces.d.ts +10 -0
  150. package/definitions/hosts/shared/ipc/electron.d.ts +1 -0
  151. package/definitions/launcher/utilities/EventManager.d.ts +1 -3
  152. package/definitions/matchmakingserver/dedicatedServer.d.ts +2 -1
  153. package/definitions/matchmakingserver/directoryConnection.d.ts +1 -0
  154. package/definitions/matchmakingserver/globalServerDirectory.d.ts +1 -0
  155. package/definitions/matchmakingserver/shared.d.ts +1 -38
  156. package/definitions/test/core/applicationInteractions.d.ts +4 -0
  157. package/definitions/test/core/applicationManager.d.ts +5 -4
  158. package/definitions/test/interfaces.d.ts +0 -63
  159. package/definitions/test/testRunner.d.ts +2 -2
  160. package/definitions/utilities/Errors.d.ts +1 -0
  161. package/definitions/utilities/enum/IEnum.d.ts +1 -1
  162. package/definitions/utilities/object/Objects.d.ts +5 -15
  163. package/package.json +1 -1
  164. package/definitions/game/game/entity/creature/zone/GuardianZones.d.ts +0 -16
  165. /package/definitions/game/save/upgrade/versions/beta2.14.0/{beta2.14.0-dev20240927.d.ts → beta2.14.0-dev20241024.d.ts} +0 -0
@@ -77,6 +77,7 @@ export interface IWorldLayerCPP {
77
77
  export interface IDijkstraMap {
78
78
  getNode(x: number, y: number): INavigationNode;
79
79
  updateNode(x: number, y: number, penalty: number, disabled: boolean): void;
80
+ connectNodes(x1: number, y1: number, x2: number, y2: number, direction: number): void;
80
81
  updateOrigin(origin: INavigationNode): void;
81
82
  findPath(end: INavigationNode): {
82
83
  success: boolean;
@@ -110,6 +111,7 @@ export interface INavigationNode {
110
111
  disabled: boolean;
111
112
  penalty: number;
112
113
  connectTo(node: INavigationNode, direction: number): void;
114
+ disconnectFrom(direction: number): void;
113
115
  getConnection(direction: number): INavigationNode | undefined;
114
116
  }
115
117
  export interface IKDTree {
@@ -128,7 +128,7 @@ export declare class Game extends EventEmitter.Host<IGameEvents> {
128
128
  * @returns Array of Human objects
129
129
  */
130
130
  getPlayingHumans(includeGhosts?: boolean, includeConnecting?: boolean, includeDedicatedServer?: boolean, includeAbsent?: boolean): Human[];
131
- getNonPlayerHumans(): Human[];
131
+ getNonPlayerHumans(excludeTransientIslands?: boolean): Human[];
132
132
  getPlayingHuman(identifier: string): Human | undefined;
133
133
  /**
134
134
  * It's important that this is lowest, so that it happens after modManager's globalSlotReady event
@@ -49,6 +49,10 @@ export interface IObjectDescription extends IHasImagePath {
49
49
  * - Prevents picking up the doodad when items are inside via `preventPickingUpDoodadWhenItemsAreInside`
50
50
  */
51
51
  containerOptions?: IContainerOptions;
52
+ /**
53
+ * If set to true, this item will not tryRestoreCreature() when breaking (the difference between golems and full cages)
54
+ */
55
+ disableRestoreCreature?: boolean;
52
56
  }
53
57
  export interface IHasImagePath<ImagePathType = string> {
54
58
  /**
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * Copyright 2011-2024 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 { IBiomeMapGen } from "@wayward/game/game/mapgen/IMapGen";
12
+ export declare const aridMapGen2141: IBiomeMapGen;
@@ -13,7 +13,7 @@ import type { IBiomeTemperature } from "@wayward/game/game/temperature/ITemperat
13
13
  import { TerrainType } from "@wayward/game/game/tile/ITerrain";
14
14
  declare const _default: {
15
15
  readonly defaultTerrainBackground: TerrainType.Dirt;
16
- readonly defaultCaveEntranceFlooring: TerrainType.Dirt;
16
+ readonly defaultCaveEntranceFlooring: TerrainType.Gravel;
17
17
  readonly fog: {
18
18
  color: import("@wayward/utilities/Color").IRGB;
19
19
  };
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * Copyright 2011-2024 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 { IBiomeMapGen } from "@wayward/game/game/mapgen/IMapGen";
12
+ export declare const coastalMapGen2141: IBiomeMapGen;
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * Copyright 2011-2024 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 { IBiomeMapGen } from "@wayward/game/game/mapgen/IMapGen";
12
+ export declare const iceCapMapGen2141: IBiomeMapGen;
@@ -12,10 +12,11 @@ import type { BiomeMapGen } from "@wayward/game/game/biome/IBiome";
12
12
  import type { TemplateSpawns } from "@wayward/game/game/mapgen/IMapGen";
13
13
  import { TerrainType } from "@wayward/game/game/tile/ITerrain";
14
14
  import type { IVector3 } from "@wayward/game/utilities/math/IVector";
15
+ import type WorldZ from "@wayward/utilities/game/WorldZ";
15
16
  export interface ITemplateBiomeOptions {
16
17
  spawnCoords: IVector3;
17
- defaultTerrain: TerrainType;
18
- templates: TemplateSpawns;
18
+ defaultTerrain: PartialRecord<WorldZ, TerrainType>;
19
+ templates?: TemplateSpawns;
19
20
  }
20
21
  declare const _default: {
21
22
  readonly disableTravel: true;
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * Copyright 2011-2024 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 { IBiomeMapGen } from "@wayward/game/game/mapgen/IMapGen";
12
+ export declare const volcanicMapGen2141: IBiomeMapGen;
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * Copyright 2011-2024 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 { IBiomeMapGen } from "@wayward/game/game/mapgen/IMapGen";
12
+ export declare const wetlandsMapGen2141: IBiomeMapGen;
@@ -28,3 +28,4 @@ export declare enum DeityDiscovery {
28
28
  }
29
29
  export declare const DEITY_ENEMIES: PartialRecord<DeityReal, DeityReal>;
30
30
  export declare const DEITY_SOUNDS: PartialRecord<DeityReal, SfxType>;
31
+ export declare function getDeityEnemies(deity: ArrayOr<DeityReal>, orElse?: ArrayOr<DeityReal>): ArrayOr<DeityReal>;
@@ -25,6 +25,13 @@ export declare const DEITY_RUNE_CHANCE_BASE_MAX = 0.1;
25
25
  * The theurgy chance is combined with the base chance in the rune dropping calculation.
26
26
  */
27
27
  export declare const DEITY_RUNE_CHANCE_THEURGY_MAX = 0.1;
28
+ /**
29
+ * The chance of a rune dropping from a zone is multiplied by this value for each tier of the zone.
30
+ * For example, if this is set to 0.5, a zone of tier 1 would have a 50% less of a chance of dropping a rune, and a zone of tier 2 would have no reduced chance at dropping a rune (since it would be at 1).
31
+ *
32
+ * Zone 0 will always have a 0% chance of dropping a rune.
33
+ */
34
+ export declare const DEITY_RUNE_CHANCE_ZONE_TIER_MULTIPLIER = 0.5;
28
35
  export interface IReadableAlignment {
29
36
  /**
30
37
  * The current Deity aligned to.
@@ -233,7 +233,7 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
233
233
  removeMagic(): void;
234
234
  unhitch(): void;
235
235
  damage(forceBreak?: boolean, skipDropAsItem?: boolean, skipSound?: boolean, skipResources?: boolean, damage?: number): void;
236
- getDefaultDurability(random?: import("@wayward/utilities/random/Random").Random<import("@wayward/utilities/random/generators/LegacySeededGenerator").LegacySeededGenerator | import("@wayward/utilities/random/generators/PCGSeededGenerator").PCGSeededGenerator>): number;
236
+ getDefaultDurability(random?: import("@wayward/utilities/random/Random").Random<import("@wayward/utilities/random/generators/PCGSeededGenerator").PCGSeededGenerator | import("@wayward/utilities/random/generators/LegacySeededGenerator").LegacySeededGenerator>): number;
237
237
  /**
238
238
  * Gets the container to use for doodad executed actions
239
239
  */
@@ -30,6 +30,7 @@ import type Translation from "@wayward/game/language/Translation";
30
30
  import type { IModdable } from "@wayward/game/mod/ModRegistry";
31
31
  import type { ISpriteAnimation } from "@wayward/game/renderer/ISpriteInfo";
32
32
  import type { TileLayerType } from "@wayward/game/renderer/world/IWorldRenderer";
33
+ import type { DialogId } from "@wayward/game/ui/screen/screens/game/Dialogs";
33
34
  import type { IRGB } from "@wayward/utilities/Color";
34
35
  export interface IDoodadOptions extends IObjectOptions {
35
36
  force?: boolean;
@@ -79,6 +80,7 @@ export interface IDoodadDescription extends IObjectDescription, IModdable, ICaus
79
80
  moveIntoAction?: ActionType;
80
81
  openContainerAction?: ActionType;
81
82
  tabAction?: ActionType;
83
+ containerDialog?: DialogId;
82
84
  burnsLike?: ItemType[];
83
85
  canBreak?: boolean;
84
86
  canGrow?: boolean;
@@ -24,11 +24,12 @@ export declare enum CombatStrength {
24
24
  Tier9 = 9
25
25
  }
26
26
  export declare enum CombatDangerLevel {
27
- Low = 0,
28
- Medium = 1,
29
- High = 2,
30
- VeryHigh = 3,
31
- Extreme = 4
27
+ None = 0,
28
+ Low = 1,
29
+ Medium = 2,
30
+ High = 3,
31
+ VeryHigh = 4,
32
+ Extreme = 5
32
33
  }
33
34
  export default class CombatStrengthManager {
34
35
  readonly minimumCreatureValue: number;
@@ -119,7 +119,7 @@ export default abstract class Entity<DescriptionType = unknown, TypeType extends
119
119
  notifyItem(itemNotifierType: ItemNotifierType, item: Item): void;
120
120
  notifyStat(type: StatNotificationType, value: number): void;
121
121
  addMarkerIcon(type: MarkerIconType): void;
122
- removeMarkerIcon(): void;
122
+ removeMarkerIcon(...types: MarkerIconType[]): void;
123
123
  getProducedTemperature(): number | undefined;
124
124
  setName(renamed: string | ISerializedTranslation | undefined): void;
125
125
  canInspect(human: Human): boolean;
@@ -56,6 +56,7 @@ export default abstract class EntityMovable<DescriptionType = unknown, TypeType
56
56
  movementCompleteZ?: number;
57
57
  anim?: number;
58
58
  moveType?: MoveType;
59
+ fastMoving?: boolean;
59
60
  shouldSkipNextMovement?: true;
60
61
  protected slipping?: ISlippingData;
61
62
  protected shouldSkipNextUpdate?: true;
@@ -151,7 +152,7 @@ export default abstract class EntityMovable<DescriptionType = unknown, TypeType
151
152
  * Animates the entity between a specific set of positions
152
153
  */
153
154
  animate(fromX: number, fromY: number, toX: number, toY: number, delay: Delay): void;
154
- protected setMoving(fromX: number, fromY: number, toZ?: number, options?: IMoveToOptions): void;
155
+ setMoving(fromX: number, fromY: number, toZ?: number, options?: IMoveToOptions): void;
155
156
  protected setFromPosition(fromX?: number, fromY?: number): void;
156
157
  animateAttack(damageType: DamageType[] | undefined): void;
157
158
  getMovementPoint(timeStamp: number): IVector2;
@@ -161,6 +162,7 @@ export default abstract class EntityMovable<DescriptionType = unknown, TypeType
161
162
  getMovementProgress(timeStamp: number): number;
162
163
  protected onMovementCompleted(movingData: IMovingData): void;
163
164
  get isFlying(): boolean;
165
+ get isFastMoving(): boolean;
164
166
  /**
165
167
  * Checks if the entity is moving.
166
168
  * This is based on the local client state (renderer).
@@ -91,7 +91,7 @@ export default abstract class Human<DescriptionType = unknown, TypeType extends
91
91
  defenses: number[];
92
92
  equippedOffHandDisabled?: ItemReference;
93
93
  equippedReferences: Map<EquipType, ItemReference>;
94
- flyingDelay?: number;
94
+ fastMovingDelay?: number;
95
95
  handEquippedToLast: EquipType.OffHand | EquipType.MainHand;
96
96
  isConnecting: boolean;
97
97
  lastAttackedByReference?: Reference;
@@ -513,7 +513,7 @@ export default abstract class Human<DescriptionType = unknown, TypeType extends
513
513
  /**
514
514
  * Recompute lights around the human
515
515
  */
516
- computeLights(): void;
516
+ computeLights(z?: number): void;
517
517
  /**
518
518
  * Moves inventory items to the target island
519
519
  * This should be called before switching islands
@@ -145,6 +145,7 @@ export declare enum MoveType {
145
145
  Void = 512,
146
146
  LandBlind = 1024,// Will not attempt to move towards targets on land
147
147
  Hole = 2048,
148
+ Fast = 4096,
148
149
  Flying = 15
149
150
  }
150
151
  export declare enum AttackType {
@@ -471,9 +471,6 @@ export interface ICrafted {
471
471
  newUnlock: boolean;
472
472
  }
473
473
  export interface ICheckUnderOptions {
474
- autoActions?: boolean;
475
- enterCave?: boolean;
476
- forcePickUp?: boolean;
477
474
  skipDoodadEvents?: boolean;
478
475
  burned?: boolean;
479
476
  }
@@ -25,12 +25,8 @@ import { Direction } from "@wayward/game/utilities/math/Direction";
25
25
  import type { IVector3 } from "@wayward/game/utilities/math/IVector";
26
26
  export declare class Action<A extends ActionArguments, E extends Entity = Entity, R = void, CU extends IActionUsable = IActionUsable, AV extends any[] = ActionArgumentTupleTypes<A>> implements IActionDescription<A, E, R, CU, AV> {
27
27
  readonly argumentTypes: A;
28
- readonly usability: {
29
- [key in ActionUsability]?: boolean;
30
- };
31
- readonly flags: {
32
- [key in ActionFlag]?: boolean;
33
- };
28
+ readonly usability: PartialRecord<ActionUsability, boolean>;
29
+ readonly flags: PartialRecord<ActionFlag, boolean>;
34
30
  validExecutors: Set<EntityType>;
35
31
  preExecutionHandler?: (actionApi: IActionApi<E, CU>, ...args: AV) => any;
36
32
  canUseHandler: (actionApi: IActionHandlerApi<E, CU>, ...args: AV) => CU | IActionNotUsable;
@@ -106,7 +106,7 @@ export default class ActionExecutor<A extends ActionArguments, E extends Entity,
106
106
  */
107
107
  prompt<PROMPT extends IPromptDescriptionBase<any[]>>(prompt: PROMPT, ...args: PromptDescriptionArgs<PROMPT>): Promise<boolean>;
108
108
  isArgumentType<AA extends ActionArgument>(argument: any, index: number, argumentType: AA): argument is IActionArgumentTypeMap[AA];
109
- setContext(tool?: Item | Translation, target?: ArrayOr<Entity> | Tile | Translation, details?: Record<string, TranslationArg>): this;
109
+ setContext(tool?: Item | Translation, target?: ArrayOr<Entity> | Tile | Translation, details?: Record<string, TranslationArg>): IActionContext | undefined;
110
110
  getContext(): IActionContext;
111
111
  setDelay(delay: number, replace?: boolean): this;
112
112
  setPassTurn(turnType?: TurnTypeFlag): this;