@wayward/types 2.14.7-beta.dev.20250817.1 → 2.14.7-beta.dev.20250819.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/entity/IEntity.d.ts +16 -3
- package/definitions/game/game/entity/flowfield/FlowFieldManager.d.ts +1 -1
- package/definitions/game/game/island/Island.d.ts +1 -1
- package/definitions/game/game/item/IItem.d.ts +11 -3
- package/definitions/game/language/dictionary/Message.d.ts +2 -1
- package/package.json +1 -1
|
@@ -136,13 +136,26 @@ export declare enum MoveType {
|
|
|
136
136
|
Tree = 8,
|
|
137
137
|
Mountain = 16,
|
|
138
138
|
Fire = 32,
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
/**
|
|
140
|
+
* If set, this entity will damage facing doodads when moving randomly.
|
|
141
|
+
*/
|
|
142
|
+
DamageFacingDoodads = 64,
|
|
143
|
+
/**
|
|
144
|
+
* If set, this entity will randomly damage facing items (only if the tile is full) as well as items on they have stepped on.
|
|
145
|
+
*/
|
|
146
|
+
DamageAnyNearbyItems = 128,
|
|
141
147
|
WetLand = 256,
|
|
142
148
|
Void = 512,
|
|
143
|
-
|
|
149
|
+
/**
|
|
150
|
+
* Will not attempt to move towards targets on land.
|
|
151
|
+
*/
|
|
152
|
+
LandBlind = 1024,
|
|
144
153
|
Hole = 2048,
|
|
145
154
|
Fast = 4096,
|
|
155
|
+
/**
|
|
156
|
+
* If set, this entity will damage any crushable item they have stepped on.
|
|
157
|
+
*/
|
|
158
|
+
DamageCrushableTileItems = 8192,
|
|
146
159
|
Flying = 15
|
|
147
160
|
}
|
|
148
161
|
export declare enum AttackType {
|
|
@@ -22,7 +22,7 @@ interface IFlowFieldHuman {
|
|
|
22
22
|
export default class FlowFieldManager {
|
|
23
23
|
private readonly island;
|
|
24
24
|
private readonly size;
|
|
25
|
-
flowFields: Map<"-1-0" | "-1-1" | "-1-2" | "-1-4" | "-1-8" | "-1-16" | "-1-32" | "-1-64" | "-1-128" | "-1-256" | "-1-512" | "-1-1024" | "-1-2048" | "-1-4096" | "-1-15" | "0-0" | "0-1" | "0-2" | "0-4" | "0-8" | "0-16" | "0-32" | "0-64" | "0-128" | "0-256" | "0-512" | "0-1024" | "0-2048" | "0-4096" | "0-15" | "1-0" | "1-1" | "1-2" | "1-4" | "1-8" | "1-16" | "1-32" | "1-64" | "1-128" | "1-256" | "1-512" | "1-1024" | "1-2048" | "1-4096" | "1-15", FlowField>;
|
|
25
|
+
flowFields: Map<"-1-0" | "-1-1" | "-1-2" | "-1-4" | "-1-8" | "-1-16" | "-1-32" | "-1-64" | "-1-128" | "-1-256" | "-1-512" | "-1-1024" | "-1-2048" | "-1-4096" | "-1-8192" | "-1-15" | "0-0" | "0-1" | "0-2" | "0-4" | "0-8" | "0-16" | "0-32" | "0-64" | "0-128" | "0-256" | "0-512" | "0-1024" | "0-2048" | "0-4096" | "0-8192" | "0-15" | "1-0" | "1-1" | "1-2" | "1-4" | "1-8" | "1-16" | "1-32" | "1-64" | "1-128" | "1-256" | "1-512" | "1-1024" | "1-2048" | "1-4096" | "1-8192" | "1-15", FlowField>;
|
|
26
26
|
humans: IFlowFieldHuman[];
|
|
27
27
|
private _flowFieldHumans;
|
|
28
28
|
constructor(island: Island, size: number);
|
|
@@ -117,7 +117,7 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
|
|
|
117
117
|
/**
|
|
118
118
|
* Entity move types in fov on this island
|
|
119
119
|
*/
|
|
120
|
-
readonly moveTypesInFov: Map<"-1-0" | "-1-1" | "-1-2" | "-1-4" | "-1-8" | "-1-16" | "-1-32" | "-1-64" | "-1-128" | "-1-256" | "-1-512" | "-1-1024" | "-1-2048" | "-1-4096" | "-1-15" | "0-0" | "0-1" | "0-2" | "0-4" | "0-8" | "0-16" | "0-32" | "0-64" | "0-128" | "0-256" | "0-512" | "0-1024" | "0-2048" | "0-4096" | "0-15" | "1-0" | "1-1" | "1-2" | "1-4" | "1-8" | "1-16" | "1-32" | "1-64" | "1-128" | "1-256" | "1-512" | "1-1024" | "1-2048" | "1-4096" | "1-15", Set<Human<unknown, number, import("@wayward/game/game/reference/IReferenceManager").ReferenceType.NPC | import("@wayward/game/game/reference/IReferenceManager").ReferenceType.Player>>>;
|
|
120
|
+
readonly moveTypesInFov: Map<"-1-0" | "-1-1" | "-1-2" | "-1-4" | "-1-8" | "-1-16" | "-1-32" | "-1-64" | "-1-128" | "-1-256" | "-1-512" | "-1-1024" | "-1-2048" | "-1-4096" | "-1-8192" | "-1-15" | "0-0" | "0-1" | "0-2" | "0-4" | "0-8" | "0-16" | "0-32" | "0-64" | "0-128" | "0-256" | "0-512" | "0-1024" | "0-2048" | "0-4096" | "0-8192" | "0-15" | "1-0" | "1-1" | "1-2" | "1-4" | "1-8" | "1-16" | "1-32" | "1-64" | "1-128" | "1-256" | "1-512" | "1-1024" | "1-2048" | "1-4096" | "1-8192" | "1-15", Set<Human<unknown, number, import("@wayward/game/game/reference/IReferenceManager").ReferenceType.NPC | import("@wayward/game/game/reference/IReferenceManager").ReferenceType.Player>>>;
|
|
121
121
|
/**
|
|
122
122
|
* Helps instruct when to tick when in simulated turn mode
|
|
123
123
|
*/
|
|
@@ -233,7 +233,7 @@ export interface IItemDescription extends IObjectDescription, IModdable, ITemper
|
|
|
233
233
|
prefix?: string;
|
|
234
234
|
spawnOnDecay?: CreatureType;
|
|
235
235
|
/**
|
|
236
|
-
* Creates creatures
|
|
236
|
+
* Creates creatures, tile events, or items when it breaks.
|
|
237
237
|
*/
|
|
238
238
|
createOnBreak?: ICreateOnBreak;
|
|
239
239
|
/**
|
|
@@ -1872,8 +1872,16 @@ export declare enum ItemTypeGroup {
|
|
|
1872
1872
|
ExcludedFromRandom = -9856,
|
|
1873
1873
|
Leaves = -9855,
|
|
1874
1874
|
Flute = -9854,
|
|
1875
|
-
|
|
1876
|
-
|
|
1875
|
+
/**
|
|
1876
|
+
* If set, the item will take damage when the player steps over it when wearing any foot equipment.
|
|
1877
|
+
* Creatures with a MoveType.DamageCrushableTileItems will also break them when stepping over them.
|
|
1878
|
+
*/
|
|
1879
|
+
Crushable = -9853,
|
|
1880
|
+
/**
|
|
1881
|
+
* If set, this item will not drop when a doodad (plant) is broken. Set on plant roots for example.
|
|
1882
|
+
*/
|
|
1883
|
+
InternalNoDropOnDoodadBreak = -9852,
|
|
1884
|
+
All = -9851
|
|
1877
1885
|
}
|
|
1878
1886
|
export type StillContainerBaseItemType = ItemType.Waterskin | ItemType.GlassBottle | ItemType.ClayJug | ItemType.CoconutContainer;
|
|
1879
1887
|
export interface IItemMovementResult {
|
package/package.json
CHANGED