@wayward/types 2.11.4-beta.dev.20220207.1 → 2.11.4-beta.dev.20220208.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/entity/action/Actions.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/UpdateItemQuickSlot.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/helper/GatherTreasure.d.ts +1 -2
- package/definitions/game/game/item/IItem.d.ts +1 -0
- package/definitions/game/game/item/Item.d.ts +1 -1
- package/definitions/game/game/item/ItemManager.d.ts +1 -1
- package/definitions/game/game/mapping/DrawnMap.d.ts +1 -0
- package/definitions/game/game/tile/events/IFire.d.ts +2 -2
- package/definitions/game/ui/old/screens/InGameScreen.d.ts +1 -1
- package/package.json +1 -1
|
@@ -111,7 +111,7 @@ declare const actionDescriptions: {
|
|
|
111
111
|
89: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby, import("game/entity/action/IAction").ActionArgument.Boolean], import("../player/Player").default | import("../npc/NPC").default, void, [import("../../item/Item").default, boolean]>;
|
|
112
112
|
59: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.Direction, [import("game/entity/action/IAction").ActionArgument.Integer32, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../player/Player").default | import("../npc/NPC").default, void, [import("../../../utilities/math/Direction").Direction.None | import("../../../utilities/math/Direction").Direction.East | import("../../../utilities/math/Direction").Direction.North | import("../../../utilities/math/Direction").Direction.West | import("../../../utilities/math/Direction").Direction.South, (number | undefined)?]>;
|
|
113
113
|
90: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.Container, [import("game/entity/action/IAction").ActionArgument.UnsignedInteger32NumberArray, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../player/Player").default, void, [import("../../item/IItem").IContainer, (number[] | undefined)?]>;
|
|
114
|
-
97: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.Item,
|
|
114
|
+
97: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.Item, import("game/entity/action/IAction").ActionArgument.Integer32, [import("game/entity/action/IAction").ActionArgument.Boolean, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../player/Player").default, void, [import("../../item/Item").default, number, (boolean | undefined)?]>;
|
|
115
115
|
104: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.String, import("game/entity/action/IAction").ActionArgument.Object], import("../player/Player").default, void, [string, any?]>;
|
|
116
116
|
92: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby, [import("game/entity/action/IAction").ActionArgument.ItemNearby, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../player/Player").default | import("../npc/NPC").default, void, [import("../../item/Item").default, (import("../../item/Item").default | undefined)?]>;
|
|
117
117
|
62: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby, import("game/entity/action/IAction").ActionArgument.ActionType], import("../player/Player").default | import("../npc/NPC").default, void, [import("../../item/Item").default, ActionType]>;
|
|
@@ -10,5 +10,5 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { Action } from "game/entity/action/Action";
|
|
12
12
|
import { ActionArgument } from "game/entity/action/IAction";
|
|
13
|
-
declare const _default: Action<[ActionArgument.Item,
|
|
13
|
+
declare const _default: Action<[ActionArgument.Item, ActionArgument.Integer32, [ActionArgument.Boolean, ActionArgument.Undefined]], import("../../player/Player").default, void, [import("../../../item/Item").default, number, (boolean | undefined)?]>;
|
|
14
14
|
export default _default;
|
|
@@ -14,10 +14,9 @@ import type Player from "game/entity/player/Player";
|
|
|
14
14
|
import type Item from "game/item/Item";
|
|
15
15
|
import type { ITreasure } from "game/mapping/DrawnMap";
|
|
16
16
|
import type DrawnMap from "game/mapping/DrawnMap";
|
|
17
|
-
import type { IVector3 } from "utilities/math/IVector";
|
|
18
17
|
export declare enum GatherTreasureResult {
|
|
19
18
|
NoTreasure = 0,
|
|
20
19
|
NotYet = 1,
|
|
21
20
|
Gathered = 2
|
|
22
21
|
}
|
|
23
|
-
export default function (map: DrawnMap, treasure: ITreasure,
|
|
22
|
+
export default function (map: DrawnMap, treasure: ITreasure, action: IActionHandlerApi<Player | NPC>, tool?: Item): GatherTreasureResult;
|
|
@@ -187,6 +187,7 @@ export interface IItemDescription extends IObjectDescription, IModdable, ITemper
|
|
|
187
187
|
/**
|
|
188
188
|
* Array of items that the item is "made from" in cases where we can't use the disassembly items to burn into.
|
|
189
189
|
* All items in array are required to have onBurn set in their description to function properly.
|
|
190
|
+
* This should eventually be removed since we want to be able to break down items into proper sub-ingredients/items.
|
|
190
191
|
*/
|
|
191
192
|
burnsLike?: ItemType[];
|
|
192
193
|
spawnableTiles?: TileGroup;
|
|
@@ -169,7 +169,7 @@ export default class Item extends EventEmitter.Host<IItemEvents> implements IRef
|
|
|
169
169
|
isEquipped(): boolean;
|
|
170
170
|
getEquippedPlayer(): Human | undefined;
|
|
171
171
|
getEquipSlot(): EquipType | undefined;
|
|
172
|
-
setQuickSlot(player: Player, quickSlot: number
|
|
172
|
+
setQuickSlot(player: Player, quickSlot: number, removeQuickSlot?: boolean): void;
|
|
173
173
|
clearQuickSlot(): void;
|
|
174
174
|
isDecayed(): boolean;
|
|
175
175
|
changeInto(type: ItemType, disableNotify?: boolean, emitTransformation?: boolean): void;
|
|
@@ -208,7 +208,7 @@ export default class ItemManager extends ObjectManager<Item, IItemManagerEvents>
|
|
|
208
208
|
* Note: It may return the real containedItems array!
|
|
209
209
|
*/
|
|
210
210
|
getOrderedContainerItems(container: IContainer, options?: Partial<IGetItemOptions>): Item[];
|
|
211
|
-
|
|
211
|
+
capWeightOfItems(createdItems: Item[], itemWeight: number): void;
|
|
212
212
|
getItemTypeTranslation(itemType: ItemType | ItemTypeGroup): Translation;
|
|
213
213
|
getItemTypeTranslation(itemType: ItemType | ItemTypeGroup, count: number): Translation;
|
|
214
214
|
getItemTypeTranslation(itemType: ItemType | ItemTypeGroup, article: boolean): Translation;
|
|
@@ -125,6 +125,7 @@ export default class DrawnMap extends EventEmitter.Host<IDrawnMapEvents> impleme
|
|
|
125
125
|
get isValid(): boolean;
|
|
126
126
|
get island(): Island;
|
|
127
127
|
private constructor();
|
|
128
|
+
toString(): string;
|
|
128
129
|
preSerializeObject(): void;
|
|
129
130
|
onUnserialized(): void;
|
|
130
131
|
getTreasure(): readonly ITreasure[];
|
|
@@ -33,7 +33,7 @@ export declare module FireStage {
|
|
|
33
33
|
function getTemperature(stage: FireStage, min: number, max: number): number;
|
|
34
34
|
}
|
|
35
35
|
export declare module IFire {
|
|
36
|
-
function dissassemblyBurn(island: Island, item: Item, container: ITileContainer, disassembly: boolean):
|
|
36
|
+
function dissassemblyBurn(island: Island, item: Item, container: ITileContainer, disassembly: boolean): Item[];
|
|
37
37
|
function harvestGatherBurn(step: number, resources: ILootItem[] | undefined, container: IContainer, quality: Quality | undefined, tileEvent: TileEvent): void;
|
|
38
|
-
function burnsLike(burnsLikeItem: ItemType, tileEvent: TileEvent, tileContainer: IContainer, quality: Quality | undefined):
|
|
38
|
+
function burnsLike(burnsLikeItem: ItemType, tileEvent: TileEvent, tileContainer: IContainer, quality: Quality | undefined): Item[];
|
|
39
39
|
}
|
|
@@ -166,7 +166,7 @@ export default class InGameScreen extends BaseScreen {
|
|
|
166
166
|
addItemToFreeQuickSlot(itemId: number): boolean;
|
|
167
167
|
clearQuickSlot(quickSlot: number, internal?: boolean): void;
|
|
168
168
|
removeItemFromQuickSlot(quickSlot: number, itemId?: number, skipSync?: boolean): void;
|
|
169
|
-
setItemQuickslot(item: Item, quickSlot: number
|
|
169
|
+
setItemQuickslot(item: Item, quickSlot: number, removeQuickSlot?: boolean): void;
|
|
170
170
|
updateQuickSlotItem(quickSlot: number): boolean;
|
|
171
171
|
onUpdateQuickSlotsOrEquips(): void;
|
|
172
172
|
onSortableItemReceive(sortableEvent: ISortableEvent): void;
|
package/package.json
CHANGED