@wayward/types 2.15.3-beta.dev.20260319.1 → 2.15.3-beta.dev.20260320.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.
|
@@ -15,7 +15,7 @@ import Deity from "@wayward/game/game/deity/Deity";
|
|
|
15
15
|
import Doodad from "@wayward/game/game/doodad/Doodad";
|
|
16
16
|
import type Entity from "@wayward/game/game/entity/Entity";
|
|
17
17
|
import EntityWithStats from "@wayward/game/game/entity/EntityWithStats";
|
|
18
|
-
import type { IAttack,
|
|
18
|
+
import type { IAttack, IEntityConstructorOptions, IMovingData, MoveFlag } from "@wayward/game/game/entity/IEntity";
|
|
19
19
|
import { AttackType, DamageType, IStatChangeInfo, StatusChangeReason } from "@wayward/game/game/entity/IEntity";
|
|
20
20
|
import type { HumanTag, ICheckUnderOptions as ICheckInteractionOptions, ICrafted, ICustomizations, IHumanEvents, ILoadOnIslandOptions, IRestData, IVoyageInfo, WalkToChangeReason } from "@wayward/game/game/entity/IHuman";
|
|
21
21
|
import { EquipType, RestCancelReason } from "@wayward/game/game/entity/IHuman";
|
|
@@ -404,7 +404,7 @@ export default abstract class Human<DescriptionType = unknown, TypeType extends
|
|
|
404
404
|
*/
|
|
405
405
|
tick(isPassTurn?: boolean, turnType?: TurnTypeFlag): boolean;
|
|
406
406
|
private restTick;
|
|
407
|
-
getDamage(
|
|
407
|
+
getDamage(baseDamage: number, equipType?: EquipType): number;
|
|
408
408
|
private slitherSuckerDamage;
|
|
409
409
|
/**
|
|
410
410
|
* Event handler for when resting begins, weight changes, or strength changes.
|
|
@@ -0,0 +1,21 @@
|
|
|
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 Player from "@wayward/game/game/entity/player/Player";
|
|
12
|
+
import PlayerTargetedServerPacket from "@wayward/game/multiplayer/packets/PlayerTargetedServerPacket";
|
|
13
|
+
import type { ICurseVisualExploredStateIslandUpdates } from "@wayward/game/save/clientStore/clientData/ExploredMap";
|
|
14
|
+
export default class UpdateCurseVisualStatePacket extends PlayerTargetedServerPacket {
|
|
15
|
+
static create(player: Player, updates: Map<string, ICurseVisualExploredStateIslandUpdates>): UpdateCurseVisualStatePacket;
|
|
16
|
+
updates: Map<string, ICurseVisualExploredStateIslandUpdates>;
|
|
17
|
+
getDebugInfo(): string;
|
|
18
|
+
isSyncCheckEnabled(): boolean;
|
|
19
|
+
isAllowedWhenPaused(): boolean;
|
|
20
|
+
process(): void;
|
|
21
|
+
}
|
|
@@ -10,14 +10,44 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type Island from "@wayward/game/game/island/Island";
|
|
12
12
|
import ExploreMap from "@wayward/game/renderer/exploreMap/ExploreMap";
|
|
13
|
+
import type { IVector2 } from "@wayward/game/utilities/math/IVector";
|
|
13
14
|
import type { IPreSerializeCallback } from "@wayward/game/save/serializer/ISerializer";
|
|
14
15
|
export interface IExploredMapClientDataOld {
|
|
15
16
|
exploredMapEncodedData: number[][];
|
|
16
17
|
}
|
|
18
|
+
export interface ICurseVisualExploredState {
|
|
19
|
+
hiddenTiles: number[];
|
|
20
|
+
fastHideStep?: number;
|
|
21
|
+
fastRestoreStep?: number;
|
|
22
|
+
hideOrigin?: IVector2;
|
|
23
|
+
restoreOrigin?: IVector2;
|
|
24
|
+
weightedRestoreStep?: number;
|
|
25
|
+
}
|
|
26
|
+
export interface ICurseVisualExploredStateUpdate {
|
|
27
|
+
addHiddenTiles?: number[];
|
|
28
|
+
removeHiddenTiles?: number[];
|
|
29
|
+
replaceHiddenTiles?: number[];
|
|
30
|
+
clearState?: true;
|
|
31
|
+
fastHideStep?: number | null;
|
|
32
|
+
fastRestoreStep?: number | null;
|
|
33
|
+
hideOrigin?: IVector2 | null;
|
|
34
|
+
restoreOrigin?: IVector2 | null;
|
|
35
|
+
weightedRestoreStep?: number | null;
|
|
36
|
+
}
|
|
37
|
+
export interface ICurseVisualExploredStateIslandUpdates {
|
|
38
|
+
clearAll?: true;
|
|
39
|
+
updatesByZ?: Record<number, ICurseVisualExploredStateUpdate>;
|
|
40
|
+
}
|
|
17
41
|
export default class ExploredMapClientData implements IPreSerializeCallback {
|
|
18
42
|
exploredMapEncodedData: Map<string, Record<number, number[]>>;
|
|
43
|
+
curseVisualStates: Map<string, Record<number, ICurseVisualExploredState>>;
|
|
19
44
|
private readonly exploredMaps;
|
|
20
45
|
preSerializeObject(): void;
|
|
21
46
|
clear(): void;
|
|
22
47
|
getExploreMap(island: Island, z: number): ExploreMap;
|
|
48
|
+
getCurseVisualState(island: Island | string, z: number, create?: boolean): ICurseVisualExploredState | undefined;
|
|
49
|
+
clearCurseVisualState(island: Island | string, z?: number): void;
|
|
50
|
+
applyCurseVisualStateUpdates(islandId: string, islandUpdates: ICurseVisualExploredStateIslandUpdates): void;
|
|
51
|
+
private applyCurseVisualStateUpdate;
|
|
52
|
+
private applyCurseVisualScalarUpdate;
|
|
23
53
|
}
|
package/package.json
CHANGED