@wayward/types 2.15.5-beta.dev.20260508.1 → 2.15.5-beta.dev.20260513.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.
|
@@ -136,7 +136,7 @@ declare namespace Curse {
|
|
|
136
136
|
function reload(island: Island, isNew?: boolean): void;
|
|
137
137
|
function spawnCurseEvents(island: Island, humans: Human[], requiresEvents: boolean): void;
|
|
138
138
|
function attemptCurseEventSpawn(category: CurseCategory | null, human: Human, curse: number, humans: Human[], events: CurseEventInstance[], allowDependents?: boolean): CurseEventInstance | undefined;
|
|
139
|
-
function attemptSpecificCurseEventSpawn(human: Human, type: CurseEventType, humans: Human[], curse?: number, force?: boolean | "full"): CurseEventInstance | undefined;
|
|
139
|
+
function attemptSpecificCurseEventSpawn(human: Human, type: CurseEventType, humans: Human[], curse?: number, force?: boolean | "full", deferStart?: boolean): CurseEventInstance | undefined;
|
|
140
140
|
function attemptSpecificCurseEventSpawnOnPlayer(player: Human, curseType: CurseEventType, force: boolean | "full"): CurseEventInstance | undefined;
|
|
141
141
|
function resetVisualExploredState(island: Island): void;
|
|
142
142
|
function obscureVisualExploredState(island: Island): void;
|
|
@@ -47,9 +47,9 @@ export declare enum CurseCategory {
|
|
|
47
47
|
*/
|
|
48
48
|
Secondary = 1,
|
|
49
49
|
/**
|
|
50
|
-
* Dependent curses are
|
|
50
|
+
* Dependent curses are selected during the secondary phase and can affect later curse-event rolls that same night.
|
|
51
51
|
*
|
|
52
|
-
* They
|
|
52
|
+
* They do not satisfy the night's non-dependent curse event quota and are discarded if no primary or secondary curse event ends up spawning.
|
|
53
53
|
*/
|
|
54
54
|
Dependent = 2
|
|
55
55
|
}
|
|
@@ -429,7 +429,7 @@ export default class Item extends EntityMovable<IItemDescription, ItemType, Refe
|
|
|
429
429
|
*/
|
|
430
430
|
resetDecayTime(overrideDefault?: number): void;
|
|
431
431
|
/**
|
|
432
|
-
* Gets the item's max decay value based on quality. The max number can be modified slightly due to overrideDefault (crafting) and adding fuel which goes over this max.
|
|
432
|
+
* Gets the item's base max decay value based on quality. The max number can be modified slightly due to overrideDefault (crafting) and adding fuel which goes over this max.
|
|
433
433
|
* @param overrideDefault Override the item's decayMax definition with something else.
|
|
434
434
|
* @param withRandomization True if you want to return a randomized value (useful when setting the value on an item).
|
|
435
435
|
* @returns A number equal to the maximum item decay or `undefined` if the item should not have decay at all.
|
|
@@ -221,10 +221,7 @@ export default class ItemManager extends EntityManager<Item, IItemRemoveOptions>
|
|
|
221
221
|
getItemInsertIndexInContainer(container: IContainer, item: Item, sorter?: ISorter<Item | undefined>): number | undefined;
|
|
222
222
|
removeContainerItems(container: IContainer, options?: IItemRemoveOptions): void;
|
|
223
223
|
remove(item: Item, options?: IItemRemoveOptions): void;
|
|
224
|
-
|
|
225
|
-
* No need to run special logic when loading items
|
|
226
|
-
*/
|
|
227
|
-
protected loadEntity: undefined;
|
|
224
|
+
protected loadEntity(item: Item): void;
|
|
228
225
|
/**
|
|
229
226
|
* For entity manager compat
|
|
230
227
|
*/
|
package/package.json
CHANGED