@wayward/types 2.14.3-beta.dev.20241227.1 → 2.14.4-beta.dev.20241228.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/entity/action/usable/IUsableAction.d.ts +17 -1
- package/definitions/game/game/magic/MagicalPropertyManager.d.ts +2 -2
- package/definitions/game/game/magic/MagicalPropertyType.d.ts +2 -2
- package/definitions/game/language/Dictionary.d.ts +59 -58
- package/definitions/game/language/DictionaryMap.d.ts +116 -114
- package/definitions/game/language/ITranslation.d.ts +2 -0
- package/definitions/game/language/MagicAffix.d.ts +17 -0
- package/definitions/game/language/dictionary/Misc.d.ts +4 -0
- package/definitions/game/language/english/item/MagicalPropertyAffixes.d.ts +13 -0
- package/definitions/game/language/impl/TranslationImpl.d.ts +8 -2
- package/definitions/game/save/upgrade/UpgradeVersionRegistry.d.ts +1 -0
- package/definitions/game/steamworks/Steamworks.d.ts +2 -1
- package/definitions/hosts/shared/globals.d.ts +2 -2
- package/definitions/utilities/random/SeededGenerator.d.ts +1 -1
- package/package.json +1 -1
@@ -57,6 +57,7 @@ export interface IUsableActionItemRequirement extends Omit<IUsableActionRequirem
|
|
57
57
|
finder?: false | ((player: Player, defaultOptions?: IItemFinderOptions, provided?: Omit<IUsableActionPossibleUsing, "item">) => ItemFinder | undefined);
|
58
58
|
requiresQuality?: true;
|
59
59
|
requiresType?: true;
|
60
|
+
cannotDamageItem?: true;
|
60
61
|
}
|
61
62
|
export declare namespace IUsableActionItemRequirement {
|
62
63
|
function hasFinder(requirements?: IUsableActionRequirements): boolean;
|
@@ -107,6 +108,8 @@ export interface IUsableActionUsing<REQUIREMENTS extends IUsableActionRequiremen
|
|
107
108
|
targetTile: Tile;
|
108
109
|
fromTile: Tile;
|
109
110
|
item: ((REQUIREMENTS["item"] extends true ? Item : never) | (undefined extends REQUIREMENTS["item"] ? undefined : never) | (REQUIREMENTS["item"] extends {
|
111
|
+
cannotDamageItem: true;
|
112
|
+
} ? Item : never) | (REQUIREMENTS["item"] extends {
|
110
113
|
allowNone: true;
|
111
114
|
} ? Item | undefined : never) | (REQUIREMENTS["item"] extends {
|
112
115
|
validate(player: Player, value: Item): boolean;
|
@@ -117,7 +120,9 @@ export interface IUsableActionUsing<REQUIREMENTS extends IUsableActionRequiremen
|
|
117
120
|
} ? Item : never) | (REQUIREMENTS["item"] extends {
|
118
121
|
allowOnlyItemType(player: Player, type: ItemType): boolean;
|
119
122
|
} ? undefined : never));
|
120
|
-
itemType: ((REQUIREMENTS["item"] extends true ? ItemType : never) | (
|
123
|
+
itemType: ((REQUIREMENTS["item"] extends true ? ItemType : never) | (REQUIREMENTS["item"] extends {
|
124
|
+
cannotDamageItem: true;
|
125
|
+
} ? ItemType : never) | (undefined extends REQUIREMENTS["item"] ? undefined : never) | (REQUIREMENTS["item"] extends {
|
121
126
|
allowOnlyItemType(player: Player, type: ItemType): boolean;
|
122
127
|
} ? ItemType : never) | (REQUIREMENTS["item"] extends {
|
123
128
|
requiresType: true;
|
@@ -132,6 +137,17 @@ export interface IUsableActionUsing<REQUIREMENTS extends IUsableActionRequiremen
|
|
132
137
|
} ? REQUIREMENTS["item"] extends {
|
133
138
|
requiresType: true;
|
134
139
|
} ? never : undefined : never));
|
140
|
+
container?: ((REQUIREMENTS["item"] extends true ? IContainer : never) | (REQUIREMENTS["item"] extends {
|
141
|
+
allowOnlyItemType(player: Player, type: ItemType): boolean;
|
142
|
+
} ? IContainer : never) | (REQUIREMENTS["item"] extends {
|
143
|
+
requiresType: true;
|
144
|
+
} ? IContainer : ((REQUIREMENTS["item"] extends {
|
145
|
+
validate(player: Player, value: Item): boolean;
|
146
|
+
} ? IContainer : never) | (REQUIREMENTS["item"] extends {
|
147
|
+
validateType(player: Player, value: ItemType, description?: IItemDescription): boolean;
|
148
|
+
} ? IContainer : never))) | (REQUIREMENTS["item"] extends {
|
149
|
+
finder: ItemFinder;
|
150
|
+
} ? IContainer : never));
|
135
151
|
itemQuality: ((REQUIREMENTS["item"] extends true ? ArrayOr<Quality> : never) | (undefined extends REQUIREMENTS["item"] ? undefined : never) | (REQUIREMENTS["item"] extends {
|
136
152
|
allowNone: true;
|
137
153
|
} ? undefined : never) | (REQUIREMENTS["item"] extends {
|
@@ -225,11 +225,11 @@ export default class MagicalPropertyManager extends EventEmitter.Host<IMagicalPr
|
|
225
225
|
/**
|
226
226
|
* @returns a list of all the magical properties on this object
|
227
227
|
*/
|
228
|
-
all(): MagicalPropertyEntry[];
|
228
|
+
all(): readonly MagicalPropertyEntry[];
|
229
229
|
/**
|
230
230
|
* @returns a list of all the magical properties on this object,
|
231
231
|
*/
|
232
|
-
all(intersectionType: true): MagicalPropertyEntryIntersection[];
|
232
|
+
all(intersectionType: true): readonly MagicalPropertyEntryIntersection[];
|
233
233
|
/**
|
234
234
|
* Translates a list of the magical properties on this object, including sub-properties
|
235
235
|
* @param ender The way to end this list translation, ie and/or
|
@@ -25,7 +25,7 @@ declare enum MagicalPropertyType {
|
|
25
25
|
Illumination_LightItemLightBonus = 2,
|
26
26
|
/** Increases the amount of weight/items that can be contained */
|
27
27
|
Magnitude_WeightCapacity = 3,
|
28
|
-
/** Decreases item weight
|
28
|
+
/** Decreases item weight (minimum weight is 0.1) */
|
29
29
|
Featherweight = 4,
|
30
30
|
/** Increases a stat when equipped */
|
31
31
|
Stat = 5,
|
@@ -38,7 +38,7 @@ declare enum MagicalPropertyType {
|
|
38
38
|
Range = 9,
|
39
39
|
/** Increases the stats normally gained when consuming/using an item */
|
40
40
|
Potency_ImproveConsumableStats = 10,
|
41
|
-
/** Increases the
|
41
|
+
/** Increases the credit awarded by merchants when selling this item */
|
42
42
|
Worth = 11,
|
43
43
|
/** Increases a trap's damage */
|
44
44
|
Ensnaring_TrapDamage = 12,
|
@@ -81,63 +81,64 @@ declare enum Dictionary {
|
|
81
81
|
LighthouseName = 69,
|
82
82
|
Loading = 70,
|
83
83
|
Macro = 71,
|
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
|
-
|
141
|
-
|
84
|
+
MagicalPropertyAffix = 72,
|
85
|
+
MagicalPropertyType = 73,
|
86
|
+
MapQuality = 74,
|
87
|
+
MenuBarButton = 75,
|
88
|
+
Message = 76,
|
89
|
+
MessagesDefaultFilter = 77,
|
90
|
+
MessagesTimestampMode = 78,
|
91
|
+
Milestone = 79,
|
92
|
+
MilestoneModifierGroup = 80,
|
93
|
+
MilestoneSort = 81,
|
94
|
+
Misc = 82,
|
95
|
+
ModLoadError = 83,
|
96
|
+
ModLoadFailureReason = 84,
|
97
|
+
ModProvide = 85,
|
98
|
+
ModSort = 86,
|
99
|
+
ModType = 87,
|
100
|
+
MultiplayerCompatibility = 88,
|
101
|
+
MultiplayerDisconnectReason = 89,
|
102
|
+
MusicPlaylist = 90,
|
103
|
+
Note = 91,
|
104
|
+
Npc = 92,
|
105
|
+
Number = 93,
|
106
|
+
PartOfDay = 94,
|
107
|
+
Prompt = 95,
|
108
|
+
QuadrantComponent = 96,
|
109
|
+
QuadrantComponentContextMenuAction = 97,
|
110
|
+
Quality = 98,
|
111
|
+
Quest = 99,
|
112
|
+
QuestRequirement = 100,
|
113
|
+
RecipeLevel = 101,
|
114
|
+
Region = 102,
|
115
|
+
Riddle = 103,
|
116
|
+
RunekeeperDomain = 104,
|
117
|
+
RunekeeperDomainEvent = 105,
|
118
|
+
SaveImportErrorReason = 106,
|
119
|
+
SaveSlotSort = 107,
|
120
|
+
Skill = 108,
|
121
|
+
SkillsSort = 109,
|
122
|
+
Source = 110,
|
123
|
+
Stat = 111,
|
124
|
+
Status = 112,
|
125
|
+
StatusEffect = 113,
|
126
|
+
StatusThreatLevel = 114,
|
127
|
+
SteamInputKeyboardPosition = 115,
|
128
|
+
TeamMemberResponsibility = 116,
|
129
|
+
TemperatureType = 117,
|
130
|
+
Term = 118,
|
131
|
+
Terrain = 119,
|
132
|
+
ThirstLevel = 120,
|
133
|
+
TileEvent = 121,
|
134
|
+
TooltipVisibilityOption = 122,
|
135
|
+
Ui = 123,
|
136
|
+
UiQuadrant = 124,
|
137
|
+
UnableToJoinReason = 125,
|
138
|
+
UnlockedRecipesStrategy = 126,
|
139
|
+
UsableActionType = 127,
|
140
|
+
Website = 128,
|
141
|
+
WeightStatus = 129,
|
142
|
+
WorldLayer = 130
|
142
143
|
}
|
143
144
|
export default Dictionary;
|
@@ -1830,63 +1830,64 @@ declare const dictionaryMap: {
|
|
1830
1830
|
70: typeof Load;
|
1831
1831
|
71: symbol;
|
1832
1832
|
72: typeof MagicalPropertyType;
|
1833
|
-
73: typeof
|
1834
|
-
74: typeof
|
1835
|
-
75: typeof
|
1836
|
-
76: typeof
|
1837
|
-
77: typeof
|
1838
|
-
78: typeof
|
1839
|
-
79: typeof
|
1840
|
-
80: typeof
|
1841
|
-
81: typeof
|
1842
|
-
82: typeof
|
1843
|
-
83: typeof
|
1844
|
-
84: typeof
|
1845
|
-
85: typeof
|
1846
|
-
86: typeof
|
1847
|
-
87: typeof
|
1848
|
-
88: typeof
|
1849
|
-
89: typeof
|
1850
|
-
90: typeof
|
1851
|
-
91: typeof
|
1852
|
-
92:
|
1853
|
-
93:
|
1854
|
-
94: typeof
|
1855
|
-
95: typeof
|
1856
|
-
96: typeof
|
1857
|
-
97: typeof
|
1858
|
-
98: typeof
|
1859
|
-
99: typeof
|
1860
|
-
100: typeof
|
1861
|
-
101: typeof
|
1862
|
-
102: typeof
|
1863
|
-
103: typeof
|
1864
|
-
104: typeof Runekeeper.
|
1865
|
-
105: typeof
|
1866
|
-
106: typeof
|
1867
|
-
107: typeof
|
1868
|
-
108: typeof
|
1869
|
-
109: typeof
|
1870
|
-
110: typeof
|
1871
|
-
111: typeof
|
1872
|
-
112: typeof
|
1873
|
-
113: typeof
|
1874
|
-
114: typeof
|
1875
|
-
115: typeof
|
1876
|
-
116: typeof
|
1877
|
-
117: typeof
|
1878
|
-
118: typeof
|
1879
|
-
119: typeof
|
1880
|
-
120: typeof
|
1881
|
-
121: typeof
|
1882
|
-
122: typeof
|
1883
|
-
123: typeof
|
1884
|
-
124: typeof
|
1885
|
-
125: typeof
|
1886
|
-
126: typeof
|
1887
|
-
127: typeof
|
1888
|
-
128: typeof
|
1889
|
-
129: typeof
|
1833
|
+
73: typeof MagicalPropertyType;
|
1834
|
+
74: typeof MapQuality;
|
1835
|
+
75: typeof MenuBarButtonType;
|
1836
|
+
76: typeof Message;
|
1837
|
+
77: typeof MessageFilterDefault;
|
1838
|
+
78: typeof MessageTimestamp;
|
1839
|
+
79: typeof Milestone;
|
1840
|
+
80: typeof MilestoneModifierGroup;
|
1841
|
+
81: typeof MilestoneSort;
|
1842
|
+
82: typeof MiscTranslation;
|
1843
|
+
83: typeof CanLoadState;
|
1844
|
+
84: typeof ModLoadFailureReason;
|
1845
|
+
85: typeof ModProvide;
|
1846
|
+
86: typeof ModSort;
|
1847
|
+
87: typeof ModType;
|
1848
|
+
88: typeof MultiplayerCompatibility;
|
1849
|
+
89: typeof DisconnectReason;
|
1850
|
+
90: typeof MusicPlaylist;
|
1851
|
+
91: typeof Note;
|
1852
|
+
92: typeof NPCType;
|
1853
|
+
93: symbol;
|
1854
|
+
94: typeof PartOfDay;
|
1855
|
+
95: typeof Prompt;
|
1856
|
+
96: typeof QuadrantComponentId;
|
1857
|
+
97: typeof QuadrantComponentContextMenuAction;
|
1858
|
+
98: typeof Quality;
|
1859
|
+
99: typeof QuestType;
|
1860
|
+
100: typeof QuestRequirementType;
|
1861
|
+
101: typeof RecipeLevel;
|
1862
|
+
102: typeof Direction;
|
1863
|
+
103: typeof Riddle;
|
1864
|
+
104: typeof Runekeeper.Domain;
|
1865
|
+
105: typeof Runekeeper.Event;
|
1866
|
+
106: typeof SaveImportErrorReason;
|
1867
|
+
107: typeof SaveSort;
|
1868
|
+
108: typeof SkillType;
|
1869
|
+
109: typeof SkillSort;
|
1870
|
+
110: typeof Source;
|
1871
|
+
111: typeof Stat;
|
1872
|
+
112: typeof StatusType;
|
1873
|
+
113: typeof StatusEffectType;
|
1874
|
+
114: typeof StatusThreatLevel;
|
1875
|
+
115: typeof SteamInputKeyboardPosition;
|
1876
|
+
116: typeof Responsibility;
|
1877
|
+
117: typeof TempType;
|
1878
|
+
118: typeof Term;
|
1879
|
+
119: typeof TerrainType;
|
1880
|
+
120: typeof ThirstLevel;
|
1881
|
+
121: typeof TileEventType;
|
1882
|
+
122: typeof TooltipVisibilityOption;
|
1883
|
+
123: typeof UiTranslation;
|
1884
|
+
124: typeof Quadrant;
|
1885
|
+
125: typeof UnableToJoinReason;
|
1886
|
+
126: typeof UnlockedRecipesStrategy;
|
1887
|
+
127: typeof UsableActionType;
|
1888
|
+
128: typeof Website;
|
1889
|
+
129: typeof WeightStatus;
|
1890
|
+
130: typeof WorldZ;
|
1890
1891
|
};
|
1891
1892
|
export declare const strictDictionaries: {
|
1892
1893
|
0: typeof ActionType;
|
@@ -3620,63 +3621,64 @@ export declare const strictDictionaries: {
|
|
3620
3621
|
70: typeof Load;
|
3621
3622
|
71: symbol;
|
3622
3623
|
72: typeof MagicalPropertyType;
|
3623
|
-
73: typeof
|
3624
|
-
74: typeof
|
3625
|
-
75: typeof
|
3626
|
-
76: typeof
|
3627
|
-
77: typeof
|
3628
|
-
78: typeof
|
3629
|
-
79: typeof
|
3630
|
-
80: typeof
|
3631
|
-
81: typeof
|
3632
|
-
82: typeof
|
3633
|
-
83: typeof
|
3634
|
-
84: typeof
|
3635
|
-
85: typeof
|
3636
|
-
86: typeof
|
3637
|
-
87: typeof
|
3638
|
-
88: typeof
|
3639
|
-
89: typeof
|
3640
|
-
90: typeof
|
3641
|
-
91: typeof
|
3642
|
-
92:
|
3643
|
-
93:
|
3644
|
-
94: typeof
|
3645
|
-
95: typeof
|
3646
|
-
96: typeof
|
3647
|
-
97: typeof
|
3648
|
-
98: typeof
|
3649
|
-
99: typeof
|
3650
|
-
100: typeof
|
3651
|
-
101: typeof
|
3652
|
-
102: typeof
|
3653
|
-
103: typeof
|
3654
|
-
104: typeof Runekeeper.
|
3655
|
-
105: typeof
|
3656
|
-
106: typeof
|
3657
|
-
107: typeof
|
3658
|
-
108: typeof
|
3659
|
-
109: typeof
|
3660
|
-
110: typeof
|
3661
|
-
111: typeof
|
3662
|
-
112: typeof
|
3663
|
-
113: typeof
|
3664
|
-
114: typeof
|
3665
|
-
115: typeof
|
3666
|
-
116: typeof
|
3667
|
-
117: typeof
|
3668
|
-
118: typeof
|
3669
|
-
119: typeof
|
3670
|
-
120: typeof
|
3671
|
-
121: typeof
|
3672
|
-
122: typeof
|
3673
|
-
123: typeof
|
3674
|
-
124: typeof
|
3675
|
-
125: typeof
|
3676
|
-
126: typeof
|
3677
|
-
127: typeof
|
3678
|
-
128: typeof
|
3679
|
-
129: typeof
|
3624
|
+
73: typeof MagicalPropertyType;
|
3625
|
+
74: typeof MapQuality;
|
3626
|
+
75: typeof MenuBarButtonType;
|
3627
|
+
76: typeof Message;
|
3628
|
+
77: typeof MessageFilterDefault;
|
3629
|
+
78: typeof MessageTimestamp;
|
3630
|
+
79: typeof Milestone;
|
3631
|
+
80: typeof MilestoneModifierGroup;
|
3632
|
+
81: typeof MilestoneSort;
|
3633
|
+
82: typeof MiscTranslation;
|
3634
|
+
83: typeof CanLoadState;
|
3635
|
+
84: typeof ModLoadFailureReason;
|
3636
|
+
85: typeof ModProvide;
|
3637
|
+
86: typeof ModSort;
|
3638
|
+
87: typeof ModType;
|
3639
|
+
88: typeof MultiplayerCompatibility;
|
3640
|
+
89: typeof DisconnectReason;
|
3641
|
+
90: typeof MusicPlaylist;
|
3642
|
+
91: typeof Note;
|
3643
|
+
92: typeof NPCType;
|
3644
|
+
93: symbol;
|
3645
|
+
94: typeof PartOfDay;
|
3646
|
+
95: typeof Prompt;
|
3647
|
+
96: typeof QuadrantComponentId;
|
3648
|
+
97: typeof QuadrantComponentContextMenuAction;
|
3649
|
+
98: typeof Quality;
|
3650
|
+
99: typeof QuestType;
|
3651
|
+
100: typeof QuestRequirementType;
|
3652
|
+
101: typeof RecipeLevel;
|
3653
|
+
102: typeof Direction;
|
3654
|
+
103: typeof Riddle;
|
3655
|
+
104: typeof Runekeeper.Domain;
|
3656
|
+
105: typeof Runekeeper.Event;
|
3657
|
+
106: typeof SaveImportErrorReason;
|
3658
|
+
107: typeof SaveSort;
|
3659
|
+
108: typeof SkillType;
|
3660
|
+
109: typeof SkillSort;
|
3661
|
+
110: typeof Source;
|
3662
|
+
111: typeof Stat;
|
3663
|
+
112: typeof StatusType;
|
3664
|
+
113: typeof StatusEffectType;
|
3665
|
+
114: typeof StatusThreatLevel;
|
3666
|
+
115: typeof SteamInputKeyboardPosition;
|
3667
|
+
116: typeof Responsibility;
|
3668
|
+
117: typeof TempType;
|
3669
|
+
118: typeof Term;
|
3670
|
+
119: typeof TerrainType;
|
3671
|
+
120: typeof ThirstLevel;
|
3672
|
+
121: typeof TileEventType;
|
3673
|
+
122: typeof TooltipVisibilityOption;
|
3674
|
+
123: typeof UiTranslation;
|
3675
|
+
124: typeof Quadrant;
|
3676
|
+
125: typeof UnableToJoinReason;
|
3677
|
+
126: typeof UnlockedRecipesStrategy;
|
3678
|
+
127: typeof UsableActionType;
|
3679
|
+
128: typeof Website;
|
3680
|
+
129: typeof WeightStatus;
|
3681
|
+
130: typeof WorldZ;
|
3680
3682
|
};
|
3681
3683
|
export type DictionaryEnum = (typeof dictionaryMap)[Dictionary];
|
3682
3684
|
type ExtractEnumString<E> = E extends Record<string, infer V> ? V : never;
|
@@ -12,6 +12,7 @@ import type { InfoProviderContext } from "@wayward/game/game/inspection/InfoProv
|
|
12
12
|
import type { Reference } from "@wayward/game/game/reference/IReferenceManager";
|
13
13
|
import type Translation from "@wayward/game/language/Translation";
|
14
14
|
import type TranslationImplImport from "@wayward/game/language/impl/TranslationImpl";
|
15
|
+
import type { IRandomDefinition } from "@wayward/game/language/impl/TranslationImpl";
|
15
16
|
import type { Segment } from "@wayward/game/language/segment/Segments";
|
16
17
|
import type { IInterpolationOptions, IStringSection } from "@wayward/game/utilities/string/Interpolator";
|
17
18
|
import type { Random } from "@wayward/utilities/random/Random";
|
@@ -43,6 +44,7 @@ export interface ISerializedTranslation {
|
|
43
44
|
tooltipWide?: true;
|
44
45
|
interpolator?: ISerializedInterpolator;
|
45
46
|
classes?: string[];
|
47
|
+
randomDefinition?: IRandomDefinition;
|
46
48
|
}
|
47
49
|
export declare namespace ISerializedTranslation {
|
48
50
|
function is(value: unknown): value is ISerializedTranslation;
|
@@ -0,0 +1,17 @@
|
|
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
|
+
import type { ItemType } from "@wayward/game/game/item/IItem";
|
12
|
+
import type MagicalPropertyManager from "@wayward/game/game/magic/MagicalPropertyManager";
|
13
|
+
import Translation from "@wayward/game/language/Translation";
|
14
|
+
declare namespace MagicAffix {
|
15
|
+
function get(id: number, itemType: ItemType, magic?: MagicalPropertyManager): Translation | undefined;
|
16
|
+
}
|
17
|
+
export default MagicAffix;
|
@@ -121,6 +121,10 @@ export declare enum DamageTypeTranslation {
|
|
121
121
|
Name = 0,
|
122
122
|
Description = 1
|
123
123
|
}
|
124
|
+
export declare enum MagicalPropertyAffixTranslation {
|
125
|
+
Adjective = 0,
|
126
|
+
Name = 1
|
127
|
+
}
|
124
128
|
export declare enum MiscTranslation {
|
125
129
|
AAndB = 0,
|
126
130
|
Aberrant = 1,
|
@@ -0,0 +1,13 @@
|
|
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
|
+
import MagicalPropertyType from "@wayward/game/game/magic/MagicalPropertyType";
|
12
|
+
declare const magicalPropertyAffixes: Descriptions<MagicalPropertyType, [adjective: string, noun: string]>;
|
13
|
+
export default magicalPropertyAffixes;
|
@@ -20,7 +20,7 @@ import type { ISerializable } from "@wayward/game/save/serializer/ISerializer";
|
|
20
20
|
import type { TranslationGenerator } from "@wayward/game/ui/component/IComponent";
|
21
21
|
import type { ISegment, IStringSection } from "@wayward/game/utilities/string/Interpolator";
|
22
22
|
import Interpolator from "@wayward/game/utilities/string/Interpolator";
|
23
|
-
import
|
23
|
+
import { Random } from "@wayward/utilities/random/Random";
|
24
24
|
export interface ITranslationConfig {
|
25
25
|
segments: Record<number, ISegment>;
|
26
26
|
invertedSegmentMap: Map<ISegment, number>;
|
@@ -29,6 +29,11 @@ export interface ITranslationConfig {
|
|
29
29
|
}
|
30
30
|
export type TranslationReformatter = TranslationImpl | Falsy;
|
31
31
|
type TranslationStringRenderer = (section: IStringSection) => string | undefined;
|
32
|
+
export interface IRandomDefinition {
|
33
|
+
seed: number;
|
34
|
+
/** number of times to advance the seed */
|
35
|
+
advance?: number;
|
36
|
+
}
|
32
37
|
export default class TranslationImpl implements Omit<ISerializable, "deserializeObject"> {
|
33
38
|
private static defaultInterpolatorSegmentIds?;
|
34
39
|
private static _config?;
|
@@ -59,6 +64,7 @@ export default class TranslationImpl implements Omit<ISerializable, "deserialize
|
|
59
64
|
private normalize;
|
60
65
|
private failWith?;
|
61
66
|
private random;
|
67
|
+
private randomDefinition?;
|
62
68
|
private languageLoadId;
|
63
69
|
private cachedSections?;
|
64
70
|
private cachedString?;
|
@@ -115,7 +121,7 @@ export default class TranslationImpl implements Omit<ISerializable, "deserialize
|
|
115
121
|
*
|
116
122
|
* Note: If this translation is an argument to another translation, it will use the random of the parent translation.
|
117
123
|
*/
|
118
|
-
setRandom(random?: Random): this;
|
124
|
+
setRandom(random?: Random | IRandomDefinition): this;
|
119
125
|
hasTranslation(): boolean;
|
120
126
|
orElse(translation: GetterOfOr<TranslationImpl>): TranslationImpl;
|
121
127
|
orElse(translation?: GetterOfOr<TranslationImpl | undefined>): TranslationImpl | undefined;
|
@@ -11,6 +11,7 @@
|
|
11
11
|
import type { IUpgradeVersion, UpgradeParameters, UpgradeType } from "@wayward/game/save/upgrade/UpgradeVersion";
|
12
12
|
import type UpgradesArray from "@wayward/game/save/upgrade/UpgradesArray";
|
13
13
|
import type Version from "@wayward/game/utilities/Version";
|
14
|
+
export declare const BUILD_TIME_INTRODUCED_TIME: Date;
|
14
15
|
declare namespace UpgradeVersionRegistry {
|
15
16
|
function getAll(): readonly IUpgradeVersion[];
|
16
17
|
function run<TYPE extends UpgradeType>(version: Version.Info, messages: UpgradesArray, which: TYPE, ...params: UpgradeParameters<TYPE>): void;
|
@@ -89,7 +89,8 @@ export default class Steamworks extends EventEmitter.Host<ISteamworksEvents> {
|
|
89
89
|
getMatchmakingServer(): IMatchmakingServer | undefined;
|
90
90
|
getMatchmakingServerPort(): number;
|
91
91
|
getSteamNetworking(): ISteamworksNetworking | undefined;
|
92
|
-
|
92
|
+
/** @deprecated For console use */
|
93
|
+
protected setBuildId(id?: string): void;
|
93
94
|
initialize(): Promise<IWaywardPreload | undefined>;
|
94
95
|
enableSafePaths(): void;
|
95
96
|
onUnload(): void;
|
@@ -9,8 +9,8 @@
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
10
10
|
*/
|
11
11
|
import type { IWaywardTitle } from "@wayward/hosts/shared/globalTypes";
|
12
|
-
export declare const gameVersionStage = "beta", gameVersionMajor = 2, gameVersionMinor = 14, gameVersionPatch =
|
13
|
-
export declare const gameVersion = "beta2.14.
|
12
|
+
export declare const gameVersionStage = "beta", gameVersionMajor = 2, gameVersionMinor = 14, gameVersionPatch = 4, gameVersionName = "Runekeeper", gameVersionColor = 11015763;
|
13
|
+
export declare const gameVersion = "beta2.14.4";
|
14
14
|
export declare const gameVersionTitleMajor = "Wayward: Runekeeper";
|
15
15
|
export declare const gameVersionTitleMinor: string;
|
16
16
|
export declare const gameVersionTitle: string;
|
@@ -40,5 +40,5 @@ export declare abstract class SeededGenerator<T> implements IRandomGenerator {
|
|
40
40
|
getHistory(): Array<IRandomHistory<T>> | undefined;
|
41
41
|
takeHistory(): Array<IRandomHistory<T>> | undefined;
|
42
42
|
stopHistory(): Array<IRandomHistory<T>>;
|
43
|
-
advance(): this;
|
43
|
+
advance(times?: number): this;
|
44
44
|
}
|
package/package.json
CHANGED