@wayward/types 2.11.0-beta.dev.20211124.4 → 2.11.0-beta.dev.20211125.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/action/Actions.d.ts +1 -1
- package/definitions/game/game/entity/action/IAction.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/{DrinkCure.d.ts → Cure.d.ts} +0 -0
- package/definitions/game/game/inspection/infoProviders/item/ItemUses.d.ts +3 -3
- package/definitions/game/game/inspection/infoProviders/item/use/ItemConsumeInfo.d.ts +3 -3
- package/definitions/game/game/item/IItem.d.ts +1 -1
- package/definitions/game/game/item/ItemManager.d.ts +1 -1
- package/package.json +1 -1
|
@@ -23,12 +23,12 @@ declare const actionDescriptions: {
|
|
|
23
23
|
49: import("./Action").Action<[], import("../player/Player").default | import("../npc/NPC").default, boolean, []>;
|
|
24
24
|
25: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby], import("../player/Player").default, void, [import("../../item/Item").default]>;
|
|
25
25
|
66: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemType, import("game/entity/action/IAction").ActionArgument.ItemArrayNearby, import("game/entity/action/IAction").ActionArgument.ItemArrayNearby, [import("game/entity/action/IAction").ActionArgument.ItemNearby, import("game/entity/action/IAction").ActionArgument.Undefined], [import("game/entity/action/IAction").ActionArgument.Boolean, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../player/Player").default | import("../npc/NPC").default, void, [import("../../item/IItem").ItemType, import("../../item/Item").default[], import("../../item/Item").default[], (import("../../item/Item").default | undefined)?, (boolean | undefined)?]>;
|
|
26
|
+
31: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby], import("../player/Player").default | import("../npc/NPC").default, void, [import("../../item/Item").default]>;
|
|
26
27
|
79: import("./Action").Action<[], import("../player/Player").default | import("../npc/NPC").default, void, []>;
|
|
27
28
|
12: import("./Action").Action<[[import("game/entity/action/IAction").ActionArgument.ItemInventory, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../player/Player").default | import("../npc/NPC").default, void, [(import("../../item/Item").default | undefined)?]>;
|
|
28
29
|
0: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby], import("../player/Player").default | import("../npc/NPC").default, void, [import("../../item/Item").default]>;
|
|
29
30
|
39: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby], import("../player/Player").default | import("../npc/NPC").default, void, [import("../../item/Item").default]>;
|
|
30
31
|
38: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby], import("../player/Player").default | import("../npc/NPC").default, void, [import("../../item/Item").default]>;
|
|
31
|
-
31: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby], import("../player/Player").default | import("../npc/NPC").default, void, [import("../../item/Item").default]>;
|
|
32
32
|
61: import("./Action").Action<[], import("../player/Player").default | import("../npc/NPC").default, void, []>;
|
|
33
33
|
8: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby], import("../player/Player").default | import("../npc/NPC").default, void, [import("../../item/Item").default]>;
|
|
34
34
|
55: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby, [import("game/entity/action/IAction").ActionArgument.Boolean, import("game/entity/action/IAction").ActionArgument.Undefined], [import("game/entity/action/IAction").ActionArgument.Boolean, import("game/entity/action/IAction").ActionArgument.Undefined], [import("game/entity/action/IAction").ActionArgument.String, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../player/Player").default | import("../npc/NPC").default, void, [import("../../item/Item").default, (boolean | undefined)?, (boolean | undefined)?, (string | undefined)?]>;
|
|
File without changes
|
|
@@ -50,10 +50,10 @@ export default class ItemUses extends Uses<Item> {
|
|
|
50
50
|
type: ItemType;
|
|
51
51
|
description: IItemDescription;
|
|
52
52
|
quality: import("../../../IObject").Quality;
|
|
53
|
-
action: ActionType.Eat | ActionType.DrinkItem | ActionType.Heal | ActionType.
|
|
54
|
-
union: import("../UseInfo").IUseInfoBase<Item, ActionType.Eat | ActionType.DrinkItem | ActionType.Heal | ActionType.
|
|
53
|
+
action: ActionType.Eat | ActionType.DrinkItem | ActionType.Heal | ActionType.Cure | ActionType.HealOther;
|
|
54
|
+
union: import("../UseInfo").IUseInfoBase<Item, ActionType.Eat | ActionType.DrinkItem | ActionType.Heal | ActionType.Cure | ActionType.HealOther>;
|
|
55
55
|
details: Set<symbol>;
|
|
56
|
-
}, ActionType.Eat | ActionType.DrinkItem | ActionType.Heal | ActionType.
|
|
56
|
+
}, ActionType.Eat | ActionType.DrinkItem | ActionType.Heal | ActionType.Cure | ActionType.HealOther, {
|
|
57
57
|
generateUseConsumeTooltip: () => (tooltip: import("../../../../ui/tooltip/Tooltip").default, stat: import("../../../entity/IStats").Stat, base: number) => import("../../../../ui/tooltip/Tooltip").default;
|
|
58
58
|
}, Item> | import("../UseInfo").default<{
|
|
59
59
|
objectType: CreationId.Item;
|
|
@@ -26,10 +26,10 @@ declare const _default: UseInfo<{
|
|
|
26
26
|
type: import("../../../../item/IItem").ItemType;
|
|
27
27
|
description: import("../../../../item/IItem").IItemDescription;
|
|
28
28
|
quality: import("../../../../IObject").Quality;
|
|
29
|
-
action: ActionType.Eat | ActionType.DrinkItem | ActionType.Heal | ActionType.
|
|
30
|
-
union: import("game/inspection/infoProviders/UseInfo").IUseInfoBase<Item, ActionType.Eat | ActionType.DrinkItem | ActionType.Heal | ActionType.
|
|
29
|
+
action: ActionType.Eat | ActionType.DrinkItem | ActionType.Heal | ActionType.Cure | ActionType.HealOther;
|
|
30
|
+
union: import("game/inspection/infoProviders/UseInfo").IUseInfoBase<Item, ActionType.Eat | ActionType.DrinkItem | ActionType.Heal | ActionType.Cure | ActionType.HealOther>;
|
|
31
31
|
details: Set<symbol>;
|
|
32
|
-
}, ActionType.Eat | ActionType.DrinkItem | ActionType.Heal | ActionType.
|
|
32
|
+
}, ActionType.Eat | ActionType.DrinkItem | ActionType.Heal | ActionType.Cure | ActionType.HealOther, {
|
|
33
33
|
generateUseConsumeTooltip: () => (tooltip: Tooltip, stat: Stat, base: number) => Tooltip;
|
|
34
34
|
}, Item>;
|
|
35
35
|
export default _default;
|
|
@@ -243,7 +243,7 @@ export declare type ConsumeItemStatsTuple = [health: number, stamina: number, hu
|
|
|
243
243
|
export interface IOnUse {
|
|
244
244
|
[ActionType.Apply]?: ConsumeItemStatsTuple;
|
|
245
245
|
[ActionType.Build]?: DoodadType | [build: DoodadType, keepItem: true];
|
|
246
|
-
[ActionType.
|
|
246
|
+
[ActionType.Cure]?: ConsumeItemStatsTuple;
|
|
247
247
|
[ActionType.DrinkItem]?: ConsumeItemStatsTuple;
|
|
248
248
|
[ActionType.Eat]?: ConsumeItemStatsTuple;
|
|
249
249
|
[ActionType.Heal]?: ConsumeItemStatsTuple;
|
|
@@ -182,7 +182,7 @@ export default class ItemManager extends ObjectManager<Item, IItemManagerEvents>
|
|
|
182
182
|
getNPCWithItemInInventory(containable: IContainable): NPC | undefined;
|
|
183
183
|
countItemsInContainer(containers: IContainer | IContainer[], itemTypeSearch: ItemType, ignoreItem?: Item): number;
|
|
184
184
|
countItemsInContainerByGroup(containers: IContainer | IContainer[], itemTypeGroupSearch: ItemTypeGroup, ignoreItem?: Item): number;
|
|
185
|
-
getSafeItemInContainerByUse(container: IContainer, action: ActionType, allowProtectedItems?: boolean): Item | undefined;
|
|
185
|
+
getSafeItemInContainerByUse(container: IContainer, action: ActionType, allowProtectedItems?: boolean, canDamageItem?: boolean, consumable?: boolean): Item | undefined;
|
|
186
186
|
getItemInContainer(container: IContainer, itemTypeSearch: ItemType, ignoreItem?: Item, allowProtectedItems?: boolean): Item | undefined;
|
|
187
187
|
getItemForHuman(human: Human, search: ItemType | ItemTypeGroup, allowProtectedItems?: boolean): Item | undefined;
|
|
188
188
|
getItemInContainerByGroup(container: IContainer, itemTypeGroupSearch: ItemTypeGroup, ignoreItemId?: number, allowProtectedItems?: boolean): Item | undefined;
|
package/package.json
CHANGED