@wayward/types 2.15.5-beta.dev.20260421.1 → 2.15.5-beta.dev.20260424.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.
@@ -422,6 +422,11 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
422
422
  */
423
423
  stokeFire(stokeValue: number, human?: Human): boolean;
424
424
  getDecayAtStartWithMagical(): number;
425
+ /**
426
+ * Gets the torche's decay value based on quality.
427
+ * @returns A number equal to the maximum item decay or `undefined` if the item should not have decay at all.
428
+ */
429
+ getTorchMaxDecayTime(): number | undefined;
425
430
  protected clampDecayToMax(type: MagicalPropertyType): void;
426
431
  protected clampDurabilityToMax(type: MagicalPropertyType): void;
427
432
  protected updateDurabilityForPersistence(type: MagicalPropertyType, value?: number, previousValue?: number, curse?: true): void;
@@ -355,4 +355,8 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
355
355
  */
356
356
  getMaximumTravelTime(): number;
357
357
  canMelt(terrainType: TerrainType, tile: Tile): boolean;
358
+ /**
359
+ * Gets the decay bonus based on the item or doodad's quality.
360
+ */
361
+ getDecayQualityBonus(quality?: Quality): number;
358
362
  }
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * Copyright 2011-2025 Unlok
3
+ * https://www.unlok.ca
4
+ *
5
+ * Credits & Thanks:
6
+ * https://www.unlok.ca/credits-thanks/
7
+ *
8
+ * Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
9
+ * https://github.com/WaywardGame/types/wiki
10
+ */
11
+ declare const _default: import("@wayward/game/save/upgrade/UpgradeVersion").IUpgradeVersionDefinition<unknown>;
12
+ export default _default;
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * Copyright 2011-2025 Unlok
3
+ * https://www.unlok.ca
4
+ *
5
+ * Credits & Thanks:
6
+ * https://www.unlok.ca/credits-thanks/
7
+ *
8
+ * Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
9
+ * https://github.com/WaywardGame/types/wiki
10
+ */
11
+ declare const _default: Record<string, import("@wayward/game/save/upgrade/UpgradeVersion").IUpgradeVersion>;
12
+ export default _default;
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.15.5-beta.dev.20260421.1",
4
+ "version": "2.15.5-beta.dev.20260424.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",