@wayward/types 2.14.0-beta.dev.20231229.1 → 2.14.0-beta.dev.20231230.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.
@@ -294,7 +294,8 @@ export default abstract class Human<TypeType extends number = number, EntityRefe
294
294
  unequipAll(displayMessage?: boolean, isArmorStandSwap?: boolean): IEquip[];
295
295
  getJumpTile(): Tile | undefined;
296
296
  hasDelay(): boolean;
297
- addDelay(delay: number, replace?: boolean, addStaminaDelay?: boolean): void;
297
+ addDelay(delay: number, replace?: boolean, addStaminaDelay?: boolean, cap?: number): void;
298
+ ensureDelay(delay: number): void;
298
299
  /**
299
300
  * Gets a stamina penalty delay to be used for slowed actions and movement.
300
301
  * @param staminaToStartAddingDelayAt Stat value where delays start getting added from.
@@ -173,7 +173,7 @@ export declare const actionDescriptionsSlow: {
173
173
  }, [import("../../../utilities/math/Direction").Direction.None | import("../../../utilities/math/Direction").Direction.East | import("../../../utilities/math/Direction").Direction.North | import("../../../utilities/math/Direction").Direction.West | import("../../../utilities/math/Direction").Direction.South, (number | undefined)?, (boolean | undefined)?]>;
174
174
  105: import("./Action").Action<[import("@wayward/game/game/entity/action/IAction").ActionArgument.Object], import("../Human").default<number, import("../../reference/IReferenceManager").ReferenceType.NPC | import("../../reference/IReferenceManager").ReferenceType.Player>, void, import("@wayward/game/game/entity/action/IAction").IActionUsable, [any?]>;
175
175
  89: import("./Action").Action<[import("@wayward/game/game/entity/action/IAction").ActionArgument.Container, [import("@wayward/game/game/entity/action/IAction").ActionArgument.UnsignedInteger32NumberArray, import("@wayward/game/game/entity/action/actions/UpdateItemOrder").ActionArgumentItemSort]], import("../Human").default<number, import("../../reference/IReferenceManager").ReferenceType.NPC | import("../../reference/IReferenceManager").ReferenceType.Player>, void, import("@wayward/game/game/entity/action/IAction").IActionUsable, [import("../../item/IItem").IContainer, number[] | import("../../item/IItemManager").IContainerSort]>;
176
- 104: import("./Action").Action<[import("@wayward/game/game/entity/action/IAction").ActionArgument.String, import("@wayward/game/game/entity/action/IAction").ActionArgument.Object], import("../Human").default<number, import("../../reference/IReferenceManager").ReferenceType.NPC | import("../../reference/IReferenceManager").ReferenceType.Player>, void, import("@wayward/game/game/entity/action/IAction").IActionUsable, [string, any?]>;
176
+ 104: import("./Action").Action<[import("./argument/ActionArgumentObjectKey").default<import("../../../save/data/ISaveDataGlobal").IOptions>, import("@wayward/game/game/entity/action/IAction").ActionArgument.Object], import("../Human").default<number, import("../../reference/IReferenceManager").ReferenceType.NPC | import("../../reference/IReferenceManager").ReferenceType.Player>, void, import("@wayward/game/game/entity/action/IAction").IActionUsable, [keyof import("../../../save/data/ISaveDataGlobal").IOptions, any?]>;
177
177
  106: import("./Action").Action<[[import("@wayward/game/game/entity/action/IAction").ActionArgument.Vector2Array, import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined], [import("@wayward/game/game/entity/action/IAction").ActionArgument.Boolean, import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number, import("../../reference/IReferenceManager").ReferenceType.NPC | import("../../reference/IReferenceManager").ReferenceType.Player>, void, import("@wayward/game/game/entity/action/IAction").IActionUsable, [(import("../../../utilities/math/IVector").IVector2[] | undefined)?, (boolean | undefined)?]>;
178
178
  91: import("./Action").Action<[import("@wayward/game/game/entity/action/IAction").ActionArgument.ItemNearby, [import("@wayward/game/game/entity/action/IAction").ActionArgument.ItemNearby, import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number, import("../../reference/IReferenceManager").ReferenceType.NPC | import("../../reference/IReferenceManager").ReferenceType.Player>, void, import("@wayward/game/game/entity/action/actions/Upgrade").IUpgradeCanUse, [import("../../item/Item").default, (import("../../item/Item").default | undefined)?]>;
179
179
  };
@@ -17,6 +17,7 @@ import type { EntityType } from "@wayward/game/game/entity/IEntity";
17
17
  import type { SkillType } from "@wayward/game/game/entity/IHuman";
18
18
  import type { ActionArgumentCustom } from "@wayward/game/game/entity/action/argument/ActionArgumentCustom";
19
19
  import type ActionArgumentEnum from "@wayward/game/game/entity/action/argument/ActionArgumentEnum";
20
+ import type ActionArgumentObjectKey from "@wayward/game/game/entity/action/argument/ActionArgumentObjectKey";
20
21
  import type Creature from "@wayward/game/game/entity/creature/Creature";
21
22
  import type Corpse from "@wayward/game/game/entity/creature/corpse/Corpse";
22
23
  import type NPC from "@wayward/game/game/entity/npc/NPC";
@@ -447,6 +448,13 @@ export declare namespace ActionArgument {
447
448
  namespace ENUM {
448
449
  let ActionArgumentEnumClass: typeof ActionArgumentEnum;
449
450
  }
451
+ /**
452
+ * An action argument which is an entry from the given key in an object Performs validation when an object is passed
453
+ */
454
+ function OBJECT_KEY<T extends Record<string, any>>(object?: T): ActionArgumentObjectKey<T>;
455
+ namespace OBJECT {
456
+ let ActionArgumentObjectKeyClass: typeof ActionArgumentObjectKey;
457
+ }
450
458
  /**
451
459
  * An action argument which is bit flags from the given enum. Performs validation.
452
460
  */
@@ -10,5 +10,5 @@
10
10
  */
11
11
  import { Action } from "@wayward/game/game/entity/action/Action";
12
12
  import { ActionArgument } from "@wayward/game/game/entity/action/IAction";
13
- declare const _default: Action<[ActionArgument.String, ActionArgument.Object], import("../../Human").default<number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player>, void, import("@wayward/game/game/entity/action/IAction").IActionUsable, [string, any?]>;
13
+ declare const _default: Action<[import("../argument/ActionArgumentObjectKey").default<import("../../../../save/data/ISaveDataGlobal").IOptions>, ActionArgument.Object], import("../../Human").default<number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player>, void, import("@wayward/game/game/entity/action/IAction").IActionUsable, [keyof import("../../../../save/data/ISaveDataGlobal").IOptions, any?]>;
14
14
  export default _default;
@@ -0,0 +1,23 @@
1
+ /*!
2
+ * Copyright 2011-2023 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 Entity from "@wayward/game/game/entity/Entity";
12
+ import { ActionArgumentCustom } from "@wayward/game/game/entity/action/argument/ActionArgumentCustom";
13
+ /**
14
+ * An action argument which is an entry from the given key in an object Performs validation when an object is passed
15
+ */
16
+ export default class ActionArgumentObjectKey<T extends Record<string, any>> extends ActionArgumentCustom<keyof T> {
17
+ private readonly object?;
18
+ constructor(object?: T | undefined);
19
+ validate(executor: Entity | undefined, value: unknown): value is keyof T;
20
+ read(): keyof T;
21
+ write(executor: Entity | undefined, value: keyof T): void;
22
+ static applyHelperToActionArgument(): void;
23
+ }
@@ -98,210 +98,210 @@ declare enum Message {
98
98
  ActionPickUpExcrementNoExcrement = 86,
99
99
  ActionPickUpItemNoItem = 87,
100
100
  ActionPickUpNoPickUp = 88,
101
- ActionRefineNoDurability = 89,
102
- ActionReleaseNoTamedCreature = 90,
103
- ActionRenameIsland = 91,
104
- ActionRepairMaxDurabilityTooLow = 92,
105
- ActionReshape = 93,
106
- ActionReshapeFailed = 94,
107
- ActionReshapeNotPossibleBonus = 95,
108
- ActionReshapeReshaped = 96,
109
- ActionSacrifice = 97,
110
- ActionSacrificeAlreadyDoneToday = 98,
111
- ActionSailToCivilizationNotInsideBoat = 99,
112
- ActionSailToIsland = 100,
113
- ActionSailToIslandArrived = 101,
114
- ActionSailToIslandCannotUseCannotReachEdge = 102,
115
- ActionSailToIslandCannotUseCannotReachPort = 103,
116
- ActionSailToIslandCannotUseGhost = 104,
117
- ActionSailToIslandCannotUseInvalidDestination = 105,
118
- ActionSailToIslandCannotUseNoDestination = 106,
119
- ActionSailToIslandCannotUseNotEnoughStamina = 107,
120
- ActionSailToIslandCannotUseNotEnoughSwimmingSkill = 108,
121
- ActionSailToIslandCannotUseTravellingIsDisallowedInTheseLands = 109,
122
- ActionSailToIslandPlayerArriving = 110,
123
- ActionSailToIslandPlayerDeparting = 111,
124
- ActionSetCreatureAiAlreadyCommanded = 112,
125
- ActionSetCreatureAiCannotCommand = 113,
126
- ActionSetCreatureAiNotEnoughSkill = 114,
127
- ActionSetCreatureAiNotEnoughTames = 115,
128
- ActionShipToIslandNoDestination = 116,
129
- ActionSwapEquipmentCannotUseNoEquipmentToSwap = 117,
130
- ActionTameCreatureTamed = 118,
131
- ActionTameNoCreature = 119,
132
- ActionTestDepthNothingToTest = 120,
133
- ActionTestDepthWell = 121,
134
- ActionToggleContainerCannotUseAlreadyClosed = 122,
135
- ActionToggleContainerCannotUseAlreadyOpen = 123,
136
- ActionToggleContainerCannotUseNoContainer = 124,
137
- ActionToggleContainerCannotUseNoContainerToClose = 125,
138
- ActionToggleContainerCannotUseNoContainerToOpen = 126,
139
- ActionToggleContainerCannotUseNotAccessible = 127,
140
- ActionToggleContainerCannotUseUnknownContainer = 128,
141
- ActionToggleDoorNoDoor = 129,
142
- ActionToggleHitchAlreadyHitched = 130,
143
- ActionToggleHitchAlreadyUnhitched = 131,
144
- ActionToggleHitchNoCreature = 132,
145
- ActionToggleHitchNoHitch = 133,
146
- ActionToggleTilledAlreadyPacked = 134,
147
- ActionToggleTilledAlreadyTilled = 135,
148
- ActionTradeCannotUseExceedsCarryWeight = 136,
149
- ActionTradeCannotUseNotEnoughCredit = 137,
150
- ActionTradeCannotUseNothingToTrade = 138,
151
- ActionTradeCannotUseTradedTooMuch = 139,
152
- ActionTradeCreditChange = 140,
153
- ActionTradeCreditChangeDecrease = 141,
154
- ActionTradeCreditChangeIncrease = 142,
155
- ActionTradeDialog1 = 143,
156
- ActionTradeDialogue1 = 144,
157
- ActionTradeIndicateUntradable = 145,
158
- ActionTradeMerchantItems = 146,
159
- ActionTradeYourItems = 147,
160
- ActionUncageCannotUncageHere = 148,
161
- ActionUpgrade = 149,
162
- ActionUpgradeFailed = 150,
163
- ActionUpgradeNotMagical = 151,
164
- ActionUpgradeNotPossible = 152,
165
- ActionUpgradeUpgraded = 153,
166
- ActionUseItemWeaponNeeded = 154,
167
- AddedFuelToFire = 155,
168
- AddedFuelToTorch = 156,
169
- AlignmentUpdateCursed = 157,
170
- AlignmentUpdateEvil = 158,
171
- AlignmentUpdateGood = 159,
172
- AlignmentUpdateHighPiety = 160,
173
- AlignmentUpdateLowPiety = 161,
174
- AlignmentUpdateNoPiety = 162,
175
- AlignmentUpdateSunset = 163,
176
- AllEquipmentUnEquipped = 164,
177
- AlreadyDesalinatedWaterInStill = 165,
178
- AlreadyFullyRefined = 166,
179
- AlreadyFullyRepaired = 167,
180
- AlreadyPreserved = 168,
181
- Alter = 169,
182
- AnotherIsland = 170,
183
- AnUnknownItem = 171,
184
- APileOfItems = 172,
185
- AppearedNotEffectiveForGathering = 173,
186
- ArmorAppeared = 174,
187
- ArmorProtectedFromInjuryAgainst = 175,
188
- AttemptToSoothBurnInWater = 176,
189
- AttemptToSoothFrostbiteWithFire = 177,
190
- AttemptToSoothFrostbiteWithFireTooHot = 178,
191
- AttemptToTill = 179,
192
- BadlyBurnedLostHealth = 180,
193
- BarteringSkillsProvided = 181,
194
- BeenPoisoned = 182,
195
- BeginSleeping = 183,
196
- BeginUsingVehicle = 184,
197
- BleedingHasStopped = 185,
198
- BleedingProfusely = 186,
199
- BleedingToDeathLostHealth = 187,
200
- BookBlank = 188,
201
- BookContains = 189,
202
- BookCrumbles = 190,
203
- BookDiagrams = 191,
204
- BookEmpty = 192,
205
- BookNothing = 193,
206
- BookOpen = 194,
207
- BookScribbles = 195,
208
- BothEffectiveIneffective = 196,
209
- BrokeIntoPieces = 197,
210
- BrokenOnImpact = 198,
211
- BrokenWhileFiring = 199,
212
- Build = 200,
213
- Burned = 201,
214
- CannotAddAnyMoreFuel = 202,
215
- CannotBeCrafted = 203,
216
- CannotBePerformedOverWater = 204,
217
- CannotBePlacedHere = 205,
218
- CannotBePreserved = 206,
219
- CannotBeRefined = 207,
220
- CannotBeRefinedReinforcementNeeded = 208,
221
- CannotBeReinforced = 209,
222
- CannotBeRepaired = 210,
223
- CannotBuildHere = 211,
224
- CannotDigWithHands = 212,
225
- CannotDoThatHere = 213,
226
- CannotEquipThatThere = 214,
227
- CannotFishFor = 215,
228
- CannotHere = 216,
229
- CannotInWater = 217,
230
- CannotLeave = 218,
231
- CannotNoTreasure = 219,
232
- CannotPickUpLockedContainer = 220,
233
- CannotPickUpWhileLit = 221,
234
- CannotPlaceContainerInItself = 222,
235
- CannotPlaceHere = 223,
236
- CannotPlaceThatFromHere = 224,
237
- CannotPlaceThatHere = 225,
238
- CannotPlaceThatOverWater = 226,
239
- CannotPlantHereTilled = 227,
240
- CannotRepairWhileLit = 228,
241
- CannotRestHere = 229,
242
- CannotShipNoItems = 230,
243
- CannotShipNoPath = 231,
244
- CannotSleepHere = 232,
245
- CannotStartFireHere = 233,
246
- CannotToTellTime = 234,
247
- CannotUseCommand = 235,
248
- CannotWhenProtected = 236,
249
- CannotWhenProtectedDangerousAction = 237,
250
- CannotWhenProtectedDurability = 238,
251
- CarryingTooMuchWeight = 239,
252
- CarvedUpCorpse = 240,
253
- Carving = 241,
254
- CastYourLine = 242,
255
- CaughtFish = 243,
256
- ChatBanCommand = 244,
257
- ChatBannedCommand = 245,
258
- ChatCommandsCommand = 246,
259
- ChatCommandsCommandCommand = 247,
260
- ChatPingCommand = 248,
261
- ChatPlayerMessage = 249,
262
- ChatPlayersCommand = 250,
263
- ChatServerMessage = 251,
264
- ChatUnbanCommand = 252,
265
- ChatUnknownCommand = 253,
266
- Chop = 254,
267
- Chopping = 255,
268
- ClearedBlood = 256,
269
- Clockwise = 257,
270
- CloseToBeingDestroyed = 258,
271
- CommandAttack = 259,
272
- CommandDefend = 260,
273
- CommandFollowClose = 261,
274
- CommandFollowFar = 262,
275
- CommandHeel = 263,
276
- CommandStay = 264,
277
- Container = 265,
278
- CopiedMap = 266,
279
- CorpseOf = 267,//#used via other translations
280
- CorpseOfNamed = 268,//#used via other translations
281
- Counterclockwise = 269,
282
- Craft = 270,
283
- Crafted = 271,
284
- Crafts = 272,
285
- CreatureAngered = 273,
286
- CreatureAppears = 274,
287
- CreatureAppeased = 275,
288
- CreatureExcrement = 276,
289
- CreatureHappinessHigh = 277,
290
- CreatureHappinessLow = 278,
291
- CreatureHappinessLowest = 279,
292
- CreatureHappinessNormal = 280,
293
- CreatureIdolAttractedCreature = 281,
294
- CreatureRefusesToBeTamed = 282,
295
- CreatureRefusesYou = 283,
296
- CreatureUntamed = 284,
297
- CuredYourPoison = 285,
298
- Cut = 286,
299
- CutHasHealed = 287,
300
- CutLostHealth = 288,
301
- CutWasBandaged = 289,
302
- DamageAppeared = 290,
303
- DamagedByPouring = 291,
304
- ActionPourNoEffect = 292,
101
+ ActionPourNoEffect = 89,
102
+ ActionRefineNoDurability = 90,
103
+ ActionReleaseNoTamedCreature = 91,
104
+ ActionRenameIsland = 92,
105
+ ActionRepairMaxDurabilityTooLow = 93,
106
+ ActionReshape = 94,
107
+ ActionReshapeFailed = 95,
108
+ ActionReshapeNotPossibleBonus = 96,
109
+ ActionReshapeReshaped = 97,
110
+ ActionSacrifice = 98,
111
+ ActionSacrificeAlreadyDoneToday = 99,
112
+ ActionSailToCivilizationNotInsideBoat = 100,
113
+ ActionSailToIsland = 101,
114
+ ActionSailToIslandArrived = 102,
115
+ ActionSailToIslandCannotUseCannotReachEdge = 103,
116
+ ActionSailToIslandCannotUseCannotReachPort = 104,
117
+ ActionSailToIslandCannotUseGhost = 105,
118
+ ActionSailToIslandCannotUseInvalidDestination = 106,
119
+ ActionSailToIslandCannotUseNoDestination = 107,
120
+ ActionSailToIslandCannotUseNotEnoughStamina = 108,
121
+ ActionSailToIslandCannotUseNotEnoughSwimmingSkill = 109,
122
+ ActionSailToIslandCannotUseTravellingIsDisallowedInTheseLands = 110,
123
+ ActionSailToIslandPlayerArriving = 111,
124
+ ActionSailToIslandPlayerDeparting = 112,
125
+ ActionSetCreatureAiAlreadyCommanded = 113,
126
+ ActionSetCreatureAiCannotCommand = 114,
127
+ ActionSetCreatureAiNotEnoughSkill = 115,
128
+ ActionSetCreatureAiNotEnoughTames = 116,
129
+ ActionShipToIslandNoDestination = 117,
130
+ ActionSwapEquipmentCannotUseNoEquipmentToSwap = 118,
131
+ ActionTameCreatureTamed = 119,
132
+ ActionTameNoCreature = 120,
133
+ ActionTestDepthNothingToTest = 121,
134
+ ActionTestDepthWell = 122,
135
+ ActionToggleContainerCannotUseAlreadyClosed = 123,
136
+ ActionToggleContainerCannotUseAlreadyOpen = 124,
137
+ ActionToggleContainerCannotUseNoContainer = 125,
138
+ ActionToggleContainerCannotUseNoContainerToClose = 126,
139
+ ActionToggleContainerCannotUseNoContainerToOpen = 127,
140
+ ActionToggleContainerCannotUseNotAccessible = 128,
141
+ ActionToggleContainerCannotUseUnknownContainer = 129,
142
+ ActionToggleDoorNoDoor = 130,
143
+ ActionToggleHitchAlreadyHitched = 131,
144
+ ActionToggleHitchAlreadyUnhitched = 132,
145
+ ActionToggleHitchNoCreature = 133,
146
+ ActionToggleHitchNoHitch = 134,
147
+ ActionToggleTilledAlreadyPacked = 135,
148
+ ActionToggleTilledAlreadyTilled = 136,
149
+ ActionTradeCannotUseExceedsCarryWeight = 137,
150
+ ActionTradeCannotUseNotEnoughCredit = 138,
151
+ ActionTradeCannotUseNothingToTrade = 139,
152
+ ActionTradeCannotUseTradedTooMuch = 140,
153
+ ActionTradeCreditChange = 141,
154
+ ActionTradeCreditChangeDecrease = 142,
155
+ ActionTradeCreditChangeIncrease = 143,
156
+ ActionTradeDialog1 = 144,
157
+ ActionTradeDialogue1 = 145,
158
+ ActionTradeIndicateUntradable = 146,
159
+ ActionTradeMerchantItems = 147,
160
+ ActionTradeYourItems = 148,
161
+ ActionUncageCannotUncageHere = 149,
162
+ ActionUpgrade = 150,
163
+ ActionUpgradeFailed = 151,
164
+ ActionUpgradeNotMagical = 152,
165
+ ActionUpgradeNotPossible = 153,
166
+ ActionUpgradeUpgraded = 154,
167
+ ActionUseItemWeaponNeeded = 155,
168
+ AddedFuelToFire = 156,
169
+ AddedFuelToTorch = 157,
170
+ AlignmentUpdateCursed = 158,
171
+ AlignmentUpdateEvil = 159,
172
+ AlignmentUpdateGood = 160,
173
+ AlignmentUpdateHighPiety = 161,
174
+ AlignmentUpdateLowPiety = 162,
175
+ AlignmentUpdateNoPiety = 163,
176
+ AlignmentUpdateSunset = 164,
177
+ AllEquipmentUnEquipped = 165,
178
+ AlreadyDesalinatedWaterInStill = 166,
179
+ AlreadyFullyRefined = 167,
180
+ AlreadyFullyRepaired = 168,
181
+ AlreadyPreserved = 169,
182
+ Alter = 170,
183
+ AnotherIsland = 171,
184
+ AnUnknownItem = 172,
185
+ APileOfItems = 173,
186
+ AppearedNotEffectiveForGathering = 174,
187
+ ArmorAppeared = 175,
188
+ ArmorProtectedFromInjuryAgainst = 176,
189
+ AttemptToSoothBurnInWater = 177,
190
+ AttemptToSoothFrostbiteWithFire = 178,
191
+ AttemptToSoothFrostbiteWithFireTooHot = 179,
192
+ AttemptToTill = 180,
193
+ BadlyBurnedLostHealth = 181,
194
+ BarteringSkillsProvided = 182,
195
+ BeenPoisoned = 183,
196
+ BeginSleeping = 184,
197
+ BeginUsingVehicle = 185,
198
+ BleedingHasStopped = 186,
199
+ BleedingProfusely = 187,
200
+ BleedingToDeathLostHealth = 188,
201
+ BookBlank = 189,
202
+ BookContains = 190,
203
+ BookCrumbles = 191,
204
+ BookDiagrams = 192,
205
+ BookEmpty = 193,
206
+ BookNothing = 194,
207
+ BookOpen = 195,
208
+ BookScribbles = 196,
209
+ BothEffectiveIneffective = 197,
210
+ BrokeIntoPieces = 198,
211
+ BrokenOnImpact = 199,
212
+ BrokenWhileFiring = 200,
213
+ Build = 201,
214
+ Burned = 202,
215
+ CannotAddAnyMoreFuel = 203,
216
+ CannotBeCrafted = 204,
217
+ CannotBePerformedOverWater = 205,
218
+ CannotBePlacedHere = 206,
219
+ CannotBePreserved = 207,
220
+ CannotBeRefined = 208,
221
+ CannotBeRefinedReinforcementNeeded = 209,
222
+ CannotBeReinforced = 210,
223
+ CannotBeRepaired = 211,
224
+ CannotBuildHere = 212,
225
+ CannotDigWithHands = 213,
226
+ CannotDoThatHere = 214,
227
+ CannotEquipThatThere = 215,
228
+ CannotFishFor = 216,
229
+ CannotHere = 217,
230
+ CannotInWater = 218,
231
+ CannotLeave = 219,
232
+ CannotNoTreasure = 220,
233
+ CannotPickUpLockedContainer = 221,
234
+ CannotPickUpWhileLit = 222,
235
+ CannotPlaceContainerInItself = 223,
236
+ CannotPlaceHere = 224,
237
+ CannotPlaceThatFromHere = 225,
238
+ CannotPlaceThatHere = 226,
239
+ CannotPlaceThatOverWater = 227,
240
+ CannotPlantHereTilled = 228,
241
+ CannotRepairWhileLit = 229,
242
+ CannotRestHere = 230,
243
+ CannotShipNoItems = 231,
244
+ CannotShipNoPath = 232,
245
+ CannotSleepHere = 233,
246
+ CannotStartFireHere = 234,
247
+ CannotToTellTime = 235,
248
+ CannotUseCommand = 236,
249
+ CannotWhenProtected = 237,
250
+ CannotWhenProtectedDangerousAction = 238,
251
+ CannotWhenProtectedDurability = 239,
252
+ CarryingTooMuchWeight = 240,
253
+ CarvedUpCorpse = 241,
254
+ Carving = 242,
255
+ CastYourLine = 243,
256
+ CaughtFish = 244,
257
+ ChatBanCommand = 245,
258
+ ChatBannedCommand = 246,
259
+ ChatCommandsCommand = 247,
260
+ ChatCommandsCommandCommand = 248,
261
+ ChatPingCommand = 249,
262
+ ChatPlayerMessage = 250,
263
+ ChatPlayersCommand = 251,
264
+ ChatServerMessage = 252,
265
+ ChatUnbanCommand = 253,
266
+ ChatUnknownCommand = 254,
267
+ Chop = 255,
268
+ Chopping = 256,
269
+ ClearedBlood = 257,
270
+ Clockwise = 258,
271
+ CloseToBeingDestroyed = 259,
272
+ CommandAttack = 260,
273
+ CommandDefend = 261,
274
+ CommandFollowClose = 262,
275
+ CommandFollowFar = 263,
276
+ CommandHeel = 264,
277
+ CommandStay = 265,
278
+ Container = 266,
279
+ CopiedMap = 267,
280
+ CorpseOf = 268,//#used via other translations
281
+ CorpseOfNamed = 269,//#used via other translations
282
+ Counterclockwise = 270,
283
+ Craft = 271,
284
+ Crafted = 272,
285
+ Crafts = 273,
286
+ CreatureAngered = 274,
287
+ CreatureAppears = 275,
288
+ CreatureAppeased = 276,
289
+ CreatureExcrement = 277,
290
+ CreatureHappinessHigh = 278,
291
+ CreatureHappinessLow = 279,
292
+ CreatureHappinessLowest = 280,
293
+ CreatureHappinessNormal = 281,
294
+ CreatureIdolAttractedCreature = 282,
295
+ CreatureRefusesToBeTamed = 283,
296
+ CreatureRefusesYou = 284,
297
+ CreatureUntamed = 285,
298
+ CuredYourPoison = 286,
299
+ Cut = 287,
300
+ CutHasHealed = 288,
301
+ CutLostHealth = 289,
302
+ CutWasBandaged = 290,
303
+ DamageAppeared = 291,
304
+ DamagedByPouring = 292,
305
305
  DangerousMove = 293,
306
306
  DangerousOpen = 294,
307
307
  DayQuarter1 = 295,
@@ -77,6 +77,7 @@ export default class ContainerBucketItemList extends Component implements ISorta
77
77
  get container(): IContainer | undefined;
78
78
  isStacked(type?: ItemType): boolean | undefined;
79
79
  getStackedItems(type?: ItemType): Item[];
80
+ getStackIndex(type?: ItemType): number | undefined;
80
81
  constructor(container?: IContainer);
81
82
  private readonly activeReasons;
82
83
  toggleActive(reason: string, active: boolean): void;
@@ -127,6 +128,8 @@ export default class ContainerBucketItemList extends Component implements ISorta
127
128
  protected onStack(manager: ItemManager, container: IContainer, type: ItemType): void;
128
129
  protected onUnstack(manager: ItemManager, container: IContainer, type: ItemType): void;
129
130
  protected onTick(): void;
131
+ private ensureStackRendered;
132
+ private ensureStackUnrendered;
130
133
  private itemIdsInElements?;
131
134
  private getItemIdsInElements;
132
135
  private itemListDiffers;
@@ -15,6 +15,7 @@ export default class ItemStylesheetHandler {
15
15
  private readonly backgroundDefinitions;
16
16
  readonly editor: SpriteEditor;
17
17
  private readonly stylesheets;
18
+ private loadCount;
18
19
  private abortController?;
19
20
  constructor();
20
21
  refreshStylesheets(): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wayward/types",
3
3
  "description": "TypeScript declarations for Wayward, used for modding.",
4
- "version": "2.14.0-beta.dev.20231229.1",
4
+ "version": "2.14.0-beta.dev.20231230.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",