@wayward/types 2.15.0-beta.dev.20251023.1 → 2.15.0-beta.dev.20251024.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.
- package/definitions/game/game/curse/Curse.d.ts +2 -2
- package/definitions/game/game/entity/EntityMovable.d.ts +4 -0
- package/definitions/game/game/entity/creature/Creature.d.ts +4 -0
- package/definitions/game/game/entity/creature/zone/ICreatureZone.d.ts +17 -0
- package/definitions/game/game/entity/creature/zone/zones/arid/AridCreatureCombos.d.ts +13 -0
- package/definitions/game/game/entity/creature/zone/zones/coastal/CoastalCreatureCombos.d.ts +13 -0
- package/definitions/game/game/entity/creature/zone/zones/iceCap/IceCapCreatureCombos.d.ts +13 -0
- package/definitions/game/game/entity/creature/zone/zones/volcanic/VolcanicCreatureCombos.d.ts +13 -0
- package/definitions/game/game/entity/creature/zone/zones/wetlands/WetlandsCreatureCombos.d.ts +13 -0
- package/definitions/game/game/inspection/infoProviders/stat/TemperatureInfo.d.ts +18 -0
- package/definitions/game/game/tile/Tile.d.ts +1 -0
- package/definitions/game/game/tile/events/Fire.d.ts +1 -1
- package/definitions/game/language/Translation.d.ts +1 -1
- package/definitions/game/language/dictionary/UiTranslation.d.ts +632 -628
- package/definitions/game/renderer/notifier/INotifier.d.ts +4 -0
- package/definitions/game/renderer/world/WorldRenderer.d.ts +0 -1
- package/definitions/game/utilities/Observer.d.ts +2 -0
- package/package.json +1 -1
|
@@ -111,8 +111,8 @@ declare namespace Curse {
|
|
|
111
111
|
function reload(island: Island, isNew?: boolean): void;
|
|
112
112
|
function spawnCurseEvents(island: Island, humans: Human[]): void;
|
|
113
113
|
function attemptCurseEventSpawn(category: CurseCategory, human: Human, curse: number, humans: Human[], events: CurseEventInstance[]): CurseEventInstance | undefined;
|
|
114
|
-
function attemptSpecificCurseEventSpawn(human: Human, type: CurseEventType, humans: Human[], curse?: number): CurseEventInstance | undefined;
|
|
115
|
-
function attemptSpecificCurseEventSpawnOnPlayer(player: Human, curseType: CurseEventType): CurseEventInstance | undefined;
|
|
114
|
+
function attemptSpecificCurseEventSpawn(human: Human, type: CurseEventType, humans: Human[], curse?: number, force?: boolean | "full"): CurseEventInstance | undefined;
|
|
115
|
+
function attemptSpecificCurseEventSpawnOnPlayer(player: Human, curseType: CurseEventType, force: boolean | "full"): CurseEventInstance | undefined;
|
|
116
116
|
function unload(island: Island): void;
|
|
117
117
|
function cleanup(island: Island, humans?: Human[], isMorning?: boolean): void;
|
|
118
118
|
function cleanupEphemerals(island: Island): void;
|
|
@@ -161,6 +161,10 @@ export default abstract class EntityMovable<DescriptionType = unknown, TypeType
|
|
|
161
161
|
* Gets movement progress and moves the state machine forward when the movement is completed
|
|
162
162
|
*/
|
|
163
163
|
getMovementProgress(timeStamp: number): number;
|
|
164
|
+
/**
|
|
165
|
+
* Returns the Y offset when rendering this entity when it's flying
|
|
166
|
+
*/
|
|
167
|
+
getFlyingOffsetY(movementProgress: number): number;
|
|
164
168
|
protected onMovementCompleted(movingData: IMovingData): void;
|
|
165
169
|
get isFlying(): boolean;
|
|
166
170
|
get isFastMoving(): boolean;
|
|
@@ -221,6 +221,10 @@ export default class Creature extends EntityWithStats<ICreatureDescription, Crea
|
|
|
221
221
|
private breakItems;
|
|
222
222
|
private processAiChanges;
|
|
223
223
|
private addAlertedMarker;
|
|
224
|
+
/**
|
|
225
|
+
* Used for offseting notifiers
|
|
226
|
+
*/
|
|
227
|
+
getMovementOffsetY(timeStamp: number): number;
|
|
224
228
|
/**
|
|
225
229
|
* @returns Whether the creature has lost interest
|
|
226
230
|
*/
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type { DoodadType } from "@wayward/game/game/doodad/IDoodad";
|
|
12
12
|
import type { CreatureType } from "@wayward/game/game/entity/creature/ICreature";
|
|
13
|
+
import type { ItemType } from "@wayward/game/game/item/IItem";
|
|
13
14
|
import type { TerrainType } from "@wayward/game/game/tile/ITerrain";
|
|
15
|
+
import type { TileEventType } from "@wayward/game/game/tile/ITileEvent";
|
|
14
16
|
import type { PartOfDay } from "@wayward/game/game/time/ITimeManager";
|
|
15
17
|
import type { IVector2, IVector3 } from "@wayward/game/utilities/math/IVector";
|
|
16
18
|
import type WorldZ from "@wayward/utilities/game/WorldZ";
|
|
@@ -42,6 +44,7 @@ export interface IBiomeCreatureZones {
|
|
|
42
44
|
guardians?: IBiomeGuardianZoneTiers;
|
|
43
45
|
tileReplacements?: IBiomeTileReplacements;
|
|
44
46
|
doodadReplacements?: IBiomeDoodadReplacements;
|
|
47
|
+
creatureCombos?: IBiomeCreatureCombos;
|
|
45
48
|
}
|
|
46
49
|
export type IBiomeCreatureZoneTiers = PartialRecord<`tier${number}`, IBiomeCreatureZoneTier>;
|
|
47
50
|
export type IBiomeCreatureZoneTier = Map<WorldZ, IBiomeCreatureZoneSpawnGroup[]>;
|
|
@@ -68,6 +71,20 @@ export interface IBiomeDoodadReplacement {
|
|
|
68
71
|
}
|
|
69
72
|
export type IBiomeDoodadReplacements = PartialRecord<`tier${number}`, IBiomeDoodadReplacement[]>;
|
|
70
73
|
export declare function doodadReplacementsTiers(replacements: IBiomeDoodadReplacements): IBiomeDoodadReplacements;
|
|
74
|
+
export interface IBiomeCreatureCombo {
|
|
75
|
+
/** The doodad to spawn when the creature is present. */
|
|
76
|
+
doodad?: DoodadType;
|
|
77
|
+
/** The tile event to spawn when the creature is present. */
|
|
78
|
+
tileEvent?: TileEventType;
|
|
79
|
+
/** The item to spawn when the creature is present. */
|
|
80
|
+
item?: ItemType;
|
|
81
|
+
/** `0` = 0% chance of spawning when the creature is present, `1` = 100%. Defaults to `1`. */
|
|
82
|
+
chance?: number;
|
|
83
|
+
/** Number of times to attempt spawning in the zone. Defaults to `1`. */
|
|
84
|
+
attempts?: number;
|
|
85
|
+
}
|
|
86
|
+
export type IBiomeCreatureCombos = PartialRecord<CreatureType, IBiomeCreatureCombo[]>;
|
|
87
|
+
export declare function creatureCombos(spawns: IBiomeCreatureCombos): IBiomeCreatureCombos;
|
|
71
88
|
/**
|
|
72
89
|
* The default size of a zone, on each axis. IE, a value of 60 is 60 tiles wide and 60 tiles long.
|
|
73
90
|
*/
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { CreatureType } from "@wayward/game/game/entity/creature/ICreature";
|
|
12
|
+
declare const _default: Partial<Record<CreatureType, import("@wayward/game/game/entity/creature/zone/ICreatureZone").IBiomeCreatureCombo[]>>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { CreatureType } from "@wayward/game/game/entity/creature/ICreature";
|
|
12
|
+
declare const _default: Partial<Record<CreatureType, import("@wayward/game/game/entity/creature/zone/ICreatureZone").IBiomeCreatureCombo[]>>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { CreatureType } from "@wayward/game/game/entity/creature/ICreature";
|
|
12
|
+
declare const _default: Partial<Record<CreatureType, import("@wayward/game/game/entity/creature/zone/ICreatureZone").IBiomeCreatureCombo[]>>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { CreatureType } from "@wayward/game/game/entity/creature/ICreature";
|
|
12
|
+
declare const _default: Partial<Record<CreatureType, import("@wayward/game/game/entity/creature/zone/ICreatureZone").IBiomeCreatureCombo[]>>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { CreatureType } from "@wayward/game/game/entity/creature/ICreature";
|
|
12
|
+
declare const _default: Partial<Record<CreatureType, import("@wayward/game/game/entity/creature/zone/ICreatureZone").IBiomeCreatureCombo[]>>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
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 { InfoProvider } from "@wayward/game/game/inspection/InfoProvider";
|
|
12
|
+
import { StatInfo } from "@wayward/game/game/inspection/infoProviders/stat/StatInfo";
|
|
13
|
+
export declare enum TemperatureInfoClasses {
|
|
14
|
+
}
|
|
15
|
+
export default class TemperatureInfo extends StatInfo {
|
|
16
|
+
private readonly temperatureFactors;
|
|
17
|
+
get(): InfoProvider[];
|
|
18
|
+
}
|
|
@@ -474,6 +474,7 @@ export default class Tile implements IVector4, Partial<ITileContainer>, IFieldOf
|
|
|
474
474
|
* Array version of tilesAround
|
|
475
475
|
*/
|
|
476
476
|
getTilesAround(includeCurrentTile?: boolean, includeCorners?: boolean): Tile[];
|
|
477
|
+
getFlyingOffset(): number;
|
|
477
478
|
/**
|
|
478
479
|
* IterableIterator version of TileHelpers.getTilesAround
|
|
479
480
|
*/
|
|
@@ -8,7 +8,7 @@
|
|
|
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 type
|
|
11
|
+
import { type ITileEventDescription } from "@wayward/game/game/tile/ITileEvent";
|
|
12
12
|
import type TileEvent from "@wayward/game/game/tile/TileEvent";
|
|
13
13
|
interface IFireDescription extends ITileEventDescription {
|
|
14
14
|
spread(tileEvent: TileEvent, ticks: number): void;
|
|
@@ -207,7 +207,7 @@ declare namespace Translation {
|
|
|
207
207
|
constructor(base?: FVal, reformatter?: SupplierOr<Translation | undefined>);
|
|
208
208
|
noParenthesis(): this;
|
|
209
209
|
percentage(isPercentage?: boolean, premultiplied?: boolean): this;
|
|
210
|
-
translate(simple?: boolean): Translation;
|
|
210
|
+
translate(simple?: boolean | "unless verbose"): Translation;
|
|
211
211
|
private parenthesize;
|
|
212
212
|
private translateAndFormatComponent;
|
|
213
213
|
private translateComponent;
|