@wayward/types 2.15.1-beta.dev.20251027.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
  */
@@ -394,7 +394,7 @@ export default class ItemManager extends EntityManager<Item, IItemRemoveOptions>
394
394
  * @param filterText The string of text in which to filter for.
395
395
  * @param craftingFilter True if we are filtering the crafting dialog.
396
396
  */
397
- static isFiltered(item: ItemType | Item, filterText: string, craftingFilter?: boolean): boolean;
397
+ static isFiltered(item: ItemType | Item, filterText: string, craftingFilter?: boolean, dismantleFilter?: boolean): boolean;
398
398
  /**
399
399
  * Returns `true` if the item type or item is filtered out from inventory/crafting/container dialogs.
400
400
  * @param item The ItemType or Item to check.
@@ -52,6 +52,7 @@ export interface IMagicalPropertyDescription {
52
52
  */
53
53
  disableCurse?: true;
54
54
  subTypeEnum?: Record<string, string | number>;
55
+ notBasicEnum?: boolean;
55
56
  isValidEnum?(enumValue: number): boolean;
56
57
  translateArgs?(...identity: MagicalPropertyIdentity): TranslationArg[];
57
58
  }
@@ -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.20251027.1",
4
+ "version": "2.15.2-beta.dev.20251029.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",