@wayward/types 2.15.0-beta.dev.20251004.1 → 2.15.0-beta.dev.20251005.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.
|
@@ -20,6 +20,7 @@ export declare const CURSE_WEIGHTS: PartialRecord<CurseComponent, number>;
|
|
|
20
20
|
export declare const CURSE_ATTACK_MAX = 50;
|
|
21
21
|
export declare const CURSE_DEFENSE_MAX = 100;
|
|
22
22
|
export declare const CURSE_CRAFTING_MAX = 100;
|
|
23
|
+
export declare const CURSE_KILLING_MAX = 100;
|
|
23
24
|
export declare const CURSE_SKILL_MAX = 100;
|
|
24
25
|
export declare const CURSE_COMPONENTS: Record<CurseComponent, (human: Human) => number>;
|
|
25
26
|
/**
|
|
@@ -78,11 +79,23 @@ declare namespace Curse {
|
|
|
78
79
|
function cleanup(island: Island, humans?: Human[]): void;
|
|
79
80
|
function createCurseEventContext(instance: CurseEventInstance, island: Island, humans?: Human[], cursebearer?: Human): CurseEventContext;
|
|
80
81
|
}
|
|
82
|
+
declare const SYMBOL_CURSE_EVENT_SUBSCRIBER_INSTANCES: unique symbol;
|
|
83
|
+
declare const SYMBOL_CURSE_EVENT_GLOBAL_SUBSCRIBER_INSTANCE: unique symbol;
|
|
81
84
|
interface Curse {
|
|
82
85
|
night?: true;
|
|
83
86
|
events?: CurseEventInstance[];
|
|
84
87
|
cooldown?: number;
|
|
85
88
|
warned?: true;
|
|
89
|
+
[SYMBOL_CURSE_EVENT_GLOBAL_SUBSCRIBER_INSTANCE]?: CurseEventSubscriber;
|
|
90
|
+
}
|
|
91
|
+
interface CurseEventInstance {
|
|
92
|
+
type: CurseEventType;
|
|
93
|
+
display: CurseEventDisplayMode;
|
|
94
|
+
cursebearerIdentifier: string;
|
|
95
|
+
point: IVector2;
|
|
96
|
+
subscribers?: string[];
|
|
97
|
+
scriptProcesses?: ScriptProcessState[];
|
|
98
|
+
[SYMBOL_CURSE_EVENT_SUBSCRIBER_INSTANCES]?: Record<string, CurseEventSubscriber>;
|
|
86
99
|
}
|
|
87
100
|
interface ScriptProcessState {
|
|
88
101
|
/** The path of keys/indices from the root of the script to the step this process is currently on. */
|
|
@@ -94,14 +107,4 @@ interface ScriptProcessState {
|
|
|
94
107
|
/** The state of any child processes started by a "simultaneously" or "repeat" block. */
|
|
95
108
|
childProcesses?: ScriptProcessState[];
|
|
96
109
|
}
|
|
97
|
-
declare const SYMBOL_CURSE_EVENT_SUBSCRIBER_INSTANCES: unique symbol;
|
|
98
|
-
interface CurseEventInstance {
|
|
99
|
-
type: CurseEventType;
|
|
100
|
-
display: CurseEventDisplayMode;
|
|
101
|
-
cursebearerIdentifier: string;
|
|
102
|
-
point: IVector2;
|
|
103
|
-
subscribers?: string[];
|
|
104
|
-
scriptProcesses?: ScriptProcessState[];
|
|
105
|
-
[SYMBOL_CURSE_EVENT_SUBSCRIBER_INSTANCES]?: Record<string, CurseEventSubscriber>;
|
|
106
|
-
}
|
|
107
110
|
export default Curse;
|
|
@@ -130,6 +130,7 @@ export default abstract class Human<DescriptionType = unknown, TypeType extends
|
|
|
130
130
|
highestAttack?: number;
|
|
131
131
|
highestDefense?: number;
|
|
132
132
|
cumulativeEvilCrafting: number;
|
|
133
|
+
cumulativeKilling: number;
|
|
133
134
|
itemDiscovered: ItemType[];
|
|
134
135
|
/** @deprecated (use the entity itself) */
|
|
135
136
|
readonly inventory: IContainer;
|
|
@@ -174,9 +174,11 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
|
|
|
174
174
|
*/
|
|
175
175
|
private deactivate;
|
|
176
176
|
private gameOptionsCached?;
|
|
177
|
+
private gameOptionsWithoutModifiersCached?;
|
|
177
178
|
/** A game options modifier that always returns an empty array by default, to be injected into */
|
|
178
179
|
getAdditionalGameOptionsSources(): IGameOptionsPartial[];
|
|
179
180
|
getGameOptions(): ImmutableObject<IGameOptions>;
|
|
181
|
+
getGameOptionsWithoutModifiers(): ImmutableObject<IGameOptions>;
|
|
180
182
|
clearGameOptionsCache(): void;
|
|
181
183
|
rename(human: Human, newName: string): void;
|
|
182
184
|
private generatedName?;
|
package/package.json
CHANGED