@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.
- package/definitions/game/game/IGame.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/moveItem/MoveItemFilterArgument.d.ts +3 -0
- package/definitions/game/game/entity/creature/CreatureManager.d.ts +1 -1
- package/definitions/game/game/inspection/IInspection.d.ts +1 -4
- package/definitions/game/game/inspection/inspections/ActionInspection.d.ts +1 -0
- package/definitions/game/game/inspection/inspections/action/IActionInspection.d.ts +26 -0
- package/definitions/game/game/item/Item.d.ts +0 -1
- package/definitions/game/game/meta/SaveLoad.d.ts +1 -1
- package/definitions/game/game/options/IGameOptions.d.ts +6 -1
- package/definitions/game/language/Dictionary.d.ts +128 -127
- package/definitions/game/language/DictionaryMap.d.ts +252 -249
- package/definitions/game/language/Translation.d.ts +2 -2
- package/definitions/game/language/english/ui/ActionSlotItemMethods.d.ts +1 -1
- package/definitions/game/language/english/ui/ActionSlotTypes.d.ts +13 -0
- package/definitions/game/resource/IResourceLoader.d.ts +51 -48
- package/definitions/game/ui/old/OldUi.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/component/container/ContainerBucketItemList.d.ts +6 -5
- package/definitions/game/ui/screen/screens/game/static/actions/ActionSlot.d.ts +5 -8
- package/definitions/game/ui/screen/screens/game/static/actions/IActionsDrawer.d.ts +3 -3
- package/definitions/game/utilities/dev/Debug.d.ts +4 -0
- package/definitions/game/utilities/memory/MemoryLeakDetector.d.ts +1 -1
- package/definitions/game/utilities/object/Merge.d.ts +2 -0
- package/definitions/utilities/Functions.d.ts +1 -1
- package/definitions/utilities/Log.d.ts +4 -0
- package/definitions/utilities/dev/DebugShared.d.ts +23 -0
- package/definitions/utilities/prototype/Define.d.ts +2 -0
- package/package.json +1 -1
@@ -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
|
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
|
/**
|
@@ -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
|
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
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
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;
|