@wayward/types 2.15.1-beta.dev.20251028.1 → 2.15.2-beta.dev.20251029.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.
@@ -730,9 +730,10 @@ export interface IMagicalPropertyInfo {
730
730
  */
731
731
  max: number;
732
732
  /**
733
- * Does nothing for integer magical properties. For decimal magical properties, rounds it to the nearest `.1` for calculations and display.
733
+ * The precision for this magical property. Magical property values are rounded up to this many decimal places.
734
+ * Defaults to 0 (integers).
734
735
  */
735
- roundToNearestTenthPlace?: true;
736
+ precision?: number;
736
737
  /**
737
738
  * Generates a random starting value for this magical property.
738
739
  */
@@ -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.20251029.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",