@wayward/types 2.14.0-beta.dev.20240131.1 → 2.14.0-beta.dev.20240202.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.
|
@@ -144,6 +144,7 @@ export default abstract class Entity<DescriptionType = unknown, TypeType extends
|
|
|
144
144
|
*/
|
|
145
145
|
removeData(key: string): boolean;
|
|
146
146
|
abstract get isValid(): boolean;
|
|
147
|
+
get asGenericEntity(): Entity;
|
|
147
148
|
get asEntity(): Entity<DescriptionType, TypeType, EntityReferenceType, TagType>;
|
|
148
149
|
get asEntityMovable(): EntityMovable<DescriptionType, TypeType, EntityReferenceType, TagType> | undefined;
|
|
149
150
|
get asEntityWithStats(): EntityWithStats<DescriptionType, TypeType, EntityReferenceType, TagType> | undefined;
|
|
@@ -100,6 +100,9 @@ export declare enum CreatureType {
|
|
|
100
100
|
ShadowCreature = 61,
|
|
101
101
|
PirateSkeleton = 62
|
|
102
102
|
}
|
|
103
|
+
export declare enum CreatureTypeGroup {
|
|
104
|
+
Golem = 0
|
|
105
|
+
}
|
|
103
106
|
export interface ICreatureOld extends Creature {
|
|
104
107
|
hp: number;
|
|
105
108
|
maxhp: number;
|
|
@@ -328,6 +331,14 @@ export interface ICreatureDescription extends IModdable, ITemperatureDescription
|
|
|
328
331
|
*/
|
|
329
332
|
noShadow?: boolean;
|
|
330
333
|
noSpringForthMessage?: true;
|
|
334
|
+
/**
|
|
335
|
+
* The merchant credit value/worth of a creature when contained in another item (bottles/cages/etc.)
|
|
336
|
+
*/
|
|
337
|
+
worth?: number;
|
|
338
|
+
/**
|
|
339
|
+
* Only used for golems currently, but we should use this for all true/false properties for creatures probably
|
|
340
|
+
*/
|
|
341
|
+
group?: CreatureTypeGroup[];
|
|
331
342
|
}
|
|
332
343
|
export interface ICreatureSpawn {
|
|
333
344
|
/**
|
|
@@ -421,4 +421,5 @@ export default class ItemManager extends EntityManager<Item, IItemRemoveOptions>
|
|
|
421
421
|
* Runs a thing the container + parent containers
|
|
422
422
|
*/
|
|
423
423
|
private forEachContainer;
|
|
424
|
+
getAncestorContainers(container: IContainer | undefined, includeCurrent?: boolean): Set<IContainer>;
|
|
424
425
|
}
|
package/package.json
CHANGED