@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.
- package/definitions/cplusplus/index.d.ts +2 -0
- package/definitions/game/game/Game.d.ts +1 -1
- package/definitions/game/game/IObject.d.ts +4 -0
- package/definitions/game/game/biome/arid/mapGen/2.14.1.d.ts +12 -0
- package/definitions/game/game/biome/coastal/Coastal.d.ts +1 -1
- package/definitions/game/game/biome/coastal/mapGen/2.14.1.d.ts +12 -0
- package/definitions/game/game/biome/iceCap/mapGen/2.14.1.d.ts +12 -0
- package/definitions/game/game/biome/template/Template.d.ts +3 -2
- package/definitions/game/game/biome/volcanic/mapGen/2.14.1.d.ts +12 -0
- package/definitions/game/game/biome/wetlands/mapGen/2.14.1.d.ts +12 -0
- package/definitions/game/game/deity/Deity.d.ts +1 -0
- package/definitions/game/game/deity/IDeities.d.ts +7 -0
- package/definitions/game/game/doodad/Doodad.d.ts +1 -1
- package/definitions/game/game/doodad/IDoodad.d.ts +2 -0
- package/definitions/game/game/entity/CombatStrengthManager.d.ts +6 -5
- package/definitions/game/game/entity/Entity.d.ts +1 -1
- package/definitions/game/game/entity/EntityMovable.d.ts +3 -1
- package/definitions/game/game/entity/Human.d.ts +2 -2
- package/definitions/game/game/entity/IEntity.d.ts +1 -0
- package/definitions/game/game/entity/IHuman.d.ts +0 -3
- package/definitions/game/game/entity/action/Action.d.ts +2 -6
- package/definitions/game/game/entity/action/ActionExecutor.d.ts +1 -1
- package/definitions/game/game/entity/action/ActionsRegistration.d.ts +17 -8
- package/definitions/game/game/entity/action/IAction.d.ts +16 -11
- package/definitions/game/game/entity/action/actions/{Sacrifice.d.ts → AscendDescend.d.ts} +1 -8
- package/definitions/game/game/entity/action/actions/CageCreature.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ClearMessages.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Consecrate.d.ts +43 -0
- package/definitions/game/game/entity/action/actions/Craft.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/CraftNew.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Dismantle.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Drop.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Eat.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/GatherLiquid.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Harvest.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/Ignite.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Plant.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/SetCreatureAi.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/SetCreatureAiAll.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/SetTitle.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Stack.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Throw.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/moveItem/MoveItemFilterArgument.d.ts +1 -0
- package/definitions/game/game/entity/action/actions/moveItem/MoveItemOptionsArgument.d.ts +1 -0
- package/definitions/game/game/entity/action/usable/IUsableAction.d.ts +2 -1
- package/definitions/game/game/entity/action/usable/UsableAction.d.ts +3 -1
- package/definitions/game/game/entity/action/usable/UsableActionTranslator.d.ts +6 -6
- package/definitions/game/game/entity/action/usable/UsableActionType.d.ts +3 -1
- package/definitions/game/game/entity/action/usable/actions/UsableActionsDynamic.d.ts +3 -0
- package/definitions/game/game/entity/action/usable/actions/UsableActionsWorld.d.ts +1 -1
- package/definitions/game/game/entity/ai/AI.d.ts +7 -7
- package/definitions/game/game/entity/creature/Creature.d.ts +1 -0
- package/definitions/game/game/entity/creature/zone/CreatureZone.d.ts +4 -3
- package/definitions/game/game/entity/creature/zone/CreatureZoneManager.d.ts +2 -2
- package/definitions/game/game/entity/creature/zone/ICreatureZone.d.ts +29 -1
- package/definitions/game/game/entity/creature/zone/zones/arid/AridCreatures.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/arid/AridDoodadReplacements.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/arid/AridGuardians.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/arid/AridTileReplacements.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/coastal/CoastalCreatures.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/coastal/CoastalDoodadReplacements.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/coastal/CoastalGuardians.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/coastal/CoastalTileReplacements.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/iceCap/IceCapCreatures.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/iceCap/IceCapDoodadReplacements.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/iceCap/IceCapGuardians.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/iceCap/IceCapTileReplacements.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/volcanic/VolcanicCreatures.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/volcanic/VolcanicDoodadReplacements.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/volcanic/VolcanicGuardians.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/volcanic/VolcanicTileReplacements.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/wetlands/WetlandsCreatures.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/wetlands/WetlandsDoodadReplacements.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/wetlands/WetlandsGuardians.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/wetlands/WetlandsTileReplacements.d.ts +12 -0
- package/definitions/game/game/entity/flowfield/FlowFieldManager.d.ts +1 -1
- package/definitions/game/game/entity/player/IPlayer.d.ts +3 -4
- package/definitions/game/game/entity/player/Player.d.ts +3 -0
- package/definitions/game/game/entity/player/quest/quest/Quest.d.ts +1 -0
- package/definitions/game/game/entity/status/IStatus.d.ts +3 -0
- package/definitions/game/game/inspection/InfoProvider.d.ts +3 -0
- package/definitions/game/game/inspection/Inspection.d.ts +1 -0
- package/definitions/game/game/inspection/infoProviders/item/use/ItemConsumeInfo.d.ts +1 -2
- package/definitions/game/game/inspection/infoProviders/item/use/ItemEquipInfo.d.ts +5 -8
- package/definitions/game/game/island/IIsland.d.ts +1 -1
- package/definitions/game/game/island/Island.d.ts +1 -1
- package/definitions/game/game/island/automation/Automation.d.ts +12 -3
- package/definitions/game/game/island/automation/AutomationStep.d.ts +1 -0
- package/definitions/game/game/island/automation/IAutomation.d.ts +103 -8
- package/definitions/game/game/island/automation/steps/ExecuteAction.d.ts +1 -1
- package/definitions/game/game/item/IItem.d.ts +26 -5
- package/definitions/game/game/item/IItemManager.d.ts +7 -3
- package/definitions/game/game/item/Item.d.ts +1 -0
- package/definitions/game/game/item/ItemFinder.d.ts +1 -0
- package/definitions/game/game/item/ItemManager.d.ts +6 -6
- package/definitions/game/game/magic/MagicalPropertyManager.d.ts +1 -3
- package/definitions/game/game/mapgen/IMapGen.d.ts +1 -1
- package/definitions/game/game/mapgen/version/2.14.1.d.ts +19 -0
- package/definitions/game/game/meta/prompt/IPrompt.d.ts +85 -83
- package/definitions/game/game/meta/prompt/PromptDescriptions.d.ts +2 -0
- package/definitions/game/game/milestones/MilestoneDefinition.d.ts +4 -4
- package/definitions/game/game/milestones/milestone/Runekeeper.d.ts +6 -2
- package/definitions/game/game/options/modifiers/milestone/modifiers/Versatile.d.ts +8 -2
- package/definitions/game/game/reference/IReferenceManager.d.ts +2 -2
- package/definitions/game/game/tile/Tile.d.ts +6 -4
- package/definitions/game/game/tile/TileEventManager.d.ts +5 -0
- package/definitions/game/language/DictionaryMap.d.ts +8 -8
- package/definitions/game/language/Translation.d.ts +9 -4
- package/definitions/game/language/dictionary/Message.d.ts +829 -848
- package/definitions/game/language/dictionary/Misc.d.ts +68 -69
- package/definitions/game/language/dictionary/Note.d.ts +1 -2
- package/definitions/game/language/dictionary/UiTranslation.d.ts +902 -924
- package/definitions/game/language/english/ui/RunekeeperDomains.d.ts +1 -1
- package/definitions/game/language/impl/TranslationImpl.d.ts +1 -0
- package/definitions/game/multiplayer/IMultiplayer.d.ts +68 -68
- package/definitions/game/renderer/IRenderer.d.ts +26 -24
- package/definitions/game/renderer/fieldOfView/FieldOfView.d.ts +6 -0
- package/definitions/game/renderer/notifier/INotifier.d.ts +3 -1
- package/definitions/game/save/data/ISaveDataGlobal.d.ts +3 -2
- package/definitions/game/save/serializer/Serializer.d.ts +2 -1
- package/definitions/game/save/upgrade/UpgradeVersion.d.ts +3 -1
- package/definitions/game/save/upgrade/versions/beta2.14.0/beta2.14.0-dev20241129.d.ts +12 -0
- package/definitions/game/steamworks/Steamworks.d.ts +7 -0
- package/definitions/game/ui/ServerJoinHandler.d.ts +1 -0
- package/definitions/game/ui/Ui.d.ts +1 -0
- package/definitions/game/ui/component/Component.d.ts +2 -1
- package/definitions/game/ui/input/Bind.d.ts +21 -14
- package/definitions/game/ui/input/Bindable.d.ts +224 -222
- package/definitions/game/ui/input/IInput.d.ts +19 -0
- package/definitions/game/ui/screen/screens/GameScreen.d.ts +3 -4
- package/definitions/game/ui/screen/screens/game/DialogMap.d.ts +2 -0
- package/definitions/game/ui/screen/screens/game/Dialogs.d.ts +2 -1
- package/definitions/game/ui/screen/screens/game/component/Dialog.d.ts +1 -0
- package/definitions/game/ui/screen/screens/game/component/ItemComponent.d.ts +3 -0
- package/definitions/game/ui/screen/screens/game/component/container/ContainerBucketItemList.d.ts +8 -3
- package/definitions/game/ui/screen/screens/game/dialog/AltarDialog.d.ts +38 -0
- package/definitions/game/ui/screen/screens/game/dialog/ContainerDialog.d.ts +1 -0
- package/definitions/game/ui/screen/screens/game/static/ActionBar.d.ts +1 -0
- package/definitions/game/ui/screen/screens/game/static/actions/ActionSlot.d.ts +3 -1
- package/definitions/game/ui/screen/screens/game/static/actions/ActionsSelector.d.ts +2 -1
- package/definitions/game/ui/screen/screens/game/static/actions/IActionBar.d.ts +3 -1
- package/definitions/game/ui/screen/screens/menu/menus/options/TabDeveloper.d.ts +3 -2
- package/definitions/game/ui/util/ComponentManipulator.d.ts +5 -4
- package/definitions/game/utilities/Version.d.ts +1 -1
- package/definitions/game/utilities/WebWorker.d.ts +4 -1
- package/definitions/game/utilities/math/Direction.d.ts +1 -1
- package/definitions/hosts/electron/main/ipc/handlers/electron/electron.d.ts +1 -0
- package/definitions/hosts/shared/globals.d.ts +2 -2
- package/definitions/hosts/shared/interfaces.d.ts +10 -0
- package/definitions/hosts/shared/ipc/electron.d.ts +1 -0
- package/definitions/launcher/utilities/EventManager.d.ts +1 -3
- package/definitions/matchmakingserver/dedicatedServer.d.ts +2 -1
- package/definitions/matchmakingserver/directoryConnection.d.ts +1 -0
- package/definitions/matchmakingserver/globalServerDirectory.d.ts +1 -0
- package/definitions/matchmakingserver/shared.d.ts +1 -38
- package/definitions/test/core/applicationInteractions.d.ts +4 -0
- package/definitions/test/core/applicationManager.d.ts +5 -4
- package/definitions/test/interfaces.d.ts +0 -63
- package/definitions/test/testRunner.d.ts +2 -2
- package/definitions/utilities/Errors.d.ts +1 -0
- package/definitions/utilities/enum/IEnum.d.ts +1 -1
- package/definitions/utilities/object/Objects.d.ts +5 -15
- package/package.json +1 -1
- package/definitions/game/game/entity/creature/zone/GuardianZones.d.ts +0 -16
- /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.
|
|
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
|
|
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/
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
@@ -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
|
-
|
|
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>):
|
|
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;
|