@wayward/types 2.11.4-beta.dev.20220208.1 → 2.11.4-beta.dev.20220209.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.
|
@@ -145,7 +145,7 @@ export default class Item extends EventEmitter.Host<IItemEvents> implements IRef
|
|
|
145
145
|
getDecayRate(isClientSide: boolean): number;
|
|
146
146
|
getPreservationDecayMultiplier(): number;
|
|
147
147
|
getTemperatureDecayMultiplier(isClientSide: boolean): number;
|
|
148
|
-
getTotalWeight(bypassContainer?: boolean): number;
|
|
148
|
+
getTotalWeight(bypassContainer?: boolean, targetContainer?: IContainer): number;
|
|
149
149
|
getDisassemblyWeight(): number;
|
|
150
150
|
getDisassemblyItems(): IItemDisassembleResult | undefined;
|
|
151
151
|
isNearby(executor: Entity, allowNearby?: boolean): boolean;
|
|
@@ -223,9 +223,10 @@ export default class Item extends EventEmitter.Host<IItemEvents> implements IRef
|
|
|
223
223
|
revertFromDoodad(doodad: Doodad): void;
|
|
224
224
|
/**
|
|
225
225
|
* Returns the container weight reduction
|
|
226
|
+
* @param targetContainer Container to calculate the weight reduction for
|
|
226
227
|
* @returns 1 if there is no reducton or [-50% + magical storing values]
|
|
227
228
|
*/
|
|
228
|
-
getContainerWeightReduction(): number;
|
|
229
|
+
getContainerWeightReduction(container?: IContainer | undefined): number;
|
|
229
230
|
canBeRefined(): boolean;
|
|
230
231
|
getProducedTemperature(): number | undefined;
|
|
231
232
|
postProcessDecay(): void;
|
|
@@ -134,7 +134,7 @@ export default class ItemManager extends ObjectManager<Item, IItemManagerEvents>
|
|
|
134
134
|
getMagicalWeightCapacity(container: IContainer): number;
|
|
135
135
|
moveAllFromContainerToContainer(human: Human | undefined, fromContainer: IContainer, toContainer: IContainer, itemType?: ItemType | undefined, ofQuality?: Quality | undefined, checkWeight?: boolean, filterText?: string | undefined, onMoveItem?: (item: Item) => void): Item[];
|
|
136
136
|
moveToContainer(human: Human | undefined, item: Item, container: IContainer): boolean;
|
|
137
|
-
hasRoomInContainer(
|
|
137
|
+
hasRoomInContainer(targetContainer: IContainer, itemToMove: Item): boolean;
|
|
138
138
|
breakContainerOnTile(itemContainer: Item, x: number, y: number, z: number): void;
|
|
139
139
|
/**
|
|
140
140
|
* Drop items in a 3x3 square around the location
|
package/package.json
CHANGED