@wayward/types 2.15.5-beta.dev.20260508.1 → 2.15.5-beta.dev.20260512.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.
|
@@ -429,7 +429,7 @@ export default class Item extends EntityMovable<IItemDescription, ItemType, Refe
|
|
|
429
429
|
*/
|
|
430
430
|
resetDecayTime(overrideDefault?: number): void;
|
|
431
431
|
/**
|
|
432
|
-
* Gets the item's max decay value based on quality. The max number can be modified slightly due to overrideDefault (crafting) and adding fuel which goes over this max.
|
|
432
|
+
* Gets the item's base max decay value based on quality. The max number can be modified slightly due to overrideDefault (crafting) and adding fuel which goes over this max.
|
|
433
433
|
* @param overrideDefault Override the item's decayMax definition with something else.
|
|
434
434
|
* @param withRandomization True if you want to return a randomized value (useful when setting the value on an item).
|
|
435
435
|
* @returns A number equal to the maximum item decay or `undefined` if the item should not have decay at all.
|
|
@@ -221,10 +221,7 @@ export default class ItemManager extends EntityManager<Item, IItemRemoveOptions>
|
|
|
221
221
|
getItemInsertIndexInContainer(container: IContainer, item: Item, sorter?: ISorter<Item | undefined>): number | undefined;
|
|
222
222
|
removeContainerItems(container: IContainer, options?: IItemRemoveOptions): void;
|
|
223
223
|
remove(item: Item, options?: IItemRemoveOptions): void;
|
|
224
|
-
|
|
225
|
-
* No need to run special logic when loading items
|
|
226
|
-
*/
|
|
227
|
-
protected loadEntity: undefined;
|
|
224
|
+
protected loadEntity(item: Item): void;
|
|
228
225
|
/**
|
|
229
226
|
* For entity manager compat
|
|
230
227
|
*/
|
package/package.json
CHANGED