@wayward/types 2.15.4-beta.dev.20260410.1 → 2.15.4-beta.dev.20260412.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.
@@ -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
  */
@@ -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
  /**
@@ -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;
@@ -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;
@@ -0,0 +1,24 @@
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
+ interface IChanceRandom {
12
+ chance(decimal: number): boolean;
13
+ }
14
+ /**
15
+ * Normalizes endurance durability-loss chances into the effective per-event proc chance.
16
+ * Cursed endurance uses the same magnitude as uncursed endurance, but applies an extra loss proc instead of preventing one.
17
+ */
18
+ export declare function getEffectiveDurabilityLossChance(durabilityLossChance?: number): number;
19
+ /**
20
+ * Returns the number of durability-loss procs for a single endurance check.
21
+ * Uncursed endurance can prevent the event entirely, while cursed endurance can add at most one extra proc.
22
+ */
23
+ export declare function getDurabilityLossProcCount(random: IChanceRandom, durabilityLossChance?: number): number;
24
+ export {};
@@ -0,0 +1,13 @@
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 { Random } from "@wayward/utilities/random/Random";
12
+ export declare function getEffectiveDecayLossChance(decayLossChance?: number): number;
13
+ export declare function adjustDecayLossByPerpetuity(random: Random, baseDecayLoss: number, decayLossChance?: number): number;
@@ -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
  }
@@ -213,7 +213,10 @@ declare namespace Translation {
213
213
  private translateComponent;
214
214
  private translateComponentValue;
215
215
  private resolveComponentValue;
216
- private getHighestValueComponent;
216
+ private getHighestMagnitudeComponent;
217
+ private getCombinedColorCandidateComponents;
218
+ private getQualitySourceValue;
219
+ private getHighestPriorityColorComponent;
217
220
  private getCombinedComponent;
218
221
  combined(value?: FVal, reformatter?: SupplierOr<Translation | undefined>): this;
219
222
  base(value: FVal, reformatter?: SupplierOr<Translation | undefined>): this;