@wayward/types 2.15.0-beta.dev.20251002.1 → 2.15.0-beta.dev.20251004.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/Game.d.ts +3 -1
- package/definitions/game/game/IGame.d.ts +2 -7
- package/definitions/game/game/curse/Curse.d.ts +107 -0
- package/definitions/game/game/curse/CurseEvent.d.ts +115 -0
- package/definitions/game/game/curse/CurseEventDefinitions.d.ts +14 -0
- package/definitions/game/game/curse/ICurse.d.ts +72 -0
- package/definitions/game/game/curse/event/CurseEventFrigidNight.d.ts +13 -0
- package/definitions/game/game/curse/event/CurseEventHeatWave.d.ts +13 -0
- package/definitions/game/game/deity/Deity.d.ts +0 -2
- package/definitions/game/game/entity/Human.d.ts +4 -1
- package/definitions/game/game/entity/IHuman.d.ts +5 -1
- package/definitions/game/game/entity/action/actions/SetTitle.d.ts +1 -1
- package/definitions/game/game/entity/player/MessageManager.d.ts +1 -1
- package/definitions/game/game/entity/status/IStatus.d.ts +30 -7
- package/definitions/game/game/entity/status/IStatusContext.d.ts +2 -1
- package/definitions/game/game/entity/status/Status.d.ts +2 -2
- package/definitions/game/game/entity/status/handler/BadTemperatureEffect.d.ts +3 -0
- package/definitions/game/game/entity/status/statuses/Cursed.d.ts +13 -0
- package/definitions/game/game/inspection/infoProviders/doodad/StillWater.d.ts +1 -0
- package/definitions/game/game/inspection/inspections/StatusInspection.d.ts +5 -2
- package/definitions/game/game/island/Island.d.ts +5 -1
- package/definitions/game/game/milestones/IMilestone.d.ts +1 -1
- package/definitions/game/game/options/modifiers/milestone/modifiers/Exsanguinated.d.ts +1 -1
- package/definitions/game/game/temperature/TemperatureManager.d.ts +3 -0
- package/definitions/game/game/time/ITimeManager.d.ts +1 -0
- package/definitions/game/game/time/TimeManager.d.ts +4 -4
- package/definitions/game/language/Dictionary.d.ts +110 -108
- package/definitions/game/language/DictionaryMap.d.ts +221 -217
- package/definitions/game/language/dictionary/Message.d.ts +563 -555
- package/definitions/game/language/dictionary/Misc.d.ts +4 -0
- package/definitions/game/language/dictionary/UiTranslation.d.ts +665 -664
- package/definitions/game/language/english/game/CurseEventGroups.d.ts +13 -0
- package/definitions/game/language/english/game/CurseEvents.d.ts +13 -0
- package/definitions/game/language/english/ui/CurseComponents.d.ts +1 -1
- package/definitions/game/resource/IResourceLoader.d.ts +44 -42
- package/definitions/game/ui/screen/screens/game/static/stats/component/StatusContext.d.ts +2 -1
- package/definitions/game/ui/screen/screens/game/static/stats/component/StatusIcon.d.ts +2 -1
- package/definitions/game/ui/screen/screens/game/static/stats/component/Statuses.d.ts +2 -1
- package/definitions/{utilities/class → game/utilities}/Inject.d.ts +3 -2
- package/definitions/utilities/event/EventBusManager.d.ts +4 -3
- package/definitions/utilities/math/Math2.d.ts +1 -0
- package/definitions/utilities/object/Objects.d.ts +1 -0
- package/definitions/utilities/random/Random.d.ts +6 -0
- package/package.json +1 -1
- package/definitions/game/game/deity/Curse.d.ts +0 -40
|
@@ -31,7 +31,7 @@ import type { ILiquidGather, IRangedResolvedDirection } from "@wayward/game/game
|
|
|
31
31
|
import type { IRequirementInfo } from "@wayward/game/game/item/IItemManager";
|
|
32
32
|
import ItemManager from "@wayward/game/game/item/ItemManager";
|
|
33
33
|
import type DrawnMap from "@wayward/game/game/mapping/DrawnMap";
|
|
34
|
-
import type { IGameOptions } from "@wayward/game/game/options/IGameOptions";
|
|
34
|
+
import type { IGameOptions, IGameOptionsPartial } from "@wayward/game/game/options/IGameOptions";
|
|
35
35
|
import type { IslandModifiersCollection } from "@wayward/game/game/options/modifiers/island/IslandModifiers";
|
|
36
36
|
import type { IReferenceable } from "@wayward/game/game/reference/IReferenceManager";
|
|
37
37
|
import TemperatureManager from "@wayward/game/game/temperature/TemperatureManager";
|
|
@@ -53,6 +53,7 @@ import EventEmitter from "@wayward/utilities/event/EventEmitter";
|
|
|
53
53
|
import type { Random } from "@wayward/utilities/random/Random";
|
|
54
54
|
import type { LegacySeededGenerator } from "@wayward/utilities/random/generators/LegacySeededGenerator";
|
|
55
55
|
import type { PCGSeededGenerator } from "@wayward/utilities/random/generators/PCGSeededGenerator";
|
|
56
|
+
import Curse from "@wayward/game/game/curse/Curse";
|
|
56
57
|
export interface IIslandDetails {
|
|
57
58
|
seed: number;
|
|
58
59
|
biomeType: BiomeTypes;
|
|
@@ -96,6 +97,7 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
|
|
|
96
97
|
biomeOptions?: unknown;
|
|
97
98
|
biomeType: BiomeTypes;
|
|
98
99
|
contaminatedWater: IWaterContamination[];
|
|
100
|
+
curse: Curse;
|
|
99
101
|
lastPlayerGameTimeTicks?: number;
|
|
100
102
|
loadCount: number;
|
|
101
103
|
name?: string;
|
|
@@ -172,6 +174,8 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
|
|
|
172
174
|
*/
|
|
173
175
|
private deactivate;
|
|
174
176
|
private gameOptionsCached?;
|
|
177
|
+
/** A game options modifier that always returns an empty array by default, to be injected into */
|
|
178
|
+
getAdditionalGameOptionsSources(): IGameOptionsPartial[];
|
|
175
179
|
getGameOptions(): ImmutableObject<IGameOptions>;
|
|
176
180
|
clearGameOptionsCache(): void;
|
|
177
181
|
rename(human: Human, newName: string): void;
|
|
@@ -70,7 +70,7 @@ export declare enum Milestone {
|
|
|
70
70
|
Runekeeper = 58,
|
|
71
71
|
InternalDeityDiscovery = 59,
|
|
72
72
|
InternalMerchantsDiscovery = 60,
|
|
73
|
-
|
|
73
|
+
InternalCurseSystemDiscovery = 61,
|
|
74
74
|
Invoker = 62,
|
|
75
75
|
InternalDeityInvoked = 63,
|
|
76
76
|
InternalInsulationDiscovery = 64,
|
|
@@ -24,7 +24,7 @@ import type { IGameOptionsPartial, IGameOptionsStatus } from "@wayward/game/game
|
|
|
24
24
|
import MilestoneModifier, { MilestoneModifierInstance } from "@wayward/game/game/options/modifiers/milestone/MilestoneModifier";
|
|
25
25
|
import { MilestoneModifierGroup } from "@wayward/game/game/options/modifiers/milestone/IMilestoneModifier";
|
|
26
26
|
import type { TranslationArg } from "@wayward/game/language/ITranslation";
|
|
27
|
-
import type { IInjectionApi } from "@wayward/utilities/
|
|
27
|
+
import type { IInjectionApi } from "@wayward/game/utilities/Inject";
|
|
28
28
|
export default class Exsanguinated extends MilestoneModifier {
|
|
29
29
|
getOptions(): IGameOptionsPartial;
|
|
30
30
|
getTranslationArgs(): TranslationArg[] | undefined;
|
|
@@ -32,6 +32,7 @@ import type { IPreSerializeCallback } from "@wayward/game/save/serializer/ISeria
|
|
|
32
32
|
import type { IVector3 } from "@wayward/game/utilities/math/IVector";
|
|
33
33
|
import { IRange } from "@wayward/utilities/math/Range";
|
|
34
34
|
import Vector2 from "@wayward/game/utilities/math/Vector2";
|
|
35
|
+
import type { BiomeType } from "@wayward/game/game/biome/IBiome";
|
|
35
36
|
export declare const TEMPERATURE_DIFFUSION_RATE: number;
|
|
36
37
|
export declare const TEMPERATURE_BOUNDARY_MIN_VEC2: Vector2;
|
|
37
38
|
export declare const TEMPERATURE_INVALID = 255;
|
|
@@ -100,6 +101,8 @@ export default class TemperatureManager extends EventEmitter.Host<ITemperatureMa
|
|
|
100
101
|
getContainerItemsTemperature(container: IContainer, containerHash?: string): number | undefined;
|
|
101
102
|
private getContainerBaseTemperature;
|
|
102
103
|
private getContainerInsulation;
|
|
104
|
+
/** A global temperature modifier that always returns 0 by default, to be injected into */
|
|
105
|
+
getTempModifier(biome: BiomeType, layer: WorldZ): number;
|
|
103
106
|
/**
|
|
104
107
|
* Returns the current overall temperature for the given tile.
|
|
105
108
|
*/
|
|
@@ -8,7 +8,7 @@
|
|
|
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 { PartOfDayGranular } from "@wayward/game/game/time/ITimeManager";
|
|
11
|
+
import type { PartOfDayGranular, TimeString } from "@wayward/game/game/time/ITimeManager";
|
|
12
12
|
import { DayQuarter, TimeFormat } from "@wayward/game/game/time/ITimeManager";
|
|
13
13
|
import type TranslationImpl from "@wayward/game/language/impl/TranslationImpl";
|
|
14
14
|
export default class TimeManager {
|
|
@@ -66,13 +66,13 @@ export default class TimeManager {
|
|
|
66
66
|
* @param checkTime A formatted time.
|
|
67
67
|
* @param time The time to check, defaulting to the current time.
|
|
68
68
|
*/
|
|
69
|
-
isPast(checkTime:
|
|
69
|
+
isPast(checkTime: TimeString, time?: number): boolean | undefined;
|
|
70
70
|
/**
|
|
71
71
|
* Checks if the given time is before a formatted time.
|
|
72
72
|
* @param checkTime A formatted time.
|
|
73
73
|
* @param time The time to check, defaulting to the current time.
|
|
74
74
|
*/
|
|
75
|
-
isBefore(checkTime:
|
|
75
|
+
isBefore(checkTime: TimeString, time?: number): boolean | undefined;
|
|
76
76
|
/**
|
|
77
77
|
* Returns if the given time is between two formatted times.
|
|
78
78
|
* @param checkPast A formatted time to check if the given time is after.
|
|
@@ -81,7 +81,7 @@ export default class TimeManager {
|
|
|
81
81
|
*
|
|
82
82
|
* Internally calls `isPast` and `isBefore`
|
|
83
83
|
*/
|
|
84
|
-
isBetween(checkPast:
|
|
84
|
+
isBetween(checkPast: TimeString, checkBefore: TimeString, currentTime?: number): boolean | undefined;
|
|
85
85
|
/**
|
|
86
86
|
* Returns the hours and minutes of the given time.
|
|
87
87
|
* @param time The time to use, defaulting to the current time.
|
|
@@ -33,113 +33,115 @@ declare enum Dictionary {
|
|
|
33
33
|
CraftingSort = 21,
|
|
34
34
|
Creature = 22,
|
|
35
35
|
CurseComponent = 23,
|
|
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
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
36
|
+
CurseEvent = 24,
|
|
37
|
+
CurseEventGroup = 25,
|
|
38
|
+
DamageType = 26,
|
|
39
|
+
Deity = 27,
|
|
40
|
+
DeitySymbol = 28,
|
|
41
|
+
Dialog = 29,
|
|
42
|
+
Direction = 30,
|
|
43
|
+
DisplayLevel = 31,
|
|
44
|
+
DoctorCure = 32,
|
|
45
|
+
DoctorMethod = 33,
|
|
46
|
+
Doodad = 34,
|
|
47
|
+
DoodadExtra = 35,
|
|
48
|
+
DoodadGroup = 36,
|
|
49
|
+
DrawnMapTheme = 37,
|
|
50
|
+
DurabilityLevel = 38,
|
|
51
|
+
EquipEffect = 39,
|
|
52
|
+
EquipSlot = 40,
|
|
53
|
+
ExhaustionLevel = 41,
|
|
54
|
+
FireStage = 42,
|
|
55
|
+
FontStyle = 43,
|
|
56
|
+
GameEndMessage = 44,
|
|
57
|
+
GameMode = 45,
|
|
58
|
+
Growth = 46,
|
|
59
|
+
GrowthFungus = 47,
|
|
60
|
+
Health = 48,
|
|
61
|
+
HealthAccuracy = 49,
|
|
62
|
+
HelpArticle = 50,
|
|
63
|
+
HighscoreSort = 51,
|
|
64
|
+
HumanName = 52,
|
|
65
|
+
HungerLevel = 53,
|
|
66
|
+
Input = 54,
|
|
67
|
+
InspectType = 55,
|
|
68
|
+
InterruptChoice = 56,
|
|
69
|
+
IslandModifier = 57,
|
|
70
|
+
IslandName = 58,
|
|
71
|
+
IslandNameBiomeDescriptor = 59,
|
|
72
|
+
IslandNameBiomeNoun = 60,
|
|
73
|
+
IslandNameModifierDescriptor = 61,
|
|
74
|
+
IslandNameOverrunWithCreatureDescriptor = 62,
|
|
75
|
+
Item = 63,
|
|
76
|
+
ItemAffixPostReformat = 64,
|
|
77
|
+
ItemAffixPreReformat = 65,
|
|
78
|
+
ItemExtra = 66,
|
|
79
|
+
ItemGroup = 67,
|
|
80
|
+
JoinServerRetryReason = 68,
|
|
81
|
+
Label = 69,
|
|
82
|
+
Level = 70,
|
|
83
|
+
LighthouseName = 71,
|
|
84
|
+
Loading = 72,
|
|
85
|
+
Macro = 73,
|
|
86
|
+
MagicalPropertyAffix = 74,
|
|
87
|
+
MagicalPropertyType = 75,
|
|
88
|
+
MagicalSubPropertyAffix = 76,
|
|
89
|
+
MapQuality = 77,
|
|
90
|
+
MenuBarButton = 78,
|
|
91
|
+
Message = 79,
|
|
92
|
+
MessagesDefaultFilter = 80,
|
|
93
|
+
MessagesTimestampMode = 81,
|
|
94
|
+
Milestone = 82,
|
|
95
|
+
MilestoneModifierGroup = 83,
|
|
96
|
+
MilestoneSort = 84,
|
|
97
|
+
Misc = 85,
|
|
98
|
+
ModLoadError = 86,
|
|
99
|
+
ModLoadFailureReason = 87,
|
|
100
|
+
ModProvide = 88,
|
|
101
|
+
ModSort = 89,
|
|
102
|
+
ModType = 90,
|
|
103
|
+
MultiplayerCompatibility = 91,
|
|
104
|
+
MultiplayerDisconnectReason = 92,
|
|
105
|
+
MusicPlaylist = 93,
|
|
106
|
+
Note = 94,
|
|
107
|
+
Npc = 95,
|
|
108
|
+
Number = 96,
|
|
109
|
+
PartOfDay = 97,
|
|
110
|
+
Prompt = 98,
|
|
111
|
+
QuadrantComponent = 99,
|
|
112
|
+
QuadrantComponentContextMenuAction = 100,
|
|
113
|
+
Quality = 101,
|
|
114
|
+
Quest = 102,
|
|
115
|
+
QuestRequirement = 103,
|
|
116
|
+
RecipeLevel = 104,
|
|
117
|
+
Region = 105,
|
|
118
|
+
Riddle = 106,
|
|
119
|
+
RunekeeperDomain = 107,
|
|
120
|
+
RunekeeperDomainEvent = 108,
|
|
121
|
+
SaveImportErrorReason = 109,
|
|
122
|
+
SaveSlotSort = 110,
|
|
123
|
+
Skill = 111,
|
|
124
|
+
SkillsSort = 112,
|
|
125
|
+
Source = 113,
|
|
126
|
+
Stat = 114,
|
|
127
|
+
Status = 115,
|
|
128
|
+
StatusEffect = 116,
|
|
129
|
+
StatusThreatLevel = 117,
|
|
130
|
+
SteamInputKeyboardPosition = 118,
|
|
131
|
+
TeamMemberResponsibility = 119,
|
|
132
|
+
TemperatureType = 120,
|
|
133
|
+
Term = 121,
|
|
134
|
+
Terrain = 122,
|
|
135
|
+
ThirstLevel = 123,
|
|
136
|
+
TileEvent = 124,
|
|
137
|
+
TooltipVisibilityOption = 125,
|
|
138
|
+
Ui = 126,
|
|
139
|
+
UiQuadrant = 127,
|
|
140
|
+
UnableToJoinReason = 128,
|
|
141
|
+
UnlockedRecipesStrategy = 129,
|
|
142
|
+
UsableActionType = 130,
|
|
143
|
+
Website = 131,
|
|
144
|
+
WeightStatus = 132,
|
|
145
|
+
WorldLayer = 133
|
|
144
146
|
}
|
|
145
147
|
export default Dictionary;
|