@wayward/types 2.15.4-beta.dev.20260403.1 → 2.15.4-beta.dev.20260407.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 (45) hide show
  1. package/definitions/game/game/curse/Curse.d.ts +9 -0
  2. package/definitions/game/game/curse/CurseEvent.d.ts +5 -0
  3. package/definitions/game/game/curse/event/CurseEventSuffusedWithMagic.d.ts +13 -0
  4. package/definitions/game/game/doodad/Doodad.d.ts +16 -1
  5. package/definitions/game/game/doodad/DoodadManager.d.ts +6 -1
  6. package/definitions/game/game/doodad/DoodadUtilities.d.ts +7 -2
  7. package/definitions/game/game/doodad/IDoodad.d.ts +1 -0
  8. package/definitions/game/game/doodad/IScarecrows.d.ts +12 -0
  9. package/definitions/game/game/entity/Human.d.ts +5 -0
  10. package/definitions/game/game/entity/action/actions/SetTitle.d.ts +1 -1
  11. package/definitions/game/game/entity/creature/CreatureManager.d.ts +3 -0
  12. package/definitions/game/game/inspection/infoProviders/Uses.d.ts +1 -0
  13. package/definitions/game/game/inspection/infoProviders/doodad/DoodadLightSource.d.ts +19 -0
  14. package/definitions/game/game/inspection/infoProviders/item/ItemUses.d.ts +1 -0
  15. package/definitions/game/game/inspection/infoProviders/item/use/ItemBuildInfo.d.ts +2 -2
  16. package/definitions/game/game/inspection/infoProviders/item/use/ItemCraftingIngredientInfo.d.ts +2 -2
  17. package/definitions/game/game/inspection/infoProviders/shared/SharedLightSourceInfo.d.ts +7 -23
  18. package/definitions/game/game/inspection/infoProviders/shared/SharedLitAndEquipmentUseInfo.d.ts +38 -0
  19. package/definitions/game/game/inspection/infoProviders/shared/SharedScareRadiusInfo.d.ts +19 -0
  20. package/definitions/game/game/inspection/inspections/DoodadInspection.d.ts +1 -0
  21. package/definitions/game/game/inspection/inspections/ItemInspection.d.ts +1 -0
  22. package/definitions/game/game/item/IItem.d.ts +2 -0
  23. package/definitions/game/game/item/Item.d.ts +39 -9
  24. package/definitions/game/game/item/ItemManager.d.ts +5 -0
  25. package/definitions/game/game/magic/IMagicalProperty.d.ts +3 -0
  26. package/definitions/game/game/milestones/IMilestone.d.ts +3 -1
  27. package/definitions/game/game/options/IGameOptions.d.ts +10 -0
  28. package/definitions/game/game/options/modifiers/milestone/MilestoneModifiersManager.d.ts +4 -0
  29. package/definitions/game/game/options/modifiers/milestone/modifiers/Defiled.d.ts +17 -0
  30. package/definitions/game/game/options/modifiers/milestone/modifiers/Warded.d.ts +17 -0
  31. package/definitions/game/game/tile/TileEventManager.d.ts +1 -0
  32. package/definitions/game/language/Dictionary.d.ts +112 -110
  33. package/definitions/game/language/DictionaryMap.d.ts +224 -220
  34. package/definitions/game/language/dictionary/Message.d.ts +696 -692
  35. package/definitions/game/language/dictionary/UiTranslation.d.ts +804 -801
  36. package/definitions/game/language/english/item/CursePropertyAffixes.d.ts +13 -0
  37. package/definitions/game/language/english/item/CurseSubPropertyAffixes.d.ts +13 -0
  38. package/definitions/game/save/SaveMetadata.d.ts +2 -4
  39. package/definitions/game/save/data/SaveData.d.ts +6 -4
  40. package/definitions/game/ui/screen/screens/game/component/container/ContainerBucketItemList.d.ts +7 -0
  41. package/definitions/test/suite/unitTests/game/ContainerBucketItemList.spec.d.ts +13 -0
  42. package/definitions/test/suite/unitTests/game/Curse.spec.d.ts +13 -0
  43. package/definitions/test/suite/unitTests/game/SaveLoad.spec.d.ts +13 -0
  44. package/definitions/utilities/random/SeededGenerator.d.ts +1 -0
  45. package/package.json +1 -1
@@ -81,7 +81,9 @@ export declare enum Milestone {
81
81
  InternalItemDiscovered = 69,
82
82
  Cursed = 70,
83
83
  Cursebreaker = 71,
84
- Oblivious = 72
84
+ Oblivious = 72,
85
+ Warded = 73,
86
+ Defiled = 74
85
87
  }
86
88
  export type ExcludeInternalMilestones<MILESTONE extends Milestone> = PickValueKeys<typeof Milestone, MILESTONE> extends `Internal${string}` ? never : MILESTONE;
87
89
  export declare enum MilestoneVisibility {
@@ -49,6 +49,12 @@ export interface IGameOptions {
49
49
  */
50
50
  applyTravelingEffects: boolean;
51
51
  };
52
+ doodads: {
53
+ /**
54
+ * A bonus amount added to the scare radius of Curse Ward doodads.
55
+ */
56
+ curseWardScareRadiusBonus: number;
57
+ };
52
58
  creatures: {
53
59
  /**
54
60
  * Whether creatures attack when unprovoked
@@ -512,4 +518,8 @@ export interface IGameOptionsItemMagic {
512
518
  * Disables `bonusChance` and `bonusChanceUsesContextualMultiplier`.
513
519
  */
514
520
  randomizeAsRange: boolean;
521
+ /**
522
+ * The chance that a magical property becomes a curse.
523
+ */
524
+ curseChance: number;
515
525
  }
@@ -28,6 +28,7 @@ import Curator from "@wayward/game/game/options/modifiers/milestone/modifiers/Cu
28
28
  import Cursebreaker from "@wayward/game/game/options/modifiers/milestone/modifiers/Cursebreaker";
29
29
  import Cursed from "@wayward/game/game/options/modifiers/milestone/modifiers/Cursed";
30
30
  import Dedicated from "@wayward/game/game/options/modifiers/milestone/modifiers/Dedicated";
31
+ import Defiled from "@wayward/game/game/options/modifiers/milestone/modifiers/Defiled";
31
32
  import DestroyerOfMagi from "@wayward/game/game/options/modifiers/milestone/modifiers/DestroyerOfMagi";
32
33
  import Diverse from "@wayward/game/game/options/modifiers/milestone/modifiers/Diverse";
33
34
  import Doctor from "@wayward/game/game/options/modifiers/milestone/modifiers/Doctor";
@@ -76,6 +77,7 @@ import TreasureHunter from "@wayward/game/game/options/modifiers/milestone/modif
76
77
  import Treasurer from "@wayward/game/game/options/modifiers/milestone/modifiers/Treasurer";
77
78
  import Turbulent from "@wayward/game/game/options/modifiers/milestone/modifiers/Turbulent";
78
79
  import Versatile from "@wayward/game/game/options/modifiers/milestone/modifiers/Versatile";
80
+ import Warded from "@wayward/game/game/options/modifiers/milestone/modifiers/Warded";
79
81
  import Weathered from "@wayward/game/game/options/modifiers/milestone/modifiers/Weathered";
80
82
  import Translation from "@wayward/game/language/Translation";
81
83
  export declare const milestoneModifiers: {
@@ -143,6 +145,8 @@ export declare const milestoneModifiers: {
143
145
  65: typeof Turbulent;
144
146
  50: typeof Versatile;
145
147
  29: typeof Weathered;
148
+ 73: typeof Warded;
149
+ 74: typeof Defiled;
146
150
  };
147
151
  declare class MilestoneModifiersManager extends GameplayModifiersManager<MilestoneModifier, Milestone, [Human?]> {
148
152
  constructor();
@@ -0,0 +1,17 @@
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 { IGameOptionsPartial } from "@wayward/game/game/options/IGameOptions";
12
+ import { MilestoneModifierGroup } from "@wayward/game/game/options/modifiers/milestone/IMilestoneModifier";
13
+ import MilestoneModifier from "@wayward/game/game/options/modifiers/milestone/MilestoneModifier";
14
+ export default class Defiled extends MilestoneModifier {
15
+ getOptions(): IGameOptionsPartial;
16
+ getGroup(): MilestoneModifierGroup;
17
+ }
@@ -0,0 +1,17 @@
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 { IGameOptionsPartial } from "@wayward/game/game/options/IGameOptions";
12
+ import { MilestoneModifierGroup } from "@wayward/game/game/options/modifiers/milestone/IMilestoneModifier";
13
+ import MilestoneModifier from "@wayward/game/game/options/modifiers/milestone/MilestoneModifier";
14
+ export default class Warded extends MilestoneModifier {
15
+ getOptions(): IGameOptionsPartial;
16
+ getGroup(): MilestoneModifierGroup;
17
+ }
@@ -38,6 +38,7 @@ export default class TileEventManager extends EntityManager<TileEvent> {
38
38
  createFake(type: TileEventType, tile: Tile, id?: number): TileEvent | undefined;
39
39
  protected onRemove(tileEvent: TileEvent): boolean;
40
40
  getFromTile(tile: Tile, type: TileEventType): TileEvent | undefined;
41
+ removeIfExpired(tileEvent: TileEvent): boolean;
41
42
  /**
42
43
  * Gets an array of tile events that have the water property at a given tile.
43
44
  * @param tile Tile that you want to look at.
@@ -35,115 +35,117 @@ declare enum Dictionary {
35
35
  CurseComponent = 23,
36
36
  CurseEvent = 24,
37
37
  CurseEventGroup = 25,
38
- CustomModifier = 26,
39
- DamageType = 27,
40
- Deity = 28,
41
- DeitySymbol = 29,
42
- Dialog = 30,
43
- Direction = 31,
44
- DisplayLevel = 32,
45
- DoctorCure = 33,
46
- DoctorMethod = 34,
47
- Doodad = 35,
48
- DoodadExtra = 36,
49
- DoodadGroup = 37,
50
- DrawnMapTheme = 38,
51
- DurabilityLevel = 39,
52
- EquipEffect = 40,
53
- EquipSlot = 41,
54
- ExhaustionLevel = 42,
55
- FireStage = 43,
56
- FontStyle = 44,
57
- GameEndMessage = 45,
58
- GameMode = 46,
59
- GameOptionsIcon = 47,
60
- Growth = 48,
61
- GrowthFungus = 49,
62
- Health = 50,
63
- HealthAccuracy = 51,
64
- HelpArticle = 52,
65
- HighscoreSort = 53,
66
- HumanName = 54,
67
- HungerLevel = 55,
68
- Input = 56,
69
- InspectType = 57,
70
- InterruptChoice = 58,
71
- IslandModifier = 59,
72
- IslandName = 60,
73
- IslandNameBiomeDescriptor = 61,
74
- IslandNameBiomeNoun = 62,
75
- IslandNameModifierDescriptor = 63,
76
- IslandNameOverrunWithCreatureDescriptor = 64,
77
- Item = 65,
78
- ItemAffixPostReformat = 66,
79
- ItemAffixPreReformat = 67,
80
- ItemExtra = 68,
81
- ItemGroup = 69,
82
- JoinServerRetryReason = 70,
83
- Label = 71,
84
- Level = 72,
85
- LighthouseName = 73,
86
- Loading = 74,
87
- Macro = 75,
88
- MagicalPropertyAffix = 76,
89
- MagicalPropertyType = 77,
90
- MagicalSubPropertyAffix = 78,
91
- MapQuality = 79,
92
- MenuBarButton = 80,
93
- Message = 81,
94
- MessagesDefaultFilter = 82,
95
- MessagesTimestampMode = 83,
96
- Milestone = 84,
97
- MilestoneModifierGroup = 85,
98
- MilestoneSort = 86,
99
- Misc = 87,
100
- ModLoadError = 88,
101
- ModLoadFailureReason = 89,
102
- ModProvide = 90,
103
- ModSort = 91,
104
- ModType = 92,
105
- MultiplayerCompatibility = 93,
106
- MultiplayerDisconnectReason = 94,
107
- MusicPlaylist = 95,
108
- Note = 96,
109
- Npc = 97,
110
- Number = 98,
111
- PartOfDay = 99,
112
- Prompt = 100,
113
- QuadrantComponent = 101,
114
- QuadrantComponentContextMenuAction = 102,
115
- Quality = 103,
116
- Quest = 104,
117
- QuestRequirement = 105,
118
- RecipeLevel = 106,
119
- Region = 107,
120
- Riddle = 108,
121
- RunekeeperDomain = 109,
122
- RunekeeperDomainEvent = 110,
123
- SaveImportErrorReason = 111,
124
- SaveSlotSort = 112,
125
- Skill = 113,
126
- SkillsSort = 114,
127
- Source = 115,
128
- Stat = 116,
129
- Status = 117,
130
- StatusEffect = 118,
131
- StatusThreatLevel = 119,
132
- SteamInputKeyboardPosition = 120,
133
- TeamMemberResponsibility = 121,
134
- TemperatureType = 122,
135
- Term = 123,
136
- Terrain = 124,
137
- ThirstLevel = 125,
138
- TileEvent = 126,
139
- TooltipVisibilityOption = 127,
140
- Ui = 128,
141
- UiQuadrant = 129,
142
- UnableToJoinReason = 130,
143
- UnlockedRecipesStrategy = 131,
144
- UsableActionType = 132,
145
- Website = 133,
146
- WeightStatus = 134,
147
- WorldLayer = 135
38
+ CursePropertyAffix = 26,
39
+ CurseSubPropertyAffix = 27,
40
+ CustomModifier = 28,
41
+ DamageType = 29,
42
+ Deity = 30,
43
+ DeitySymbol = 31,
44
+ Dialog = 32,
45
+ Direction = 33,
46
+ DisplayLevel = 34,
47
+ DoctorCure = 35,
48
+ DoctorMethod = 36,
49
+ Doodad = 37,
50
+ DoodadExtra = 38,
51
+ DoodadGroup = 39,
52
+ DrawnMapTheme = 40,
53
+ DurabilityLevel = 41,
54
+ EquipEffect = 42,
55
+ EquipSlot = 43,
56
+ ExhaustionLevel = 44,
57
+ FireStage = 45,
58
+ FontStyle = 46,
59
+ GameEndMessage = 47,
60
+ GameMode = 48,
61
+ GameOptionsIcon = 49,
62
+ Growth = 50,
63
+ GrowthFungus = 51,
64
+ Health = 52,
65
+ HealthAccuracy = 53,
66
+ HelpArticle = 54,
67
+ HighscoreSort = 55,
68
+ HumanName = 56,
69
+ HungerLevel = 57,
70
+ Input = 58,
71
+ InspectType = 59,
72
+ InterruptChoice = 60,
73
+ IslandModifier = 61,
74
+ IslandName = 62,
75
+ IslandNameBiomeDescriptor = 63,
76
+ IslandNameBiomeNoun = 64,
77
+ IslandNameModifierDescriptor = 65,
78
+ IslandNameOverrunWithCreatureDescriptor = 66,
79
+ Item = 67,
80
+ ItemAffixPostReformat = 68,
81
+ ItemAffixPreReformat = 69,
82
+ ItemExtra = 70,
83
+ ItemGroup = 71,
84
+ JoinServerRetryReason = 72,
85
+ Label = 73,
86
+ Level = 74,
87
+ LighthouseName = 75,
88
+ Loading = 76,
89
+ Macro = 77,
90
+ MagicalPropertyAffix = 78,
91
+ MagicalPropertyType = 79,
92
+ MagicalSubPropertyAffix = 80,
93
+ MapQuality = 81,
94
+ MenuBarButton = 82,
95
+ Message = 83,
96
+ MessagesDefaultFilter = 84,
97
+ MessagesTimestampMode = 85,
98
+ Milestone = 86,
99
+ MilestoneModifierGroup = 87,
100
+ MilestoneSort = 88,
101
+ Misc = 89,
102
+ ModLoadError = 90,
103
+ ModLoadFailureReason = 91,
104
+ ModProvide = 92,
105
+ ModSort = 93,
106
+ ModType = 94,
107
+ MultiplayerCompatibility = 95,
108
+ MultiplayerDisconnectReason = 96,
109
+ MusicPlaylist = 97,
110
+ Note = 98,
111
+ Npc = 99,
112
+ Number = 100,
113
+ PartOfDay = 101,
114
+ Prompt = 102,
115
+ QuadrantComponent = 103,
116
+ QuadrantComponentContextMenuAction = 104,
117
+ Quality = 105,
118
+ Quest = 106,
119
+ QuestRequirement = 107,
120
+ RecipeLevel = 108,
121
+ Region = 109,
122
+ Riddle = 110,
123
+ RunekeeperDomain = 111,
124
+ RunekeeperDomainEvent = 112,
125
+ SaveImportErrorReason = 113,
126
+ SaveSlotSort = 114,
127
+ Skill = 115,
128
+ SkillsSort = 116,
129
+ Source = 117,
130
+ Stat = 118,
131
+ Status = 119,
132
+ StatusEffect = 120,
133
+ StatusThreatLevel = 121,
134
+ SteamInputKeyboardPosition = 122,
135
+ TeamMemberResponsibility = 123,
136
+ TemperatureType = 124,
137
+ Term = 125,
138
+ Terrain = 126,
139
+ ThirstLevel = 127,
140
+ TileEvent = 128,
141
+ TooltipVisibilityOption = 129,
142
+ Ui = 130,
143
+ UiQuadrant = 131,
144
+ UnableToJoinReason = 132,
145
+ UnlockedRecipesStrategy = 133,
146
+ UsableActionType = 134,
147
+ Website = 135,
148
+ WeightStatus = 136,
149
+ WorldLayer = 137
148
150
  }
149
151
  export default Dictionary;