@wayward/types 2.15.4-beta.dev.20260402.1 → 2.15.4-beta.dev.20260406.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.
|
@@ -80,6 +80,7 @@ export declare const CURSE_EVENTS_DEFAULT_RADIUS = 25;
|
|
|
80
80
|
*/
|
|
81
81
|
export declare const CURSE_EVENTS_COOLDOWN_RANGE: IRangeRange;
|
|
82
82
|
export declare const CURSE_EVENTS_FIRST_NIGHT = 3;
|
|
83
|
+
export declare const CURSE_EVENTS_DEFAULT_EVENT_COOLDOWN = 3;
|
|
83
84
|
/**
|
|
84
85
|
* Each tick after a curse event ends, one entity of each type spawned by the event has this chance to despawn.
|
|
85
86
|
* If the entity is on a tile that can be seen by a player, it will not despawn.
|
|
@@ -103,6 +104,7 @@ export declare const CURSE_EVENTS_RUNE_CHANCE_MULTIPLIER_LUCKY: IRange<number>;
|
|
|
103
104
|
*/
|
|
104
105
|
export declare const CURSE_EVENTS_RUNES_KILL_TAME: Array<WeightedOption<IRange>>;
|
|
105
106
|
export declare const CURSE_EVENTS_RUNES_SURVIVED: IRange<number>;
|
|
107
|
+
export declare const CURSE_SCRIPT_REPEAT_INFINITE_ITERATIONS = 99999999;
|
|
106
108
|
export declare const CURSE_EVENTS_CREATURE_WANDER_CURSEBEARER_PRIORITY: IRange<number>;
|
|
107
109
|
export declare const CURSE_EVENTS_VISUAL_EXPLORED_FADE_TURNS = 30;
|
|
108
110
|
export declare const CURSE_EVENTS_VISUAL_EXPLORED_FAST_PHASE_TURNS = 50;
|
|
@@ -128,6 +130,9 @@ declare namespace Curse {
|
|
|
128
130
|
function resetCooldown(island: Island): void;
|
|
129
131
|
function updateRuneItemsDisplay(island: Island): void;
|
|
130
132
|
function tickCurse(island: Island, humans: Human[]): void;
|
|
133
|
+
function executeScriptAction(island: Island, event: CurseEventInstance, path: Array<string | number>): boolean;
|
|
134
|
+
function skipScriptWait(event: CurseEventInstance, path: Array<string | number>): boolean;
|
|
135
|
+
function restartScriptBranch(event: CurseEventInstance, path: Array<string | number>): boolean;
|
|
131
136
|
function reload(island: Island, isNew?: boolean): void;
|
|
132
137
|
function spawnCurseEvents(island: Island, humans: Human[], requiresEvents: boolean): void;
|
|
133
138
|
function attemptCurseEventSpawn(category: CurseCategory | null, human: Human, curse: number, humans: Human[], events: CurseEventInstance[], allowDependents?: boolean): CurseEventInstance | undefined;
|
|
@@ -147,6 +152,7 @@ declare const SYMBOL_CURSE_EVENT_ACTIVE_SUBSCRIBER_INSTANCE: unique symbol;
|
|
|
147
152
|
type CurseVisualHiddenExploredTilesByZ = Partial<Record<number, number[]>>;
|
|
148
153
|
type CurseVisualFastStepsByZ = Partial<Record<number, number>>;
|
|
149
154
|
type CurseVisualOriginsByZ = Partial<Record<number, IVector2>>;
|
|
155
|
+
type CurseEventCooldowns = Partial<Record<CurseEventType, number>>;
|
|
150
156
|
interface Curse {
|
|
151
157
|
night?: true;
|
|
152
158
|
globalCurse?: number;
|
|
@@ -158,6 +164,7 @@ interface Curse {
|
|
|
158
164
|
visualStateRestoreOriginsByZ?: CurseVisualOriginsByZ;
|
|
159
165
|
visualStateWeightedRestoreStepsByZ?: CurseVisualFastStepsByZ;
|
|
160
166
|
cooldown?: number;
|
|
167
|
+
eventCooldowns?: CurseEventCooldowns;
|
|
161
168
|
ephemeralCreatures?: number[];
|
|
162
169
|
[SYMBOL_CURSE_EVENT_GLOBAL_SUBSCRIBER_INSTANCE]?: CurseEventSubscriber;
|
|
163
170
|
[SYMBOL_CURSE_EVENT_ACTIVE_SUBSCRIBER_INSTANCE]?: CurseEventSubscriber;
|
|
@@ -180,6 +187,8 @@ interface ScriptProcessState {
|
|
|
180
187
|
path: Array<string | number>;
|
|
181
188
|
/** Iterations remaining for a Repeat block, or ticks remaining for an EndCondition. */
|
|
182
189
|
iterationsRemaining?: number;
|
|
190
|
+
/** The original iteration count when the current step or branch was initialized. */
|
|
191
|
+
iterationsTotal?: number;
|
|
183
192
|
/** The state of any child processes started by a Simultaneously or Repeat block. */
|
|
184
193
|
childProcesses?: ScriptProcessState[];
|
|
185
194
|
}
|
|
@@ -124,6 +124,11 @@ export interface CurseEvent {
|
|
|
124
124
|
* All curse events default to a weight of 1, so setting this to 0.5 would make it half as likely as any other event.
|
|
125
125
|
*/
|
|
126
126
|
weight?: number;
|
|
127
|
+
/**
|
|
128
|
+
* The number of eligible curse event nights that must pass before this event can appear again.
|
|
129
|
+
* Defaults to 1.
|
|
130
|
+
*/
|
|
131
|
+
cooldown?: number;
|
|
127
132
|
revealOn: ArrayOr<CurseEventRevealCondition>;
|
|
128
133
|
discoverOn: ArrayOr<CurseEventRevealCondition>;
|
|
129
134
|
effects?(context: CurseEventContext, effects: StatusEffectList): StatusEffectList;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2011-2025 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 { IPaths } from "@wayward/test/interfaces";
|
|
12
|
+
import type { TestConfig } from "@wayward/test";
|
|
13
|
+
export default function (_paths: IPaths, _config: TestConfig): void;
|
package/package.json
CHANGED