@wayward/types 2.14.0-beta.dev.20240115.1 → 2.14.0-beta.dev.20240117.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.
|
@@ -98,6 +98,7 @@ export default class ItemManager extends EntityManager<Item, IItemRemoveOptions>
|
|
|
98
98
|
private static readonly cachedItemsThatAreUsedInRecipes;
|
|
99
99
|
private static readonly cachedWeights;
|
|
100
100
|
private static readonly cachedMostCommonItemColors;
|
|
101
|
+
private static readonly cachedItemsThatCanBeRelic;
|
|
101
102
|
static readonly cachedItemSpawns: Map<BiomeType, Map<WorldZ, Map<TerrainType, ItemType[]>>>;
|
|
102
103
|
static getItemTypes(): readonly ItemType[];
|
|
103
104
|
static getItemsWithRecipes(): readonly ItemType[];
|
|
@@ -105,6 +106,7 @@ export default class ItemManager extends EntityManager<Item, IItemRemoveOptions>
|
|
|
105
106
|
static getHighestItemActionTierForAction(action: ActionType): number;
|
|
106
107
|
static isItemAcceptedAsOffer(item: ItemType): boolean;
|
|
107
108
|
static isItemUsedInRecipe(item: ItemType): boolean;
|
|
109
|
+
static canItemBeRelic(item: ItemType): boolean;
|
|
108
110
|
static isItemUsedForGrowingPlants(item: ItemType): boolean;
|
|
109
111
|
static getMostCommonItemColor(item: ItemType): IRGB | undefined;
|
|
110
112
|
static isContainer(obj: unknown): obj is IContainer;
|
|
@@ -140,6 +142,8 @@ export default class ItemManager extends EntityManager<Item, IItemRemoveOptions>
|
|
|
140
142
|
private static cacheItemWeights;
|
|
141
143
|
private static cacheCreatureOfferingsAndResources;
|
|
142
144
|
static cacheAsync(): Promise<void>;
|
|
145
|
+
private static cacheRelicItems;
|
|
146
|
+
private static getDisassemblyAndBurnItemTypes;
|
|
143
147
|
private static cacheRemainingItemStuff;
|
|
144
148
|
static clearCaches(): void;
|
|
145
149
|
static getUseItemActions(): ReadonlySet<ActionType>;
|
|
@@ -205,7 +209,7 @@ export default class ItemManager extends EntityManager<Item, IItemRemoveOptions>
|
|
|
205
209
|
*/
|
|
206
210
|
protected onRemove(): boolean;
|
|
207
211
|
getDisassemblyComponents(description: IItemDescription, quality: Quality | undefined): Item[];
|
|
208
|
-
getDisassemblyComponentsAsItemTypes(description: IItemDescription): Array<ItemType | ItemTypeGroup>;
|
|
212
|
+
static getDisassemblyComponentsAsItemTypes(description: IItemDescription): Array<ItemType | ItemTypeGroup>;
|
|
209
213
|
getWeightCapacity(container: IContainer, includeMagic?: boolean): number | undefined;
|
|
210
214
|
create(itemType: ItemType | ItemTypeGroup | Array<ItemType | ItemTypeGroup>, container: IContainer | undefined, quality?: Quality, human?: Human, updateTables?: boolean, context?: ActionContext): Item;
|
|
211
215
|
createFake(itemType: ItemType | ItemTypeGroup | Array<ItemType | ItemTypeGroup>, quality?: Quality, human?: Human): Item;
|
package/package.json
CHANGED