@wayward/types 2.15.0-beta.dev.20250913.1 → 2.15.0-beta.dev.20250914.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.
|
@@ -662,6 +662,7 @@ export interface ICreateOnBreak {
|
|
|
662
662
|
tileEventType?: TileEventType;
|
|
663
663
|
itemType?: ItemType;
|
|
664
664
|
excludeDamageTypes?: DamageType[];
|
|
665
|
+
disassemblyItem?: ItemType | ItemTypeGroup;
|
|
665
666
|
}
|
|
666
667
|
export type IDismantleComponent = Record<number, number>;
|
|
667
668
|
export interface IItemChangeIntoOptions {
|
|
@@ -519,6 +519,12 @@ export default class Item extends EntityMovable<IItemDescription, ItemType, Refe
|
|
|
519
519
|
* Sets the base item type based on the disassembly items and the overlayItem property.
|
|
520
520
|
*/
|
|
521
521
|
setBaseItemType(): void;
|
|
522
|
+
/**
|
|
523
|
+
* Gets the item type that should be returned when the item is used up or decays.
|
|
524
|
+
* @returns The item type that should be returned when the item is used up or decays, or ItemType.None if nothing should be returned.
|
|
525
|
+
*/
|
|
526
|
+
getReturnType(): ItemType;
|
|
527
|
+
createReturnItem(returnType: ItemType, container?: IContainer): Item | undefined;
|
|
522
528
|
private checkIfItemsMatch;
|
|
523
529
|
private checkIfItemArraysMatch;
|
|
524
530
|
}
|
|
@@ -20,7 +20,7 @@ declare enum Type {
|
|
|
20
20
|
}
|
|
21
21
|
type BackgroundIDTypeSuffix = "" | `-${Lowercase<keyof typeof Type>}`;
|
|
22
22
|
type BackgroundIDQuality = Lowercase<Exclude<keyof typeof Quality, "None" | "Random">>;
|
|
23
|
-
type BackgroundID = `default${BackgroundIDTypeSuffix}` | `quality-${BackgroundIDQuality}${BackgroundIDTypeSuffix}` | `damaged${BackgroundIDTypeSuffix}` | `trading${BackgroundIDTypeSuffix}` |
|
|
23
|
+
type BackgroundID = `default${BackgroundIDTypeSuffix}` | `quality-${BackgroundIDQuality}${BackgroundIDTypeSuffix}` | `damaged${BackgroundIDTypeSuffix}` | `trading${BackgroundIDTypeSuffix}` | `overlay${BackgroundIDTypeSuffix}` | "non-craftable" | "discovery-active" | "non-craftable-discovery";
|
|
24
24
|
export default class ItemStylesheetHandler {
|
|
25
25
|
private readonly backgroundDefinitions;
|
|
26
26
|
readonly editor: SpriteEditor;
|
package/package.json
CHANGED