@wayward/types 2.14.3-beta.dev.20241225.1 → 2.14.3-beta.dev.20241227.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 (27) hide show
  1. package/definitions/game/game/IGame.d.ts +2 -1
  2. package/definitions/game/game/entity/action/actions/moveItem/MoveItemFilterArgument.d.ts +3 -0
  3. package/definitions/game/game/entity/creature/CreatureManager.d.ts +1 -1
  4. package/definitions/game/game/inspection/IInspection.d.ts +1 -4
  5. package/definitions/game/game/inspection/inspections/ActionInspection.d.ts +1 -0
  6. package/definitions/game/game/inspection/inspections/action/IActionInspection.d.ts +26 -0
  7. package/definitions/game/game/item/Item.d.ts +0 -1
  8. package/definitions/game/game/meta/SaveLoad.d.ts +1 -1
  9. package/definitions/game/game/options/IGameOptions.d.ts +6 -1
  10. package/definitions/game/language/Dictionary.d.ts +128 -127
  11. package/definitions/game/language/DictionaryMap.d.ts +252 -249
  12. package/definitions/game/language/Translation.d.ts +2 -2
  13. package/definitions/game/language/english/ui/ActionSlotItemMethods.d.ts +1 -1
  14. package/definitions/game/language/english/ui/ActionSlotTypes.d.ts +13 -0
  15. package/definitions/game/resource/IResourceLoader.d.ts +51 -48
  16. package/definitions/game/ui/old/OldUi.d.ts +1 -1
  17. package/definitions/game/ui/screen/screens/game/component/container/ContainerBucketItemList.d.ts +6 -5
  18. package/definitions/game/ui/screen/screens/game/static/actions/ActionSlot.d.ts +5 -8
  19. package/definitions/game/ui/screen/screens/game/static/actions/IActionsDrawer.d.ts +3 -3
  20. package/definitions/game/utilities/dev/Debug.d.ts +4 -0
  21. package/definitions/game/utilities/memory/MemoryLeakDetector.d.ts +1 -1
  22. package/definitions/game/utilities/object/Merge.d.ts +2 -0
  23. package/definitions/utilities/Functions.d.ts +1 -1
  24. package/definitions/utilities/Log.d.ts +4 -0
  25. package/definitions/utilities/dev/DebugShared.d.ts +23 -0
  26. package/definitions/utilities/prototype/Define.d.ts +2 -0
  27. package/package.json +1 -1
@@ -217,7 +217,8 @@ export declare enum SaveType {
217
217
  Quit = 2,
218
218
  BackToMainMenu = 3,
219
219
  Multiplayer = 4,
220
- ReplayConvert = 5
220
+ ReplayConvert = 5,
221
+ AutoSave = 6
221
222
  }
222
223
  export declare enum TileUpdateType {
223
224
  Batch = 0,
@@ -20,7 +20,10 @@ export interface IMoveItemFilterArgument {
20
20
  moveLimit?: number;
21
21
  quality?: ArrayOr<Quality>;
22
22
  text?: string;
23
+ /** Excludes items that are both protected themselves, and that are in a protected container */
23
24
  excludeProtected?: boolean;
25
+ /** Combined with `excludeProtected` to re-include items that are just in a protected container */
26
+ includeInProtectedContainer?: boolean;
24
27
  excludeEquipped?: boolean;
25
28
  }
26
29
  export declare class MoveItemFilterArgument<FILTER extends IMoveItemFilterArgument> extends ActionArgumentCustom<FILTER> {
@@ -68,7 +68,7 @@ export default class CreatureManager extends EntityManager<Creature, {
68
68
  /**
69
69
  * getMovePenalty
70
70
  * @param willMove Set to true if the object is about to move to this tile. This method will confirm if there's an existing npc/creature there and return false if so
71
- * @return Blocked penalty - Do no return 0!
71
+ * @return Blocked penalty - Do not return 0!
72
72
  */
73
73
  getMovePenalty(moveType: MoveType, tile: Tile, willMove: boolean, options?: Partial<ICreatureCheckMoveOptions>, creature?: Creature): number;
74
74
  /**
@@ -48,8 +48,5 @@ export declare enum InfoIcon {
48
48
  PinSelf = 2,
49
49
  PinFriend = 3,
50
50
  PinMap = 4,
51
- ActionUndiscovered = 5,
52
- ActionUsingAnyItem = 6,
53
- ActionUsingMissingItem = 7,
54
- PinLighthouse = 8
51
+ PinLighthouse = 5
55
52
  }
@@ -43,6 +43,7 @@ export default class ActionInspection extends Inspection<ActionId | undefined> {
43
43
  protected getTitle(context: InfoProviderContext): Translation;
44
44
  protected getSubtitle(context: InfoProviderContext): Translation | undefined;
45
45
  protected getContent(context: InfoProviderContext): ArrayOr<Translation | InfoProvider | undefined>;
46
+ private getActionSlotType;
46
47
  private getActionSlotItemMode;
47
48
  private getTranslation;
48
49
  private getActionDiscovered;
@@ -0,0 +1,26 @@
1
+ /*!
2
+ * Copyright 2011-2024 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
+ export declare enum ActionInfoIcon {
12
+ Undiscovered = 0,
13
+ ItemMissing = 1
14
+ }
15
+ export declare enum ActionSlotItemMethod {
16
+ None = 0,
17
+ Exact = 1,
18
+ Hovered = 2,
19
+ Best = 3
20
+ }
21
+ export declare enum ActionSlotType {
22
+ None = 0,
23
+ History = 1,
24
+ TargetHoveredTile = 2,
25
+ AutoUse = 3
26
+ }
@@ -200,7 +200,6 @@ export default class Item extends EntityMovable<IItemDescription, ItemType, Refe
200
200
  */
201
201
  getName(article?: Article, options?: Partial<IItemGetNameOptions>): TranslationImpl;
202
202
  protected get debug(): any;
203
- private getDebug;
204
203
  protected get typeEnum(): typeof ItemType;
205
204
  protected getDescription(): IItemDescription | undefined;
206
205
  get isTransient(): boolean;
@@ -22,7 +22,7 @@ export declare class SaveLoad {
22
22
  * Saves the game (asynchronously)
23
23
  * Keep in sync with saveGameSynchronous
24
24
  */
25
- save(saveType: SaveType, load?: Load): Promise<ISaveInfo | undefined>;
25
+ save(saveType: SaveType, load?: Load, disableSave?: true): Promise<ISaveInfo | undefined>;
26
26
  /**
27
27
  * Saves the game (synchronously)
28
28
  * Keep in sync with saveGame
@@ -482,7 +482,12 @@ export interface IGameOptionsItemMagic {
482
482
  */
483
483
  bonusChanceUsesContextualMultiplier: boolean;
484
484
  /**
485
- * Whether to randomize the magical properties as a flat range chance instead of applying bonusChance for every additional property.
485
+ * Whether to ignore the magical property quantity override from mastercrafting.
486
+ */
487
+ ignoreQuantityOverride: boolean;
488
+ /**
489
+ * Whether to randomize the magical properties as a value from a range with flat chances.
490
+ * Disables `bonusChance` and `bonusChanceUsesContextualMultiplier`.
486
491
  */
487
492
  randomizeAsRange: boolean;
488
493
  }
@@ -11,132 +11,133 @@
11
11
  declare enum Dictionary {
12
12
  Action = 0,
13
13
  ActionSlotItemMethod = 1,
14
- ActionSort = 2,
15
- AiType = 3,
16
- AutoSave = 4,
17
- BadTemperature = 5,
18
- Bindable = 6,
19
- BindableType = 7,
20
- Biome = 8,
21
- BleedLevel = 9,
22
- Book = 10,
23
- Challenge = 11,
24
- ChangelogChangeType = 12,
25
- CharacterSort = 13,
26
- CombatDangerLevel = 14,
27
- CombatStrength = 15,
28
- Command = 16,
29
- ContainerSort = 17,
30
- Corpse = 18,
31
- CraftEfficacy = 19,
32
- CraftingSort = 20,
33
- Creature = 21,
34
- CurseComponent = 22,
35
- DamageType = 23,
36
- Deity = 24,
37
- DeitySymbol = 25,
38
- Dialog = 26,
39
- Direction = 27,
40
- DisplayLevel = 28,
41
- DoctorCure = 29,
42
- DoctorMethod = 30,
43
- Doodad = 31,
44
- DoodadExtra = 32,
45
- DoodadGroup = 33,
46
- DrawnMapTheme = 34,
47
- DurabilityLevel = 35,
48
- EquipEffect = 36,
49
- EquipSlot = 37,
50
- ExhaustionLevel = 38,
51
- FireStage = 39,
52
- FontStyle = 40,
53
- GameEndMessage = 41,
54
- GameMode = 42,
55
- Growth = 43,
56
- GrowthFungus = 44,
57
- Health = 45,
58
- HealthAccuracy = 46,
59
- HelpArticle = 47,
60
- HighscoreSort = 48,
61
- HumanName = 49,
62
- HungerLevel = 50,
63
- Input = 51,
64
- InspectType = 52,
65
- InterruptChoice = 53,
66
- IslandModifier = 54,
67
- IslandName = 55,
68
- IslandNameBiomeDescriptor = 56,
69
- IslandNameBiomeNoun = 57,
70
- IslandNameModifierDescriptor = 58,
71
- IslandNameOverrunWithCreatureDescriptor = 59,
72
- Item = 60,
73
- ItemAffixPostReformat = 61,
74
- ItemAffixPreReformat = 62,
75
- ItemExtra = 63,
76
- ItemGroup = 64,
77
- JoinServerRetryReason = 65,
78
- Label = 66,
79
- Level = 67,
80
- LighthouseName = 68,
81
- Loading = 69,
82
- Macro = 70,
83
- MagicalPropertyType = 71,
84
- MapQuality = 72,
85
- MenuBarButton = 73,
86
- Message = 74,
87
- MessagesDefaultFilter = 75,
88
- MessagesTimestampMode = 76,
89
- Milestone = 77,
90
- MilestoneModifierGroup = 78,
91
- MilestoneSort = 79,
92
- Misc = 80,
93
- ModLoadError = 81,
94
- ModLoadFailureReason = 82,
95
- ModProvide = 83,
96
- ModSort = 84,
97
- ModType = 85,
98
- MultiplayerCompatibility = 86,
99
- MultiplayerDisconnectReason = 87,
100
- MusicPlaylist = 88,
101
- Note = 89,
102
- Npc = 90,
103
- Number = 91,
104
- PartOfDay = 92,
105
- Prompt = 93,
106
- QuadrantComponent = 94,
107
- QuadrantComponentContextMenuAction = 95,
108
- Quality = 96,
109
- Quest = 97,
110
- QuestRequirement = 98,
111
- RecipeLevel = 99,
112
- Region = 100,
113
- Riddle = 101,
114
- RunekeeperDomain = 102,
115
- RunekeeperDomainEvent = 103,
116
- SaveImportErrorReason = 104,
117
- SaveSlotSort = 105,
118
- Skill = 106,
119
- SkillsSort = 107,
120
- Source = 108,
121
- Stat = 109,
122
- Status = 110,
123
- StatusEffect = 111,
124
- StatusThreatLevel = 112,
125
- SteamInputKeyboardPosition = 113,
126
- TeamMemberResponsibility = 114,
127
- TemperatureType = 115,
128
- Term = 116,
129
- Terrain = 117,
130
- ThirstLevel = 118,
131
- TileEvent = 119,
132
- TooltipVisibilityOption = 120,
133
- Ui = 121,
134
- UiQuadrant = 122,
135
- UnableToJoinReason = 123,
136
- UnlockedRecipesStrategy = 124,
137
- UsableActionType = 125,
138
- Website = 126,
139
- WeightStatus = 127,
140
- WorldLayer = 128
14
+ ActionSlotType = 2,
15
+ ActionSort = 3,
16
+ AiType = 4,
17
+ AutoSave = 5,
18
+ BadTemperature = 6,
19
+ Bindable = 7,
20
+ BindableType = 8,
21
+ Biome = 9,
22
+ BleedLevel = 10,
23
+ Book = 11,
24
+ Challenge = 12,
25
+ ChangelogChangeType = 13,
26
+ CharacterSort = 14,
27
+ CombatDangerLevel = 15,
28
+ CombatStrength = 16,
29
+ Command = 17,
30
+ ContainerSort = 18,
31
+ Corpse = 19,
32
+ CraftEfficacy = 20,
33
+ CraftingSort = 21,
34
+ Creature = 22,
35
+ CurseComponent = 23,
36
+ DamageType = 24,
37
+ Deity = 25,
38
+ DeitySymbol = 26,
39
+ Dialog = 27,
40
+ Direction = 28,
41
+ DisplayLevel = 29,
42
+ DoctorCure = 30,
43
+ DoctorMethod = 31,
44
+ Doodad = 32,
45
+ DoodadExtra = 33,
46
+ DoodadGroup = 34,
47
+ DrawnMapTheme = 35,
48
+ DurabilityLevel = 36,
49
+ EquipEffect = 37,
50
+ EquipSlot = 38,
51
+ ExhaustionLevel = 39,
52
+ FireStage = 40,
53
+ FontStyle = 41,
54
+ GameEndMessage = 42,
55
+ GameMode = 43,
56
+ Growth = 44,
57
+ GrowthFungus = 45,
58
+ Health = 46,
59
+ HealthAccuracy = 47,
60
+ HelpArticle = 48,
61
+ HighscoreSort = 49,
62
+ HumanName = 50,
63
+ HungerLevel = 51,
64
+ Input = 52,
65
+ InspectType = 53,
66
+ InterruptChoice = 54,
67
+ IslandModifier = 55,
68
+ IslandName = 56,
69
+ IslandNameBiomeDescriptor = 57,
70
+ IslandNameBiomeNoun = 58,
71
+ IslandNameModifierDescriptor = 59,
72
+ IslandNameOverrunWithCreatureDescriptor = 60,
73
+ Item = 61,
74
+ ItemAffixPostReformat = 62,
75
+ ItemAffixPreReformat = 63,
76
+ ItemExtra = 64,
77
+ ItemGroup = 65,
78
+ JoinServerRetryReason = 66,
79
+ Label = 67,
80
+ Level = 68,
81
+ LighthouseName = 69,
82
+ Loading = 70,
83
+ Macro = 71,
84
+ MagicalPropertyType = 72,
85
+ MapQuality = 73,
86
+ MenuBarButton = 74,
87
+ Message = 75,
88
+ MessagesDefaultFilter = 76,
89
+ MessagesTimestampMode = 77,
90
+ Milestone = 78,
91
+ MilestoneModifierGroup = 79,
92
+ MilestoneSort = 80,
93
+ Misc = 81,
94
+ ModLoadError = 82,
95
+ ModLoadFailureReason = 83,
96
+ ModProvide = 84,
97
+ ModSort = 85,
98
+ ModType = 86,
99
+ MultiplayerCompatibility = 87,
100
+ MultiplayerDisconnectReason = 88,
101
+ MusicPlaylist = 89,
102
+ Note = 90,
103
+ Npc = 91,
104
+ Number = 92,
105
+ PartOfDay = 93,
106
+ Prompt = 94,
107
+ QuadrantComponent = 95,
108
+ QuadrantComponentContextMenuAction = 96,
109
+ Quality = 97,
110
+ Quest = 98,
111
+ QuestRequirement = 99,
112
+ RecipeLevel = 100,
113
+ Region = 101,
114
+ Riddle = 102,
115
+ RunekeeperDomain = 103,
116
+ RunekeeperDomainEvent = 104,
117
+ SaveImportErrorReason = 105,
118
+ SaveSlotSort = 106,
119
+ Skill = 107,
120
+ SkillsSort = 108,
121
+ Source = 109,
122
+ Stat = 110,
123
+ Status = 111,
124
+ StatusEffect = 112,
125
+ StatusThreatLevel = 113,
126
+ SteamInputKeyboardPosition = 114,
127
+ TeamMemberResponsibility = 115,
128
+ TemperatureType = 116,
129
+ Term = 117,
130
+ Terrain = 118,
131
+ ThirstLevel = 119,
132
+ TileEvent = 120,
133
+ TooltipVisibilityOption = 121,
134
+ Ui = 122,
135
+ UiQuadrant = 123,
136
+ UnableToJoinReason = 124,
137
+ UnlockedRecipesStrategy = 125,
138
+ UsableActionType = 126,
139
+ Website = 127,
140
+ WeightStatus = 128,
141
+ WorldLayer = 129
141
142
  }
142
143
  export default Dictionary;