@wayward/types 2.12.2-beta.dev.20221201.1 → 2.12.2-beta.dev.20221202.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/Human.d.ts +1 -0
- package/definitions/game/game/entity/player/Player.d.ts +0 -2
- package/definitions/game/game/island/Island.d.ts +1 -1
- package/definitions/game/game/item/IItem.d.ts +1 -0
- package/definitions/game/game/item/ItemManager.d.ts +1 -1
- package/package.json +1 -1
|
@@ -85,6 +85,7 @@ export default abstract class Human extends Entity implements IHasInsulation {
|
|
|
85
85
|
readonly movementIntent: IMovementIntent;
|
|
86
86
|
walkPath: IWalkPath | undefined;
|
|
87
87
|
identifier: string;
|
|
88
|
+
lastAttackedBy: Human | Creature | undefined;
|
|
88
89
|
skill: SkillManager;
|
|
89
90
|
quests: IQuestManager;
|
|
90
91
|
messages: IMessageManager;
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import type { IEventEmitter } from "event/EventEmitter";
|
|
12
|
-
import Creature from "game/entity/creature/Creature";
|
|
13
12
|
import { CreatureType } from "game/entity/creature/ICreature";
|
|
14
13
|
import Human from "game/entity/Human";
|
|
15
14
|
import { EntityType } from "game/entity/IEntity";
|
|
@@ -40,7 +39,6 @@ export default class Player extends Human implements IUnserializedCallback {
|
|
|
40
39
|
dialogInfo: Record<string, IDialogInfo>;
|
|
41
40
|
hintSeen: boolean[];
|
|
42
41
|
islandId: IslandId;
|
|
43
|
-
lastAttackedBy: Human | Creature | undefined;
|
|
44
42
|
name: string;
|
|
45
43
|
actionBar: IActionBarSlotData[];
|
|
46
44
|
revealedItems: Record<number, boolean>;
|
|
@@ -16,7 +16,7 @@ import Creature from "game/entity/creature/Creature";
|
|
|
16
16
|
import CreatureManager from "game/entity/creature/CreatureManager";
|
|
17
17
|
import type { IDamageInfo, IDamageOutcome, IDamageOutcomeInput } from "game/entity/creature/ICreature";
|
|
18
18
|
import FlowFieldManager from "game/entity/flowfield/FlowFieldManager";
|
|
19
|
-
import
|
|
19
|
+
import Human from "game/entity/Human";
|
|
20
20
|
import { SkillType } from "game/entity/IHuman";
|
|
21
21
|
import NPCManager from "game/entity/npc/NPCManager";
|
|
22
22
|
import type { IGameOld } from "game/IGame";
|
|
@@ -403,6 +403,7 @@ export interface IMoveToTileOptions {
|
|
|
403
403
|
toContainer?: IContainer;
|
|
404
404
|
toContainerOptions?: IAddToContainerOptions;
|
|
405
405
|
beforeMovement?: IMoveToTileBeforeMovementOptions;
|
|
406
|
+
extinguishTorches?: boolean;
|
|
406
407
|
/**
|
|
407
408
|
* Note: Everything done in afterMovement must be clientside only
|
|
408
409
|
*/
|
|
@@ -135,7 +135,7 @@ export default class ItemManager extends ObjectManager<Item, IItemManagerEvents>
|
|
|
135
135
|
removeContainerItems(container: IContainer, removeContainedItems?: boolean): void;
|
|
136
136
|
isItemExtra(type: number): type is ItemTypeExtra;
|
|
137
137
|
exists(item: Item): boolean;
|
|
138
|
-
remove(item: Item, removeContainedItems?: boolean): void;
|
|
138
|
+
remove(item: Item, removeContainedItems?: boolean, extinguishTorches?: boolean): void;
|
|
139
139
|
getDisassemblyComponents(description: IItemDescription, quality: Quality | undefined): Item[];
|
|
140
140
|
getDisassemblyComponentsAsItemTypes(description: IItemDescription): Array<ItemType | ItemTypeGroup>;
|
|
141
141
|
getWeightCapacity(container: IContainer, includeMagic?: boolean): number | undefined;
|
package/package.json
CHANGED