@wayward/types 2.13.0-beta.dev.20230310.1 → 2.13.0-beta.dev.20230311.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.
|
@@ -21,7 +21,6 @@ import { ContainerType, CraftResult, ItemType, ItemTypeExtra, ItemTypeGroup } fr
|
|
|
21
21
|
import type { IAddToContainerOptions, IDoodadsUsed, IGetBestItemsOptions, IGetItemOptions, IGetItemsOptions, IRequirementInfo } from "game/item/IItemManager";
|
|
22
22
|
import { ContainerReferenceSource, CraftStatus, ICraftResultChances, WeightType } from "game/item/IItemManager";
|
|
23
23
|
import Item from "game/item/Item";
|
|
24
|
-
import type ItemRecipeRequirementChecker from "game/item/ItemRecipeRequirementChecker";
|
|
25
24
|
import { ObjectManager } from "game/ObjectManager";
|
|
26
25
|
import { TerrainType } from "game/tile/ITerrain";
|
|
27
26
|
import type Tile from "game/tile/Tile";
|
|
@@ -58,14 +57,6 @@ export interface IItemManagerEvents {
|
|
|
58
57
|
* @param container The container object the item was added to. This container might be inventory or a container within the inventory.
|
|
59
58
|
*/
|
|
60
59
|
containerItemAdd(item: Item, container: IContainer): any;
|
|
61
|
-
/**
|
|
62
|
-
* Called when a craft is "requested". This currently happens when clicking an item in the crafting dialog.
|
|
63
|
-
* @param requirementsMet Whether the requirements are currently met. This hook is a `reduce` hook, so this will contain
|
|
64
|
-
* whatever the result of the last hook host was, or the value of `checker.requirementsMet()`, by default.
|
|
65
|
-
* @param item The item to be crafted.
|
|
66
|
-
* @param checker The recipe requirement checker for this craft.
|
|
67
|
-
*/
|
|
68
|
-
shouldCraft(requirementsMet: boolean, item: ItemType, checker: ItemRecipeRequirementChecker): boolean | undefined;
|
|
69
60
|
/**
|
|
70
61
|
* Called when an item is crafted
|
|
71
62
|
* @param human The human object
|
package/package.json
CHANGED