@wayward/types 2.15.2-beta.dev.20251104.1 → 2.15.2-beta.dev.20251107.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/doodad/Doodad.d.ts +1 -0
- package/definitions/game/game/doodad/IDoodad.d.ts +3 -0
- package/definitions/game/game/item/Item.d.ts +6 -5
- package/definitions/game/game/magic/MagicalPropertyManager.d.ts +4 -4
- package/definitions/game/language/dictionary/Message.d.ts +2 -1
- package/package.json +1 -1
|
@@ -407,6 +407,7 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
|
|
|
407
407
|
* @returns True if fire overflowed, false if not.
|
|
408
408
|
*/
|
|
409
409
|
stokeFire(stokeValue: number, human?: Human): boolean;
|
|
410
|
+
getDecayAtStartWithMagical(): number;
|
|
410
411
|
/**
|
|
411
412
|
* Decay over time
|
|
412
413
|
*/
|
|
@@ -548,6 +548,9 @@ export declare enum DoodadTypeGroup {
|
|
|
548
548
|
FireSource = -9990,
|
|
549
549
|
LitTorch = -9989,
|
|
550
550
|
LightDevice = -9988,
|
|
551
|
+
/**
|
|
552
|
+
* This is set for lit torches, candles, and jack-o'-lanterns specifically
|
|
553
|
+
*/
|
|
551
554
|
LightSource = -9987,
|
|
552
555
|
LitStructure = -9986,// Prevents pick up while lit
|
|
553
556
|
LockedChest = -9985,
|
|
@@ -231,6 +231,7 @@ export default class Item extends EntityMovable<IItemDescription, ItemType, Refe
|
|
|
231
231
|
isDecayed(): boolean;
|
|
232
232
|
getDecayedThreshold(): number;
|
|
233
233
|
getDecayAtStart(): number;
|
|
234
|
+
getDecayAtStartWithMagical(): number;
|
|
234
235
|
getVisualDurability(): number;
|
|
235
236
|
getVisualDecay(): number;
|
|
236
237
|
private getVisualBarValue;
|
|
@@ -257,9 +258,8 @@ export default class Item extends EntityMovable<IItemDescription, ItemType, Refe
|
|
|
257
258
|
*/
|
|
258
259
|
verifyAndFixItem(): void;
|
|
259
260
|
protected pipeMagicalPropertyManagerEvents(magic: MagicalPropertyManager): void;
|
|
260
|
-
protected onMagicSet(type: MagicalPropertyType, subType?: MagicalSubPropertySubTypes, value?: number, curse?: true): void;
|
|
261
|
-
protected onMagicRemove(type: MagicalPropertyType, subType?: MagicalSubPropertySubTypes): void;
|
|
262
|
-
protected onMagicClear(): void;
|
|
261
|
+
protected onMagicSet(type: MagicalPropertyType, subType?: MagicalSubPropertySubTypes, value?: number, previousValue?: number, curse?: true): void;
|
|
262
|
+
protected onMagicRemove(type: MagicalPropertyType, subType?: MagicalSubPropertySubTypes, value?: number): void;
|
|
263
263
|
verifyAndFixMagic(): void;
|
|
264
264
|
/**
|
|
265
265
|
* @param source A string representing the reason for this damage. Used for multiplayer debugging. Just put a unique string of characters here
|
|
@@ -323,8 +323,9 @@ export default class Item extends EntityMovable<IItemDescription, ItemType, Refe
|
|
|
323
323
|
rerollMagicalProperty(type: MagicalPropertyType, subType?: MagicalSubPropertySubTypes): boolean;
|
|
324
324
|
rerollMagicalPropertyValues(): void;
|
|
325
325
|
initializeMagicalPropertyManager(): MagicalPropertyManager;
|
|
326
|
-
protected updateDurabilityForPersistence(): void;
|
|
327
|
-
protected
|
|
326
|
+
protected updateDurabilityForPersistence(type: MagicalPropertyType, value?: number): void;
|
|
327
|
+
protected clampDecayToMax(type: MagicalPropertyType, value?: number): void;
|
|
328
|
+
protected clampDurabilityToMax(type: MagicalPropertyType): void;
|
|
328
329
|
addMagicalProperty(type: MagicalPropertyType, subType?: MagicalSubPropertySubTypes, valueType?: "min" | "max"): boolean;
|
|
329
330
|
getMagicalPropertyInfo(type: MagicalPropertyType): IMagicalPropertyInfo | undefined;
|
|
330
331
|
acquireNotify(human: Human, context?: ActionContext): void;
|
|
@@ -20,17 +20,17 @@ import type { IEventSubscriberEvents } from "@wayward/utilities/event/EventEmitt
|
|
|
20
20
|
import EventEmitter from "@wayward/utilities/event/EventEmitter";
|
|
21
21
|
export interface IMagicalPropertyManagerEvents extends IEventSubscriberEvents {
|
|
22
22
|
/**
|
|
23
|
-
* Emitted when a property was removed
|
|
23
|
+
* Emitted when a property was removed and the value of it
|
|
24
24
|
*/
|
|
25
|
-
remove(...identity: MagicalPropertyIdentity): any;
|
|
25
|
+
remove(...identity: MagicalPropertyIdentity<[value: number]>): any;
|
|
26
26
|
/**
|
|
27
27
|
* Emitted when a property was added
|
|
28
28
|
*/
|
|
29
29
|
add(...args: MagicalPropertyIdentity<[value: number, curse?: true]>): any;
|
|
30
30
|
/**
|
|
31
|
-
* Emitted when a property was set, and the value it was set to
|
|
31
|
+
* Emitted when a property was set, and the value it was set to, and what it was before
|
|
32
32
|
*/
|
|
33
|
-
set(...args: MagicalPropertyIdentity<[value: number, curse?: true]>): any;
|
|
33
|
+
set(...args: MagicalPropertyIdentity<[value: number, previousValue?: number, curse?: true]>): any;
|
|
34
34
|
/**
|
|
35
35
|
* Emitted when a property was set or removed
|
|
36
36
|
*/
|
package/package.json
CHANGED