@wayward/types 2.10.8-beta.dev.20210922.1 → 2.10.9-beta.dev.20210928.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.
@@ -225,6 +225,19 @@ export default class Item extends EventEmitter.Host<IItemEvents> implements IRef
225
225
  * @param player Player or NPC entity that is carrying the item to extinguish.
226
226
  */
227
227
  extinguish(player: Player | NPC | undefined): void;
228
+ /**
229
+ * Get the maximum durability for an item based on many factors.
230
+ * @param human Player that we checking to get the maximum item durability (as game options can affect this).
231
+ * @returns The maximum durability of the item as a number.
232
+ */
233
+ getMaxDurability(human: Human): number;
234
+ /**
235
+ * Get the maximum reinforcement allowed for an item based on many factors.
236
+ * @param maxDurability The maximum durability that the item should have.
237
+ * @param actionTier Any bonus from the item's action tier.
238
+ * @returns The maximum reinforcement of the item as a number.
239
+ */
240
+ getMaxReinforcement(maxDurability: number, actionTier: number): number;
228
241
  onUnserialized(): void;
229
242
  private setupDurabilityHandlers;
230
243
  private checkIfItemsMatch;
@@ -55,6 +55,7 @@ export default class MapDialog extends Dialog {
55
55
  getName(): Translation;
56
56
  read(map: DrawnMap, item: Item, resetView?: boolean): Promise<void>;
57
57
  protected onInventoryItemRemove(_: any, item: Item): void;
58
+ protected onInventoryItemAdd(_: any, item: Item): void;
58
59
  protected onInventoryItemUpdate(_: any, item: Item): void;
59
60
  protected onPostMove(player: Player): void;
60
61
  protected onLoad(): Promise<void>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wayward/types",
3
3
  "description": "TypeScript declarations for Wayward, used for modding.",
4
- "version": "2.10.8-beta.dev.20210922.1",
4
+ "version": "2.10.9-beta.dev.20210928.1",
5
5
  "dependencies": {
6
6
  "@wayward/goodstream": "0.5.2"
7
7
  },