@wayward/types 2.14.5-beta.dev.20250609.1 → 2.14.5-beta.dev.20250613.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/doodad/DoodadManager.d.ts +2 -2
- package/definitions/game/game/entity/EntityManager.d.ts +1 -1
- package/definitions/game/game/entity/Human.d.ts +2 -1
- package/definitions/game/game/entity/action/ActionsRegistration.d.ts +3 -1
- package/definitions/game/game/entity/action/IAction.d.ts +4 -2
- package/definitions/game/game/entity/action/actions/AddItemDiscovered.d.ts +14 -0
- package/definitions/game/game/entity/action/actions/Dig.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ResetItemDiscovered.d.ts +13 -0
- package/definitions/game/game/entity/action/actions/SetDown.d.ts +1 -1
- package/definitions/game/game/entity/player/Player.d.ts +12 -1
- package/definitions/game/game/item/IItem.d.ts +2 -1
- package/definitions/game/game/item/Item.d.ts +1 -1
- package/definitions/game/game/item/ItemManager.d.ts +1 -1
- package/definitions/game/game/milestones/IMilestone.d.ts +1 -1
- package/definitions/game/game/tile/ITerrain.d.ts +2 -1
- package/definitions/game/game/tile/events/IFire.d.ts +1 -1
- package/definitions/game/language/english/game/Actions.d.ts +1 -1
- package/definitions/game/multiplayer/IMultiplayer.d.ts +4 -2
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Copyright 2011-
|
2
|
+
* Copyright 2011-2025 Unlok
|
3
3
|
* https://www.unlok.ca
|
4
4
|
*
|
5
5
|
* Credits & Thanks:
|
@@ -85,7 +85,7 @@ export default class DoodadManager extends EntityManager<Doodad> {
|
|
85
85
|
*/
|
86
86
|
updateAllAsync(ticks: number, playingHumans: Human[], playerHumanTiles: Set<Tile>, onProgress: (progess: number) => Promise<void>): Promise<void>;
|
87
87
|
verifyAndFixItemWeights(): void;
|
88
|
-
getScarecrowInRange(tile: Tile
|
88
|
+
getScarecrowInRange(tile: Tile): Doodad | undefined;
|
89
89
|
getScarecrowInLineOfSight(creature: Creature, isClientside: boolean): Doodad | undefined;
|
90
90
|
private addScarecrow;
|
91
91
|
private removeScarecrow;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Copyright 2011-
|
2
|
+
* Copyright 2011-2025 Unlok
|
3
3
|
* https://www.unlok.ca
|
4
4
|
*
|
5
5
|
* Credits & Thanks:
|
@@ -130,6 +130,7 @@ export default abstract class Human<DescriptionType = unknown, TypeType extends
|
|
130
130
|
highestAttack?: number;
|
131
131
|
highestDefense?: number;
|
132
132
|
cumulativeEvilCrafting: number;
|
133
|
+
itemDiscovered: ItemType[];
|
133
134
|
/** @deprecated (use the entity itself) */
|
134
135
|
readonly inventory: IContainer;
|
135
136
|
/**
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Copyright 2011-
|
2
|
+
* Copyright 2011-2025 Unlok
|
3
3
|
* https://www.unlok.ca
|
4
4
|
*
|
5
5
|
* Credits & Thanks:
|
@@ -191,4 +191,6 @@ export declare const actionDescriptionsSlow: {
|
|
191
191
|
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, {
|
192
192
|
usable: true;
|
193
193
|
}, [import("../../tile/Tile").default]>;
|
194
|
+
142: import("./Action").Action<[import("@wayward/game/game/entity/action/IAction").ActionArgument.Integer32], import("../Human").default<unknown, number, import("../../reference/IReferenceManager").ReferenceType.NPC | import("../../reference/IReferenceManager").ReferenceType.Player>, void, import("@wayward/game/game/entity/action/IAction").IActionUsable, [number]>;
|
195
|
+
143: import("./Action").Action<[], import("../Human").default<unknown, number, import("../../reference/IReferenceManager").ReferenceType.NPC | import("../../reference/IReferenceManager").ReferenceType.Player>, void, import("@wayward/game/game/entity/action/IAction").IActionUsable, []>;
|
194
196
|
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Copyright 2011-
|
2
|
+
* Copyright 2011-2025 Unlok
|
3
3
|
* https://www.unlok.ca
|
4
4
|
*
|
5
5
|
* Credits & Thanks:
|
@@ -186,7 +186,9 @@ export declare enum ActionType {
|
|
186
186
|
ViewItems = 138,
|
187
187
|
AscendDescend = 139,
|
188
188
|
DiscoverRecipe = 140,
|
189
|
-
ExcavateCollapse = 141
|
189
|
+
ExcavateCollapse = 141,
|
190
|
+
AddItemDiscovered = 142,
|
191
|
+
ResetItemDiscovered = 143
|
190
192
|
}
|
191
193
|
export declare const ACTIONS_RECOMMENDED: ActionType[];
|
192
194
|
export declare enum ActionUsability {
|
@@ -0,0 +1,14 @@
|
|
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.Integer32], import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player>, void, import("@wayward/game/game/entity/action/IAction").IActionUsable, [number]>;
|
14
|
+
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 { Action } from "@wayward/game/game/entity/action/Action";
|
12
|
+
declare const _default: Action<[], import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player>, void, import("@wayward/game/game/entity/action/IAction").IActionUsable, []>;
|
13
|
+
export default _default;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Copyright 2011-
|
2
|
+
* Copyright 2011-2025 Unlok
|
3
3
|
* https://www.unlok.ca
|
4
4
|
*
|
5
5
|
* Credits & Thanks:
|
@@ -112,6 +112,12 @@ export default class Player extends Human<undefined, number, ReferenceType.Playe
|
|
112
112
|
}>): void;
|
113
113
|
private updateTablesInternal;
|
114
114
|
shouldDiscoverRecipe(recipe: IRecipe, checker: ItemRecipeRequirementChecker): boolean;
|
115
|
+
/**
|
116
|
+
* Checks if the item is discovered based on the game options and milestones.
|
117
|
+
* @param itemType The type of the item to check.
|
118
|
+
* @returns True if the item is discovered, false otherwise.
|
119
|
+
*/
|
120
|
+
private isItemDiscovered;
|
115
121
|
private isRecipeDiscovered;
|
116
122
|
private updateCraftTable;
|
117
123
|
updateDismantleTable(adjacentContainers?: IContainer[], force?: boolean): void;
|
@@ -138,6 +144,11 @@ export default class Player extends Human<undefined, number, ReferenceType.Playe
|
|
138
144
|
* Only use this clientside
|
139
145
|
*/
|
140
146
|
isExploredClientSide(x: number, y: number, z: number): boolean;
|
147
|
+
/**
|
148
|
+
* Add milestones and local item discovery for the given item type.
|
149
|
+
* @param itemType The type of the item to discover.
|
150
|
+
*/
|
151
|
+
discoverItem(itemType: ItemType): void;
|
141
152
|
protected onSkillGain(skill: SkillType, fromValue: number, toValue: number, mod: number): void;
|
142
153
|
protected getStatusApplicability(): StatusApplicability | undefined;
|
143
154
|
private canWriteInHours;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Copyright 2011-
|
2
|
+
* Copyright 2011-2025 Unlok
|
3
3
|
* https://www.unlok.ca
|
4
4
|
*
|
5
5
|
* Credits & Thanks:
|
@@ -121,6 +121,7 @@ export interface IItemDisassembly {
|
|
121
121
|
maxDur: number;
|
122
122
|
weight: number;
|
123
123
|
magic: MagicalPropertyManager | undefined;
|
124
|
+
aestheticRandom: number | undefined;
|
124
125
|
disassembly: Item[];
|
125
126
|
tradedFrom: string[] | undefined;
|
126
127
|
decay: number | undefined;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Copyright 2011-
|
2
|
+
* Copyright 2011-2025 Unlok
|
3
3
|
* https://www.unlok.ca
|
4
4
|
*
|
5
5
|
* Credits & Thanks:
|
@@ -175,6 +175,7 @@ export interface ITileData {
|
|
175
175
|
meltDecay?: number;
|
176
176
|
weight?: number;
|
177
177
|
magic?: MagicalPropertyManager;
|
178
|
+
aestheticRandom?: number;
|
178
179
|
disassembly?: Item[];
|
179
180
|
ownerIdentifier?: string;
|
180
181
|
renamed?: string | ISerializedTranslation | undefined;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Copyright 2011-
|
2
|
+
* Copyright 2011-2025 Unlok
|
3
3
|
* https://www.unlok.ca
|
4
4
|
*
|
5
5
|
* Credits & Thanks:
|
@@ -115,7 +115,9 @@ export declare enum MultiplayerSyncCheck {
|
|
115
115
|
Time = 75,
|
116
116
|
UpdateDirection = 76,
|
117
117
|
Weight = 77,
|
118
|
-
WorldUpdateTile = 78
|
118
|
+
WorldUpdateTile = 78,
|
119
|
+
AddItemDiscovered = 79,
|
120
|
+
ResetItemDiscovered = 80
|
119
121
|
}
|
120
122
|
export declare const maxPlayers = 32;
|
121
123
|
export declare const packetTickRate = 16.6666;
|
package/package.json
CHANGED