@wayward/types 2.15.4-beta.dev.20260409.1 → 2.15.4-beta.dev.20260411.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.
Files changed (29) hide show
  1. package/definitions/game/game/doodad/Doodad.d.ts +2 -1
  2. package/definitions/game/game/doodad/IDoodad.d.ts +12 -3
  3. package/definitions/game/game/entity/Entity.d.ts +1 -0
  4. package/definitions/game/game/entity/Human.d.ts +3 -0
  5. package/definitions/game/game/entity/skill/SkillManager.d.ts +1 -0
  6. package/definitions/game/game/entity/status/handler/BadTemperatureEffect.d.ts +1 -1
  7. package/definitions/game/game/inspection/infoProviders/doodad/DoodadFireSource.d.ts +20 -0
  8. package/definitions/game/game/inspection/infoProviders/item/use/ItemEquipInfo.d.ts +1 -3
  9. package/definitions/game/game/inspection/infoProviders/item/use/ItemSleepInfo.d.ts +26 -0
  10. package/definitions/game/game/milestones/MilestoneManager.d.ts +3 -0
  11. package/definitions/game/game/temperature/ITemperature.d.ts +1 -0
  12. package/definitions/game/language/dictionary/Message.d.ts +459 -458
  13. package/definitions/game/mod/ModInformation.d.ts +2 -0
  14. package/definitions/game/mod/ModManager.d.ts +2 -0
  15. package/definitions/game/save/upgrade/versions/beta2.15.4/beta2.15.4-dev20260409.d.ts +12 -0
  16. package/definitions/game/save/upgrade/versions/beta2.15.4/beta2.15.4.d.ts +12 -0
  17. package/definitions/game/ui/Ui.d.ts +0 -1
  18. package/definitions/game/ui/input/Bindable.d.ts +7 -8
  19. package/definitions/game/ui/screen/screens/game/static/Stats.d.ts +1 -0
  20. package/definitions/game/ui/screen/screens/game/static/stats/component/StatComponent.d.ts +1 -0
  21. package/definitions/game/ui/screen/screens/menu/component/RealTimeTickSpeedRow.d.ts +18 -0
  22. package/definitions/game/ui/screen/screens/menu/menus/mods/ModRow.d.ts +2 -0
  23. package/definitions/game/ui/screen/screens/menu/menus/newgame/TabMultiplayer.d.ts +3 -1
  24. package/definitions/game/ui/screen/screens/menu/menus/pause/GameSettingsMenu.d.ts +2 -2
  25. package/definitions/test/suite/unitTests/game/game/milestones/MilestoneManager.spec.d.ts +13 -0
  26. package/definitions/test/suite/unitTests/game/mod/ModInformation.spec.d.ts +13 -0
  27. package/definitions/test/suite/unitTests/game/mod/ModManager.spec.d.ts +13 -0
  28. package/definitions/test/suite/unitTests/game/ui/screen/screens/menu/menus/mods/ModRow.spec.d.ts +13 -0
  29. package/package.json +1 -1
@@ -28,7 +28,7 @@ import type NPC from "@wayward/game/game/entity/npc/NPC";
28
28
  import type Player from "@wayward/game/game/entity/player/Player";
29
29
  import type { IWell } from "@wayward/game/game/island/IIsland";
30
30
  import { LiquidType } from "@wayward/game/game/island/IIsland";
31
- import type { ContainerSort, DisplayableItemType, IContainer, IItemVehicle, ILiquidGather, IUncastableContainer, ItemTypeExtra } from "@wayward/game/game/item/IItem";
31
+ import type { ContainerSort, DisplayableItemType, IContainer, IItemDescription, IItemVehicle, ILiquidGather, IUncastableContainer, ItemTypeExtra } from "@wayward/game/game/item/IItem";
32
32
  import { ItemType } from "@wayward/game/game/item/IItem";
33
33
  import type Item from "@wayward/game/game/item/Item";
34
34
  import type { IHasMagic } from "@wayward/game/game/magic/IMagicalProperty";
@@ -165,6 +165,7 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
165
165
  toString(): string;
166
166
  getRegistrarId(): number;
167
167
  get litDescription(): IDoodadDescription | undefined;
168
+ get itemDescription(): IItemDescription | undefined;
168
169
  /**
169
170
  * Entity controlling this doodad (for wheel barrows)
170
171
  */
@@ -545,7 +545,10 @@ export declare enum DoodadTypeGroup {
545
545
  Anvil = -9994,
546
546
  Well = -9993,
547
547
  Hitch = -9992,
548
- GatheredPlant = -9991,// Special case for plants that need to be gathered to get the "main resource"
548
+ /**
549
+ * Special case for plants that need to be gathered to get the "main resource"
550
+ */
551
+ GatheredPlant = -9991,
549
552
  FireSource = -9990,
550
553
  LitTorch = -9989,
551
554
  LightDevice = -9988,
@@ -553,7 +556,10 @@ export declare enum DoodadTypeGroup {
553
556
  * This is set for lit torches, candles, and jack-o'-lanterns specifically
554
557
  */
555
558
  LightSource = -9987,
556
- LitStructure = -9986,// Prevents pick up while lit
559
+ /**
560
+ * Prevents pick up while lit
561
+ */
562
+ LitStructure = -9986,
557
563
  LockedChest = -9985,
558
564
  Scarecrow = -9984,
559
565
  Lighthouse = -9983,
@@ -563,9 +569,12 @@ export declare enum DoodadTypeGroup {
563
569
  Wheelbarrow = -9979,
564
570
  Altar = -9978,
565
571
  OpenFireSource = -9977,
566
- Unused = -9976,// <----------- Use this one
572
+ ResetsDecayWhenLit = -9976,
567
573
  ContainsFuelSource = -9975,
568
574
  CurseWard = -9974,
575
+ /**
576
+ * Used for plants with snow (so they don't spawn/spread/generate with snow already on them)
577
+ */
569
578
  CannotBeSpread = -9973
570
579
  }
571
580
  export declare enum DoorOrientation {
@@ -126,6 +126,7 @@ export default abstract class Entity<DescriptionType = unknown, TypeType extends
126
126
  * This is called clientside the first time the renderer seens the entity
127
127
  */
128
128
  onFirstRender(renderer: Renderer): void;
129
+ computeLights(): void;
129
130
  getCurrentMarker(): Readonly<MarkerDescription> | undefined;
130
131
  setMarkerIconHidden(hidden: boolean): void;
131
132
  /**
@@ -166,7 +166,10 @@ export default abstract class Human<DescriptionType = unknown, TypeType extends
166
166
  createSkillManager(): SkillManager;
167
167
  get isLocalPlayer(): boolean;
168
168
  get isResting(): boolean;
169
+ get isRestingAndNotSleeping(): boolean;
170
+ get isSleeping(): boolean;
169
171
  get isRestingCancelled(): boolean;
172
+ get restDoodad(): Doodad | undefined;
170
173
  get isGhost(): boolean;
171
174
  get isDead(): boolean;
172
175
  /**
@@ -86,6 +86,7 @@ export default class SkillManager {
86
86
  setCore(skill: SkillType, value: number): this;
87
87
  setBonus(skill: SkillType, bonus: number): this;
88
88
  setBonuses(bonuses: Map<SkillType, number>): this;
89
+ reset(): this;
89
90
  /**
90
91
  * @returns Whether the skill of this human is more than or equal to a random number between `0` and the value of `check`.
91
92
  */
@@ -16,7 +16,7 @@ import type Island from "@wayward/game/game/island/Island";
16
16
  import { Temperature, TempType } from "@wayward/game/game/temperature/ITemperature";
17
17
  export declare const CHANCE_TEMP_CONSEQUENCE_EFFECT = 0.3;
18
18
  export declare const CHANCE_TEMP_CONSEQUENCE_STAT = 0.5;
19
- export declare const CHANCE_TEMP_WAKEUP = 0.15;
19
+ export declare const CHANCE_TEMP_WAKEUP: number;
20
20
  export default abstract class BadTemperatureEffect extends Status {
21
21
  protected effectiveTemperature: Temperature;
22
22
  register(): void;
@@ -0,0 +1,20 @@
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
+ import type Doodad from "@wayward/game/game/doodad/Doodad";
12
+ import { InfoProvider } from "@wayward/game/game/inspection/InfoProvider";
13
+ import type TranslationImpl from "@wayward/game/language/impl/TranslationImpl";
14
+ export default class DoodadFireSource extends InfoProvider {
15
+ private readonly doodad;
16
+ static get(doodad: Doodad): DoodadFireSource | undefined;
17
+ constructor(doodad: Doodad);
18
+ getClass(): string[];
19
+ get(): TranslationImpl;
20
+ }
@@ -13,8 +13,6 @@ import UseInfo from "@wayward/game/game/inspection/infoProviders/UseInfo";
13
13
  import type Item from "@wayward/game/game/item/Item";
14
14
  import { MagicalPropertyEntry } from "@wayward/game/game/magic/IMagicalProperty";
15
15
  import MagicalPropertyType from "@wayward/game/game/magic/MagicalPropertyType";
16
- import type { IInsulationResult } from "@wayward/game/game/temperature/ITemperature";
17
- import { TempType } from "@wayward/game/game/temperature/ITemperature";
18
16
  import UiTranslation from "@wayward/game/language/dictionary/UiTranslation";
19
17
  declare const _default: UseInfo<{
20
18
  equip: import("../../../../entity/IHuman").EquipType;
@@ -26,5 +24,5 @@ declare const _default: UseInfo<{
26
24
  action: ActionType.Equip;
27
25
  union: import("@wayward/game/game/inspection/infoProviders/UseInfo").IUseInfoBase<Item, ActionType.Equip>;
28
26
  details: Set<symbol>;
29
- }, ActionType.Equip, Record<"getMagicalEquipTypes", () => Set<MagicalPropertyType>> & Record<"getMagicalPropertyLabels", () => Map<MagicalPropertyType, UiTranslation>> & Record<"isMagicalPropertyPercentage", (property: MagicalPropertyType) => boolean> & Record<"isMagicalPropertyPercentagePremultiplied", (property: MagicalPropertyType) => boolean> & Record<"getAttack", () => import("@wayward/game/game/inspection/InfoProvider").SimpleInfoProvider | undefined> & Record<"getDefense", () => import("../../../../../language/impl/TranslationImpl").default[]> & Record<"formatInsulation", (insulation?: IInsulationResult | undefined, type?: TempType | undefined) => import("../../../../../language/impl/TranslationImpl").default> & Record<"getInsulation", () => (import("../../../../../language/impl/TranslationImpl").default | undefined)[]> & Record<"getMagicEffect", (magic: MagicalPropertyEntry) => import("../../../../../language/impl/TranslationImpl").default> & Record<"getMagic", () => import("../../../../../language/impl/TranslationImpl").default[]>, Item>;
27
+ }, ActionType.Equip, Record<"getMagicalEquipTypes", () => Set<MagicalPropertyType>> & Record<"getMagicalPropertyLabels", () => Map<MagicalPropertyType, UiTranslation>> & Record<"isMagicalPropertyPercentage", (property: MagicalPropertyType) => boolean> & Record<"isMagicalPropertyPercentagePremultiplied", (property: MagicalPropertyType) => boolean> & Record<"getAttack", () => import("@wayward/game/game/inspection/InfoProvider").SimpleInfoProvider | undefined> & Record<"getDefense", () => import("../../../../../language/impl/TranslationImpl").default[]> & Record<"getInsulation", () => (import("../../../../../language/impl/TranslationImpl").default | undefined)[]> & Record<"getMagicEffect", (magic: MagicalPropertyEntry) => import("../../../../../language/impl/TranslationImpl").default> & Record<"getMagic", () => import("../../../../../language/impl/TranslationImpl").default[]>, Item>;
30
28
  export default _default;
@@ -0,0 +1,26 @@
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
+ import { ActionType } from "@wayward/game/game/entity/action/IAction";
12
+ import UseInfo from "@wayward/game/game/inspection/infoProviders/UseInfo";
13
+ import type Item from "@wayward/game/game/item/Item";
14
+ declare const _default: UseInfo<{
15
+ coldInsulation: import("@wayward/game/game/temperature/ITemperature").IInsulationResult | undefined;
16
+ heatInsulation: import("@wayward/game/game/temperature/ITemperature").IInsulationResult | undefined;
17
+ entityType: import("../../../../entity/IEntity").EntityType.Item;
18
+ value?: Item | undefined;
19
+ type: import("../../../../item/IItem").ItemType;
20
+ description: Readonly<import("../../../../item/IItem").IItemDescription>;
21
+ quality: import("../../../../IObject").Quality;
22
+ action: ActionType.Sleep;
23
+ union: import("@wayward/game/game/inspection/infoProviders/UseInfo").IUseInfoBase<Item, ActionType.Sleep>;
24
+ details: Set<symbol>;
25
+ }, ActionType.Sleep, {}, Item>;
26
+ export default _default;
@@ -16,6 +16,7 @@ import { Milestone, MilestoneVisibility } from "@wayward/game/game/milestones/IM
16
16
  import type MilestoneDefinition from "@wayward/game/game/milestones/MilestoneDefinition";
17
17
  import EventEmitter from "@wayward/utilities/event/EventEmitter";
18
18
  export interface IMilestoneEvents {
19
+ globalDiscoveryChange(bypassed: boolean): void;
19
20
  /**
20
21
  * @param milestone The milestone that is being updated
21
22
  * @param value The new value for this milestone
@@ -51,6 +52,8 @@ export declare class MilestoneManager extends EventEmitter.Host<IMilestoneEvents
51
52
  areUnlockableInMode(mode?: import("../options/IGameOptions").GameMode): boolean;
52
53
  isUnlockableInMode(milestone: Milestone, mode?: import("../options/IGameOptions").GameMode): boolean;
53
54
  reset(milestone?: Milestone): void;
55
+ isDiscoveryBypassed(): boolean;
56
+ setDiscoveryBypassed(bypassed: boolean): void;
54
57
  getDiscovered(milestone: Milestone): Array<string | number> | undefined;
55
58
  getDiscoveredResistsAndVulns(): Map<CreatureType, Set<DamageType>>;
56
59
  getDiscoveredResistsAndVulns(creatureType: CreatureType): Set<DamageType>;
@@ -108,6 +108,7 @@ export interface IInsulationResult {
108
108
  }
109
109
  export declare namespace Insulation {
110
110
  function get(entity: Entity | undefined, insulation: IInsulationDescription | undefined, type: TempType): IInsulationResult | undefined;
111
+ const translate: (value: Entity<unknown, number, import("../reference/IReferenceManager").EntityReferenceTypes, unknown> | undefined, insulation: IInsulationResult | undefined, type?: TempType | undefined) => import("../../language/impl/TranslationImpl").default | undefined;
111
112
  function equals(a: IInsulationResult | undefined, b: IInsulationResult | undefined): boolean;
112
113
  function getTypesOrderedByRelevance(island: Island): TempType[];
113
114
  }