@wayward/types 2.15.1-beta.dev.20251028.1 → 2.15.2-beta.dev.20251030.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.
@@ -8,7 +8,7 @@
8
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
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
- import type { ItemTypeExtra } from "@wayward/game/game/item/IItem";
11
+ import { ItemTypeExtra } from "@wayward/game/game/item/IItem";
12
12
  import { ItemType } from "@wayward/game/game/item/IItem";
13
13
  declare const _default: {
14
14
  affixesBeforeReformat: Map<ItemType | ItemTypeExtra, string>;
@@ -10,7 +10,7 @@
10
10
  */
11
11
  import { type IUpgradeVersion, type UpgradeParameters, type UpgradeType } from "@wayward/game/save/upgrade/UpgradeVersion";
12
12
  import type UpgradesArray from "@wayward/game/save/upgrade/UpgradesArray";
13
- import type Version from "@wayward/utilities/Version";
13
+ import Version from "@wayward/utilities/Version";
14
14
  import type { IBuildId } from "@wayward/hosts/shared/globalTypes";
15
15
  export declare const BUILD_TIME_INTRODUCED_TIME: Date;
16
16
  declare namespace UpgradeVersionRegistry {
@@ -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;
@@ -9,8 +9,8 @@
9
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
11
  import type { IWaywardTitle } from "@wayward/hosts/shared/globalTypes";
12
- export declare const gameVersionStage = "beta", gameVersionMajor = 2, gameVersionMinor = 15, gameVersionPatch = 1, gameVersionName = "Cursebreaker", gameVersionColor = 5186397;
13
- export declare const gameVersion = "beta2.15.1";
12
+ export declare const gameVersionStage = "beta", gameVersionMajor = 2, gameVersionMinor = 15, gameVersionPatch = 2, gameVersionName = "Cursebreaker", gameVersionColor = 5186397;
13
+ export declare const gameVersion = "beta2.15.2";
14
14
  export declare const gameVersionTitleMajor = "Wayward: Cursebreaker";
15
15
  export declare const gameVersionTitleMinor: string;
16
16
  export declare const gameVersionTitle: string;
@@ -37,9 +37,15 @@ declare namespace Math2 {
37
37
  /**
38
38
  * Returns a number floored to a certain number of decimal places.
39
39
  *
40
- * Example: `roundNumber(1.24999999, 2): 1.24`
40
+ * Example: `floorNumber(1.24999999, 2): 1.24`
41
41
  */
42
42
  function floorNumber(num: number, places: number): number;
43
+ /**
44
+ * Returns a number ceiled to a certain number of decimal places.
45
+ *
46
+ * Example: `ceilNumber(1.24111111, 2): 1.25`
47
+ */
48
+ function ceilNumber(num: number, places: number): number;
43
49
  /**
44
50
  * Returns a number rounded to a multiple
45
51
  *
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.1-beta.dev.20251028.1",
4
+ "version": "2.15.2-beta.dev.20251030.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",