@wayward/types 2.15.4-beta.dev.20260406.1 → 2.15.4-beta.dev.20260408.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 (52) hide show
  1. package/definitions/game/game/curse/event/CurseEventSuffusedWithMagic.d.ts +13 -0
  2. package/definitions/game/game/doodad/Doodad.d.ts +18 -1
  3. package/definitions/game/game/doodad/DoodadManager.d.ts +6 -1
  4. package/definitions/game/game/doodad/DoodadUtilities.d.ts +7 -2
  5. package/definitions/game/game/doodad/IDoodad.d.ts +1 -0
  6. package/definitions/game/game/doodad/IScarecrows.d.ts +12 -0
  7. package/definitions/game/game/entity/Human.d.ts +5 -0
  8. package/definitions/game/game/entity/action/actions/SetTitle.d.ts +1 -1
  9. package/definitions/game/game/entity/creature/CreatureManager.d.ts +3 -0
  10. package/definitions/game/game/inspection/infoProviders/Uses.d.ts +1 -0
  11. package/definitions/game/game/inspection/infoProviders/doodad/DoodadLightSource.d.ts +19 -0
  12. package/definitions/game/game/inspection/infoProviders/doodad/DoodadUses.d.ts +5 -5
  13. package/definitions/game/game/inspection/infoProviders/doodad/use/DoodadAttachContainerInfo.d.ts +15 -0
  14. package/definitions/game/game/inspection/infoProviders/doodad/use/DoodadDisplayItemsInfo.d.ts +15 -0
  15. package/definitions/game/game/inspection/infoProviders/doodad/use/DoodadGatherInfo.d.ts +15 -0
  16. package/definitions/game/game/inspection/infoProviders/doodad/use/DoodadHitchInfo.d.ts +15 -0
  17. package/definitions/game/game/inspection/infoProviders/doodad/use/DoodadLockpickInfo.d.ts +15 -0
  18. package/definitions/game/game/inspection/infoProviders/doodad/use/DoodadPourInfo.d.ts +15 -0
  19. package/definitions/game/game/inspection/infoProviders/doodad/use/DoodadTestDepthInfo.d.ts +15 -0
  20. package/definitions/game/game/inspection/infoProviders/item/ItemUses.d.ts +1 -0
  21. package/definitions/game/game/inspection/infoProviders/item/use/ItemBuildInfo.d.ts +2 -2
  22. package/definitions/game/game/inspection/infoProviders/item/use/ItemCraftingIngredientInfo.d.ts +2 -2
  23. package/definitions/game/game/inspection/infoProviders/shared/SharedLightSourceInfo.d.ts +7 -23
  24. package/definitions/game/game/inspection/infoProviders/shared/SharedLitAndEquipmentUseInfo.d.ts +38 -0
  25. package/definitions/game/game/inspection/infoProviders/shared/SharedRequirementInfo.d.ts +28 -0
  26. package/definitions/game/game/inspection/infoProviders/shared/SharedScareRadiusInfo.d.ts +19 -0
  27. package/definitions/game/game/inspection/inspections/DoodadInspection.d.ts +1 -0
  28. package/definitions/game/game/inspection/inspections/ItemInspection.d.ts +1 -0
  29. package/definitions/game/game/item/IItem.d.ts +2 -0
  30. package/definitions/game/game/item/Item.d.ts +39 -9
  31. package/definitions/game/game/item/ItemManager.d.ts +5 -0
  32. package/definitions/game/game/magic/IMagicalProperty.d.ts +3 -0
  33. package/definitions/game/game/milestones/IMilestone.d.ts +3 -1
  34. package/definitions/game/game/options/IGameOptions.d.ts +10 -0
  35. package/definitions/game/game/options/modifiers/milestone/MilestoneModifiersManager.d.ts +4 -0
  36. package/definitions/game/game/options/modifiers/milestone/modifiers/Defiled.d.ts +17 -0
  37. package/definitions/game/game/options/modifiers/milestone/modifiers/Warded.d.ts +17 -0
  38. package/definitions/game/game/tile/TileEventManager.d.ts +1 -0
  39. package/definitions/game/language/Dictionary.d.ts +112 -110
  40. package/definitions/game/language/DictionaryMap.d.ts +224 -220
  41. package/definitions/game/language/dictionary/Message.d.ts +696 -692
  42. package/definitions/game/language/dictionary/UiTranslation.d.ts +806 -801
  43. package/definitions/game/language/english/item/CursePropertyAffixes.d.ts +13 -0
  44. package/definitions/game/language/english/item/CurseSubPropertyAffixes.d.ts +13 -0
  45. package/definitions/game/save/SaveMetadata.d.ts +2 -4
  46. package/definitions/game/save/data/SaveData.d.ts +6 -4
  47. package/definitions/game/ui/screen/screens/game/component/container/ContainerBucketItemList.d.ts +7 -0
  48. package/definitions/test/suite/unitTests/game/ContainerBucketItemList.spec.d.ts +13 -0
  49. package/definitions/test/suite/unitTests/game/SaveLoad.spec.d.ts +13 -0
  50. package/definitions/utilities/random/SeededGenerator.d.ts +1 -0
  51. package/definitions/utilities/string/TextFileFormatting.d.ts +8 -0
  52. package/package.json +1 -1
@@ -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 { CurseEvent } from "@wayward/game/game/curse/CurseEvent";
12
+ declare const _default: CurseEvent;
13
+ export default _default;
@@ -32,7 +32,9 @@ import type { ContainerSort, DisplayableItemType, IContainer, IItemVehicle, ILiq
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";
35
+ import type { IMagicalPropertyManagerEvents } from "@wayward/game/game/magic/MagicalPropertyManager";
35
36
  import MagicalPropertyManager from "@wayward/game/game/magic/MagicalPropertyManager";
37
+ import MagicalPropertyType from "@wayward/game/game/magic/MagicalPropertyType";
36
38
  import type { Reference, ReferenceType } from "@wayward/game/game/reference/IReferenceManager";
37
39
  import type { IHasInsulation, IInsulationResult, TempType } from "@wayward/game/game/temperature/ITemperature";
38
40
  import type Tile from "@wayward/game/game/tile/Tile";
@@ -45,7 +47,10 @@ import type { IUnserializedCallback } from "@wayward/game/save/serializer/ISeria
45
47
  import type { IVector3 } from "@wayward/game/utilities/math/IVector";
46
48
  import type { IRGB } from "@wayward/utilities/Color";
47
49
  import type { IEventEmitter } from "@wayward/utilities/event/EventEmitter";
48
- export interface IDoodadEvents extends IEntityMovableEvents, IQualityEvents {
50
+ type DoodadMagicEvents = {
51
+ [EVENT in keyof IMagicalPropertyManagerEvents as `magic${Capitalize<EVENT>}`]: IMagicalPropertyManagerEvents[EVENT];
52
+ };
53
+ export interface IDoodadEvents extends IEntityMovableEvents, IQualityEvents, DoodadMagicEvents {
49
54
  /**
50
55
  * Called when an doodad is being updated
51
56
  * @param tile The tile the doodad is on
@@ -112,6 +117,7 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
112
117
  hitchedCreature?: number;
113
118
  magic?: MagicalPropertyManager;
114
119
  meltDecay?: number;
120
+ note?: string;
115
121
  orientation?: DoorOrientation;
116
122
  quality?: Quality;
117
123
  sort?: ContainerSort;
@@ -158,6 +164,7 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
158
164
  isContainer(): this is IUncastableContainer;
159
165
  toString(): string;
160
166
  getRegistrarId(): number;
167
+ get litDescription(): IDoodadDescription | undefined;
161
168
  /**
162
169
  * Entity controlling this doodad (for wheel barrows)
163
170
  */
@@ -195,6 +202,8 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
195
202
  canPickUp(human: Human): boolean;
196
203
  getPickUpTypes(): ItemType[] | undefined;
197
204
  getAssociatedItem(): ItemType | ItemTypeExtra;
205
+ static getAvailableActions(type: DoodadType, description: IDoodadDescription): ActionType[];
206
+ private static canCraft;
198
207
  getActions(): ActionType[] | undefined;
199
208
  /**
200
209
  * Can the doodad be gathered from in its current form?
@@ -231,6 +240,10 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
231
240
  */
232
241
  getBuilder(): Player | undefined;
233
242
  removeMagic(): void;
243
+ private pipingMagic;
244
+ protected pipeMagicalPropertyManagerEvents(magic: MagicalPropertyManager): void;
245
+ protected onMagicSet(type: MagicalPropertyType, _subType?: number, value?: number, previousValue?: number, curse?: true): void;
246
+ protected onMagicRemove(type: MagicalPropertyType): void;
234
247
  unhitch(): void;
235
248
  damage(forceBreak?: boolean, skipDropAsItem?: boolean, skipSound?: boolean, skipResources?: boolean, damage?: number): void;
236
249
  getDefaultDurability(random?: import("@wayward/utilities/random/Random").Random<import("@wayward/utilities/random/generators/LegacySeededGenerator").LegacySeededGenerator | import("@wayward/utilities/random/generators/PCGSeededGenerator").PCGSeededGenerator>): number;
@@ -408,6 +421,9 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
408
421
  */
409
422
  stokeFire(stokeValue: number, human?: Human): boolean;
410
423
  getDecayAtStartWithMagical(): number;
424
+ protected clampDecayToMax(type: MagicalPropertyType): void;
425
+ protected clampDurabilityToMax(type: MagicalPropertyType): void;
426
+ protected updateDurabilityForPersistence(type: MagicalPropertyType, value?: number, previousValue?: number, curse?: true): void;
411
427
  canCauseDamage(): boolean;
412
428
  /**
413
429
  * Decay over time
@@ -424,3 +440,4 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
424
440
  private postProcessDecay;
425
441
  private randomAshSpawn;
426
442
  }
443
+ export {};
@@ -62,7 +62,8 @@ export default class DoodadManager extends EntityManager<Doodad> {
62
62
  loadEntity(doodad: Doodad): void;
63
63
  isGroup(doodadType: DoodadType | DoodadTypeGroup): doodadType is DoodadTypeGroup;
64
64
  isInGroup(doodadType: DoodadType, doodadGroup: DoodadTypeGroup | DoodadType): boolean;
65
- getGroups(doodad: DoodadType): DoodadTypeGroup[];
65
+ getGroups(doodad?: DoodadType): DoodadTypeGroup[];
66
+ getVisibleGroups(doodad: Doodad): DoodadTypeGroup[];
66
67
  /**
67
68
  * Checks if a number is a DoodadType or DoodadTypeExtra.
68
69
  * @param type a number (DoodadType/DoodadTypeExtra enum).
@@ -86,8 +87,12 @@ export default class DoodadManager extends EntityManager<Doodad> {
86
87
  */
87
88
  updateAllAsync(ticks: number, playingHumans: Human[], playerHumanTiles: Set<Tile>, onProgress: (progess: number) => Promise<void>): Promise<void>;
88
89
  verifyAndFixItemWeights(): void;
90
+ /**
91
+ * Gets the nearest affective scarecrow in the given group, or, if no group is provided, gets the nearest scarecrow that isn't in a specialized group
92
+ */
89
93
  getScarecrowInRange(tile: Tile, group?: DoodadTypeGroup): Doodad | undefined;
90
94
  getScarecrowInLineOfSight(creature: Creature, isClientside: boolean): Doodad | undefined;
95
+ getCursedScarecrowSpawnChance(tile: Tile, curseEvent?: boolean): number;
91
96
  addScarecrow(doodad: Doodad): void;
92
97
  removeScarecrow(doodad: Doodad): void;
93
98
  /**
@@ -9,7 +9,7 @@
9
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
11
  import type Doodad from "@wayward/game/game/doodad/Doodad";
12
- import type { DoodadType, IScareRadius } from "@wayward/game/game/doodad/IDoodad";
12
+ import type { DoodadType, IDoodadDescription, IScareRadius } from "@wayward/game/game/doodad/IDoodad";
13
13
  import { GrowingStage } from "@wayward/game/game/doodad/IDoodad";
14
14
  import type Human from "@wayward/game/game/entity/Human";
15
15
  import type Item from "@wayward/game/game/item/Item";
@@ -21,7 +21,12 @@ declare namespace DoodadUtilities {
21
21
  export function wouldWalkingOnDealNormalDamage(doodad: DoodadIn, human?: Human): boolean;
22
22
  export function isDangerous(doodad: DoodadIn, human?: Human): boolean;
23
23
  export function canCauseStatus(doodad: DoodadIn): boolean;
24
- export function getScareRadius(doodad: Doodad | Item): IScareRadius;
24
+ export function getScareRadius(doodad: Doodad | Item, description?: IDoodadDescription | undefined): IScareRadius | undefined;
25
+ export function getCursedScarecrowSpawnBonus(doodad: Doodad | Item): {
26
+ radius: number;
27
+ naturalSpawnChance: number;
28
+ curseEventSpawnChance: number;
29
+ } | undefined;
25
30
  export {};
26
31
  }
27
32
  export default DoodadUtilities;
@@ -619,4 +619,5 @@ export interface IDoodadGetNameOptions {
619
619
  */
620
620
  ignoreDiscovery: boolean;
621
621
  }
622
+ export declare const DOODAD_GROUP_HIDE_CONDITIONS: Array<(doodad: Doodad, group: DoodadTypeGroup) => boolean>;
622
623
  export {};
@@ -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
+ import { DoodadTypeGroup } from "@wayward/game/game/doodad/IDoodad";
12
+ export declare const SPECIALIZED_SCARECROW_GROUPS: DoodadTypeGroup[];
@@ -75,6 +75,10 @@ interface IEquip {
75
75
  item: Item;
76
76
  equipType: EquipType;
77
77
  }
78
+ interface IThrowDamageBreakdown extends IAttack {
79
+ baseDamage: number;
80
+ magicalBonus: number;
81
+ }
78
82
  export default abstract class Human<DescriptionType = unknown, TypeType extends number = number, EntityReferenceType extends ReferenceType.Player | ReferenceType.NPC = ReferenceType.Player | ReferenceType.NPC, TagType = unknown> extends EntityWithStats<DescriptionType, TypeType, EntityReferenceType, TagType> implements IHasInsulation, IContainer {
79
83
  static getNameTranslation(): TranslationImpl;
80
84
  event: IEventEmitter<this, IHumanEvents>;
@@ -242,6 +246,7 @@ export default abstract class Human<DescriptionType = unknown, TypeType extends
242
246
  */
243
247
  damageRandomEquipment(amount?: number): void;
244
248
  getDamageModifier(): number;
249
+ getThrowDamageBreakdown(weapon?: Item): IThrowDamageBreakdown;
245
250
  calculateDamageAmount(attackType: AttackType, weapon?: Item, ammoItem?: Item): number;
246
251
  isDualWielding(): boolean;
247
252
  getAttack(attack?: AttackType, weapon?: Item, offHandWeapon?: Item): IAttack;
@@ -16,5 +16,5 @@ export declare enum TitleType {
16
16
  Milestone = 0,
17
17
  Skill = 1
18
18
  }
19
- declare const _default: Action<[[ActionArgument.Undefined, import("../argument/ActionArgumentEnum").default<TitleType, "Skill" | "Milestone">], [arg1: ActionArgument.Undefined, import("../argument/ActionArgumentEnum").default<Milestone, "Abnormalizer" | "Chef" | "Exterminator" | "Crafter" | "Gardener" | "Gatherer" | "Hunter" | "Locksmith" | "ReaperOfSouls" | "Survivor" | "Pitcher" | "Trapsetter" | "TreasureHunter" | "Collector" | "Explorer" | "Grandmaster" | "Prepared" | "Doctor" | "Artificer" | "Returned" | "Navigator" | "DragonSlayer" | "Treasurer" | "Pulchritudinous" | "Friendly" | "Malevolent" | "Benevolent" | "Boundless" | "Talented" | "Weathered" | "Seasoned" | "Pacifier" | "Merchant" | "Notekeeper" | "Operator" | "Huntsman" | "Contender" | "Challenger" | "DestroyerOfMagi" | "Helmsman" | "Multitasker" | "Apocryphal" | "Diverse" | "InternalDiscoveredBoats" | "Traitor" | "MasterOfAll" | "Rouseabout" | "Murderer" | "Retailer" | "Masochist" | "Versatile" | "InternalStatDiscovery" | "Dedicated" | "Hounded" | "Serene" | "InternalRuneOrAltarDiscovery" | "Curator" | "Thaumaturgic" | "Runekeeper" | "InternalDeityDiscovery" | "InternalMerchantsDiscovery" | "InternalCurseSystemDiscovery" | "Invoker" | "InternalDeityInvoked" | "InternalInsulationDiscovery" | "Turbulent" | "Statistician" | "Afflicted" | "Exsanguinated" | "InternalItemDiscovered" | "Cursed" | "Cursebreaker" | "Oblivious">, import("../argument/ActionArgumentEnum").default<SkillType, "None" | "Chemistry" | "Anatomy" | "Marksmanship" | "Blacksmithing" | "Botany" | "Camping" | "Cartography" | "Claythrowing" | "Cooking" | "Fishing" | "Fletching" | "Glassblowing" | "Leatherworking" | "Lockpicking" | "Lumberjacking" | "Mining" | "Mycology" | "Parrying" | "Stonecrafting" | "Swimming" | "Tactics" | "Tailoring" | "Throwing" | "Tinkering" | "Trapping" | "Woodworking" | "Taming" | "Horticulture" | "Bartering" | "Seafaring" | "Thaumaturgy" | "DualWielding" | "Theurgy">]], ActionType.SetTitle, import("../../player/Player").default, void, import("@wayward/game/game/entity/action/IAction").IActionUsable, [(TitleType | undefined)?, (SkillType | Milestone | undefined)?]>;
19
+ declare const _default: Action<[[ActionArgument.Undefined, import("../argument/ActionArgumentEnum").default<TitleType, "Skill" | "Milestone">], [arg1: ActionArgument.Undefined, import("../argument/ActionArgumentEnum").default<Milestone, "Abnormalizer" | "Chef" | "Exterminator" | "Crafter" | "Gardener" | "Gatherer" | "Hunter" | "Locksmith" | "ReaperOfSouls" | "Survivor" | "Pitcher" | "Trapsetter" | "TreasureHunter" | "Collector" | "Explorer" | "Grandmaster" | "Prepared" | "Doctor" | "Artificer" | "Returned" | "Navigator" | "DragonSlayer" | "Treasurer" | "Pulchritudinous" | "Friendly" | "Malevolent" | "Benevolent" | "Boundless" | "Talented" | "Weathered" | "Seasoned" | "Pacifier" | "Merchant" | "Notekeeper" | "Operator" | "Huntsman" | "Contender" | "Challenger" | "DestroyerOfMagi" | "Helmsman" | "Multitasker" | "Apocryphal" | "Diverse" | "InternalDiscoveredBoats" | "Traitor" | "MasterOfAll" | "Rouseabout" | "Murderer" | "Retailer" | "Masochist" | "Versatile" | "InternalStatDiscovery" | "Dedicated" | "Hounded" | "Serene" | "InternalRuneOrAltarDiscovery" | "Curator" | "Thaumaturgic" | "Runekeeper" | "InternalDeityDiscovery" | "InternalMerchantsDiscovery" | "InternalCurseSystemDiscovery" | "Invoker" | "InternalDeityInvoked" | "InternalInsulationDiscovery" | "Turbulent" | "Statistician" | "Afflicted" | "Exsanguinated" | "InternalItemDiscovered" | "Cursed" | "Cursebreaker" | "Oblivious" | "Warded" | "Defiled">, import("../argument/ActionArgumentEnum").default<SkillType, "None" | "Chemistry" | "Anatomy" | "Marksmanship" | "Blacksmithing" | "Botany" | "Camping" | "Cartography" | "Claythrowing" | "Cooking" | "Fishing" | "Fletching" | "Glassblowing" | "Leatherworking" | "Lockpicking" | "Lumberjacking" | "Mining" | "Mycology" | "Parrying" | "Stonecrafting" | "Swimming" | "Tactics" | "Tailoring" | "Throwing" | "Tinkering" | "Trapping" | "Woodworking" | "Taming" | "Horticulture" | "Bartering" | "Seafaring" | "Thaumaturgy" | "DualWielding" | "Theurgy">]], ActionType.SetTitle, import("../../player/Player").default, void, import("@wayward/game/game/entity/action/IAction").IActionUsable, [(TitleType | undefined)?, (SkillType | Milestone | undefined)?]>;
20
20
  export default _default;
@@ -44,12 +44,15 @@ export default class CreatureManager extends EntityManager<Creature, IEntityRemo
44
44
  static getName(creature: Creature | CreatureType, aberrant?: boolean, count?: number, article?: Article): TranslationImpl;
45
45
  getName(creature: Creature | CreatureType, aberrant?: boolean, count?: number, article?: Article): TranslationImpl;
46
46
  calculateHappinessTameTime(human: Human, creature: Creature, bonusTime?: number): number;
47
+ getAberrantOfferRefusalPenalty(offeringBonus?: number): number;
48
+ shouldAberrantOfferFail(human: Human, creature: Creature, tamingSkillDivisor: number, offeringBonus?: number): boolean;
47
49
  /**
48
50
  * Spawns a creature.
49
51
  * @param type The type of creature to spawn.
50
52
  * @param tile The tile
51
53
  */
52
54
  spawn(type: CreatureType, tile: Tile, options: ICreatureSpawnOptions): Creature | undefined;
55
+ spawnAdditionalNearCursedScarecrow(creature: Creature, originTile: Tile, curseEvent?: boolean): Creature[];
53
56
  spawnFromZone(tile: Tile, bypassCreatureLimit?: boolean, checkTerrainType?: boolean): Creature | undefined;
54
57
  getAberrantChance(tile: Tile): number;
55
58
  createFake(type: CreatureType, aberrant: boolean, tile?: Tile, id?: number): Creature;
@@ -44,5 +44,6 @@ export default abstract class Uses<T extends IDescribed> extends InfoProvider {
44
44
  protected getUseDisplayLevel(action: ActionType, context: InfoProviderContext): InfoDisplayLevel;
45
45
  private getDetailsHandlerResolver;
46
46
  protected getUse(description: DescribedDescription<T>, action: ActionType): TranslationImpl;
47
+ protected getActionTier(description: DescribedDescription<T>, action: ActionType): number | undefined;
47
48
  private getUseName;
48
49
  }
@@ -0,0 +1,19 @@
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
+ export default class DoodadLightSource extends InfoProvider {
14
+ private readonly doodad;
15
+ static get(doodad: Doodad): DoodadLightSource | undefined;
16
+ constructor(doodad: Doodad);
17
+ getClass(): string[];
18
+ get(): never[] | import("../LabelledValue").default;
19
+ }
@@ -8,16 +8,16 @@
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 Doodad from "@wayward/game/game/doodad/Doodad";
12
- import type { DoodadType, IDoodadDescription } from "@wayward/game/game/doodad/IDoodad";
13
- import { ActionType } from "@wayward/game/game/entity/action/IAction";
11
+ import Doodad from "@wayward/game/game/doodad/Doodad";
12
+ import { type DoodadType, type IDoodadDescription } from "@wayward/game/game/doodad/IDoodad";
13
+ import type { ActionType } from "@wayward/game/game/entity/action/IAction";
14
14
  import { EntityType } from "@wayward/game/game/entity/IEntity";
15
- import type { IUseInfoBase } from "@wayward/game/game/inspection/infoProviders/UseInfo";
16
15
  import type UseInfo from "@wayward/game/game/inspection/infoProviders/UseInfo";
17
16
  import Uses from "@wayward/game/game/inspection/infoProviders/Uses";
18
17
  export default class DoodadUses extends Uses<Doodad> {
19
18
  protected getEntityType(): EntityType.Doodad;
20
19
  protected getDescription(type: DoodadType): IDoodadDescription | undefined;
21
20
  protected getUses(description: IDoodadDescription): ActionType[];
22
- protected getUseInfoHandlers(): Array<UseInfo<IUseInfoBase<Doodad, ActionType.StartFire | ActionType.Ignite | ActionType.Equip>, ActionType.StartFire | ActionType.Ignite | ActionType.Equip, {}, Doodad>>;
21
+ protected getUseInfoHandlers(): Array<UseInfo<any, any, any, Doodad>>;
22
+ private getDescriptionActions;
23
23
  }
@@ -0,0 +1,15 @@
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 { ActionType } from "@wayward/game/game/entity/action/IAction";
13
+ import UseInfo from "@wayward/game/game/inspection/infoProviders/UseInfo";
14
+ declare const _default: UseInfo<import("@wayward/game/game/inspection/infoProviders/UseInfo").IUseInfoBase<Doodad, ActionType.AttachContainer>, ActionType.AttachContainer, {}, Doodad>;
15
+ export default _default;
@@ -0,0 +1,15 @@
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 { ActionType } from "@wayward/game/game/entity/action/IAction";
13
+ import UseInfo from "@wayward/game/game/inspection/infoProviders/UseInfo";
14
+ declare const _default: UseInfo<import("@wayward/game/game/inspection/infoProviders/UseInfo").IUseInfoBase<Doodad, ActionType.DisplayItem>, ActionType.DisplayItem, {}, Doodad>;
15
+ export default _default;
@@ -0,0 +1,15 @@
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 { ActionType } from "@wayward/game/game/entity/action/IAction";
13
+ import UseInfo from "@wayward/game/game/inspection/infoProviders/UseInfo";
14
+ declare const _default: UseInfo<import("@wayward/game/game/inspection/infoProviders/UseInfo").IUseInfoBase<Doodad, ActionType.Gather>, ActionType.Gather, {}, Doodad>;
15
+ export default _default;
@@ -0,0 +1,15 @@
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 { ActionType } from "@wayward/game/game/entity/action/IAction";
13
+ import UseInfo from "@wayward/game/game/inspection/infoProviders/UseInfo";
14
+ declare const _default: UseInfo<import("@wayward/game/game/inspection/infoProviders/UseInfo").IUseInfoBase<Doodad, ActionType.Hitch>, ActionType.Hitch, {}, Doodad>;
15
+ export default _default;
@@ -0,0 +1,15 @@
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 { ActionType } from "@wayward/game/game/entity/action/IAction";
13
+ import UseInfo from "@wayward/game/game/inspection/infoProviders/UseInfo";
14
+ declare const _default: UseInfo<import("@wayward/game/game/inspection/infoProviders/UseInfo").IUseInfoBase<Doodad, ActionType.Lockpick>, ActionType.Lockpick, {}, Doodad>;
15
+ export default _default;
@@ -0,0 +1,15 @@
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 { ActionType } from "@wayward/game/game/entity/action/IAction";
13
+ import UseInfo from "@wayward/game/game/inspection/infoProviders/UseInfo";
14
+ declare const _default: UseInfo<import("@wayward/game/game/inspection/infoProviders/UseInfo").IUseInfoBase<Doodad, ActionType.Pour>, ActionType.Pour, {}, Doodad>;
15
+ export default _default;
@@ -0,0 +1,15 @@
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 { ActionType } from "@wayward/game/game/entity/action/IAction";
13
+ import UseInfo from "@wayward/game/game/inspection/infoProviders/UseInfo";
14
+ declare const _default: UseInfo<import("@wayward/game/game/inspection/infoProviders/UseInfo").IUseInfoBase<Doodad, ActionType.TestDepth>, ActionType.TestDepth, {}, Doodad>;
15
+ export default _default;
@@ -24,6 +24,7 @@ export default class ItemUses extends Uses<Item> {
24
24
  protected getUseDisplayLevel(action: ActionType, context: InfoProviderContext): InfoDisplayLevel;
25
25
  protected getUseInfoHandlers(): Array<UseInfo<any, any, any, Item>>;
26
26
  protected getUse(description: IItemDescription, action: ActionType): TranslationImpl;
27
+ protected getActionTier(description: Readonly<IItemDescription>, action: ActionType): number | undefined;
27
28
  }
28
29
  export declare class ItemUseContext extends InfoProviderContext {
29
30
  private readonly itemRef?;
@@ -22,8 +22,8 @@ declare const _default: UseInfo<{
22
22
  scareRadius: import("../../../../doodad/IDoodad").IScareRadius | undefined;
23
23
  entityType: import("../../../../entity/IEntity").EntityType.Item;
24
24
  value?: Item | undefined;
25
- type: import("../../../../item/IItem").ItemType;
26
- description: Readonly<import("../../../../item/IItem").IItemDescription>;
25
+ type: import("@wayward/game/game/item/IItem").ItemType;
26
+ description: Readonly<import("@wayward/game/game/item/IItem").IItemDescription>;
27
27
  quality: import("../../../../IObject").Quality;
28
28
  action: ActionType.Build;
29
29
  union: import("@wayward/game/game/inspection/infoProviders/UseInfo").IUseInfoBase<Item, ActionType.Build>;
@@ -14,8 +14,8 @@ import type Item from "@wayward/game/game/item/Item";
14
14
  declare const _default: UseInfo<{
15
15
  entityType: import("../../../../entity/IEntity").EntityType.Item;
16
16
  value?: Item | undefined;
17
- type: import("../../../../item/IItem").ItemType;
18
- description: Readonly<import("../../../../item/IItem").IItemDescription>;
17
+ type: import("@wayward/game/game/item/IItem").ItemType;
18
+ description: Readonly<import("@wayward/game/game/item/IItem").IItemDescription>;
19
19
  quality: import("../../../../IObject").Quality;
20
20
  action: ActionType.CraftingIngredient;
21
21
  union: import("@wayward/game/game/inspection/infoProviders/UseInfo").IUseInfoBase<Item, ActionType.CraftingIngredient>;
@@ -10,28 +10,12 @@
10
10
  */
11
11
  import type Doodad from "@wayward/game/game/doodad/Doodad";
12
12
  import { ActionType } from "@wayward/game/game/entity/action/IAction";
13
- import { EntityType } from "@wayward/game/game/entity/IEntity";
14
- import UseInfo from "@wayward/game/game/inspection/infoProviders/UseInfo";
13
+ import LabelledValue from "@wayward/game/game/inspection/infoProviders/LabelledValue";
14
+ import type { InfoUnion } from "@wayward/game/game/inspection/infoProviders/UseInfo";
15
15
  import type Item from "@wayward/game/game/item/Item";
16
- declare const _default: UseInfo<{
17
- lightSource: number | undefined;
18
- entityType: EntityType.Item;
19
- value?: Item | undefined;
20
- type: import("@wayward/game/game/item/IItem").ItemType;
21
- description: Readonly<import("@wayward/game/game/item/IItem").IItemDescription>;
22
- quality: import("../../../IObject").Quality;
23
- action: ActionType.StartFire | ActionType.Ignite | ActionType.Equip;
24
- union: import("@wayward/game/game/inspection/infoProviders/UseInfo").IUseInfoBase<Item, ActionType.StartFire | ActionType.Ignite | ActionType.Equip>;
25
- details: Set<symbol>;
26
- } | {
16
+ export interface ILightSourceInfoBase {
17
+ value?: Item | Doodad;
27
18
  lightSource: number;
28
- entityType: EntityType.Doodad;
29
- value?: Doodad | undefined;
30
- type: import("../../../doodad/IDoodad").DoodadType;
31
- description: Readonly<import("../../../doodad/IDoodad").IDoodadDescription>;
32
- quality: import("../../../IObject").Quality;
33
- action: ActionType.StartFire | ActionType.Ignite | ActionType.Equip;
34
- union: import("@wayward/game/game/inspection/infoProviders/UseInfo").IUseInfoBase<Doodad, ActionType.StartFire | ActionType.Ignite | ActionType.Equip>;
35
- details: Set<symbol>;
36
- }, ActionType.StartFire | ActionType.Ignite | ActionType.Equip, {}, Doodad | Item>;
37
- export default _default;
19
+ }
20
+ export declare function getLightSource(value: InfoUnion<Item | Doodad, ActionType.StartFire | ActionType.Ignite | ActionType.Equip> | Item | Doodad): number | undefined;
21
+ export default function ({ value, lightSource }: ILightSourceInfoBase): LabelledValue | undefined;
@@ -0,0 +1,38 @@
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 { ActionType } from "@wayward/game/game/entity/action/IAction";
13
+ import UseInfoBase from "@wayward/game/game/inspection/infoProviders/UseInfo";
14
+ import type Item from "@wayward/game/game/item/Item";
15
+ declare const _default: UseInfoBase<{
16
+ scareRadius: import("../../../doodad/IDoodad").IScareRadius | undefined;
17
+ lightSource: number | undefined;
18
+ entityType: import("../../../entity/IEntity").EntityType.Doodad;
19
+ value?: Doodad | undefined;
20
+ type: import("../../../doodad/IDoodad").DoodadType;
21
+ description: Readonly<import("../../../doodad/IDoodad").IDoodadDescription>;
22
+ quality: import("../../../IObject").Quality;
23
+ action: ActionType.StartFire | ActionType.Ignite | ActionType.Equip;
24
+ union: import("@wayward/game/game/inspection/infoProviders/UseInfo").IUseInfoBase<Doodad, ActionType.StartFire | ActionType.Ignite | ActionType.Equip>;
25
+ details: Set<symbol>;
26
+ } | {
27
+ scareRadius: import("../../../doodad/IDoodad").IScareRadius | undefined;
28
+ lightSource: number | undefined;
29
+ entityType: import("../../../entity/IEntity").EntityType.Item;
30
+ value?: Item | undefined;
31
+ type: import("../../../item/IItem").ItemType;
32
+ description: Readonly<import("../../../item/IItem").IItemDescription>;
33
+ quality: import("../../../IObject").Quality;
34
+ action: ActionType.StartFire | ActionType.Ignite | ActionType.Equip;
35
+ union: import("@wayward/game/game/inspection/infoProviders/UseInfo").IUseInfoBase<Item, ActionType.StartFire | ActionType.Ignite | ActionType.Equip>;
36
+ details: Set<symbol>;
37
+ }, ActionType.StartFire | ActionType.Ignite | ActionType.Equip, {}, Doodad | Item>;
38
+ export default _default;
@@ -0,0 +1,28 @@
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 { ActionType } from "@wayward/game/game/entity/action/IAction";
12
+ import LabelledValue from "@wayward/game/game/inspection/infoProviders/LabelledValue";
13
+ import type { ItemType, ItemTypeGroup } from "@wayward/game/game/item/IItem";
14
+ import UiTranslation from "@wayward/game/language/dictionary/UiTranslation";
15
+ import Translation from "@wayward/game/language/Translation";
16
+ export interface IRequirementInfoType {
17
+ item: ItemType;
18
+ itemGroup: ItemTypeGroup;
19
+ actionItem: ActionType;
20
+ other: UiTranslation;
21
+ }
22
+ interface SharedRequirementInfo {
23
+ add<TYPE extends keyof IRequirementInfoType>(type: TYPE, value: IRequirementInfoType[TYPE]): this;
24
+ toTranslation(): Translation;
25
+ toInfoProvider(): LabelledValue;
26
+ }
27
+ declare function SharedRequirementInfo<TYPE extends keyof IRequirementInfoType>(type: TYPE, value: IRequirementInfoType[TYPE]): SharedRequirementInfo;
28
+ export default SharedRequirementInfo;
@@ -0,0 +1,19 @@
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 type { IScareRadius } from "@wayward/game/game/doodad/IDoodad";
13
+ import LabelledValue from "@wayward/game/game/inspection/infoProviders/LabelledValue";
14
+ import type Item from "@wayward/game/game/item/Item";
15
+ export interface IScareRadiusInfoBase {
16
+ value?: Item | Doodad;
17
+ scareRadius: IScareRadius;
18
+ }
19
+ export default function ({ value, scareRadius }: IScareRadiusInfoBase): LabelledValue | undefined;
@@ -30,5 +30,6 @@ export default class DoodadInspection extends Inspection<Doodad> {
30
30
  onUpdateTile(_: any, tile: Tile): void;
31
31
  protected onRemove(_: any, doodad: Doodad): void;
32
32
  private getDescription;
33
+ private getNoteDescription;
33
34
  private getTier;
34
35
  }
@@ -46,6 +46,7 @@ export default class ItemInspection extends Inspection<ItemType | ItemTypeExtra>
46
46
  protected onTickEnd(): void;
47
47
  private updatePosition;
48
48
  private getDescription;
49
+ private getNoteDescription;
49
50
  private getCapacity;
50
51
  private getDoodadUses;
51
52
  private getMapIsland;
@@ -1948,4 +1948,6 @@ export declare enum ItemMovementResultFlag {
1948
1948
  MovedAndDamaged = 64,
1949
1949
  RemovedItem = 128
1950
1950
  }
1951
+ export declare const ITEM_GROUP_HIDE_CONDITIONS: Array<(item: Item, group: ItemTypeGroup) => boolean>;
1952
+ export declare function getCraftingAptitudeMultiplier(craftingAptitudeBonus: number | undefined): number;
1951
1953
  export {};