@wayward/types 2.15.4-beta.dev.20260331.1 → 2.15.4-beta.dev.20260402.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/ToggleProtectItem.d.ts +2 -2
- package/definitions/game/game/entity/action/usable/IUsableAction.d.ts +4 -2
- package/definitions/game/game/entity/action/usable/UsableAction.d.ts +1 -0
- package/definitions/game/game/entity/action/usable/actions/UsableActionsDynamic.d.ts +3 -1
- package/definitions/game/language/dictionary/Message.d.ts +694 -693
- package/package.json +1 -1
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { Action } from "@wayward/game/game/entity/action/Action";
|
|
12
|
-
import { ActionArgument } from "@wayward/game/game/entity/action/IAction";
|
|
13
|
-
declare const _default: Action<[ActionArgument.ItemNearby, ActionArgument.Boolean],
|
|
12
|
+
import { ActionArgument, ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
13
|
+
declare const _default: Action<[ActionArgument.ItemNearby, ActionArgument.Boolean], ActionType, import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, void, import("@wayward/game/game/entity/action/IAction").IActionUsable, [import("../../../item/Item").default, boolean]>;
|
|
14
14
|
export default _default;
|
|
@@ -228,7 +228,7 @@ export interface IUsableActionDefinitionBase<REQUIREMENTS extends IUsableActionR
|
|
|
228
228
|
*
|
|
229
229
|
* If set to an `ActionId`, the `ActionId` will be attempted to be slotted instead.
|
|
230
230
|
*/
|
|
231
|
-
slottable?: boolean | ActionId;
|
|
231
|
+
slottable?: boolean | ActionId | (() => boolean);
|
|
232
232
|
/**
|
|
233
233
|
* Whether this action is "applicable" given this player and these "provided" objects.
|
|
234
234
|
* @param player The player executing this action. This isn't always the local player!
|
|
@@ -370,8 +370,10 @@ export interface IUsableActionDefinitionSubmenu<REQUIREMENTS extends IUsableActi
|
|
|
370
370
|
forceDisplayWhenEmpty?: true;
|
|
371
371
|
}
|
|
372
372
|
export interface IUsableActionDefinitionExecutable<REQUIREMENTS extends IUsableActionRequirements = IUsableActionRequirements> extends IUsableActionDefinitionBase<REQUIREMENTS> {
|
|
373
|
-
slottable?: boolean | ActionId;
|
|
373
|
+
slottable?: boolean | ActionId | (() => boolean);
|
|
374
374
|
discoveredByDefault?: true | (() => boolean);
|
|
375
|
+
discoveryNotRequired?: true | (() => boolean);
|
|
376
|
+
discoveryId?: ActionId;
|
|
375
377
|
submenu?: undefined;
|
|
376
378
|
forceDisplayWhenEmpty?: undefined;
|
|
377
379
|
execute(player: Player, using: IUsableActionUsing<REQUIREMENTS>, context: IUsableActionExecutionContext): any;
|
|
@@ -113,6 +113,7 @@ declare class UsableAction<REQUIREMENTS extends IUsableActionRequirements = IUsa
|
|
|
113
113
|
getContextualLevel(using: IUsableActionPossibleUsing | undefined, parentMenuId: string, actionExecutionContext: IUsableActionExecutionContext): number;
|
|
114
114
|
private getOwnContextualLevel;
|
|
115
115
|
canUseOnMoveWhenDiscovered(): boolean;
|
|
116
|
+
getDiscoveryId(): string;
|
|
116
117
|
isDiscovered(): boolean;
|
|
117
118
|
canUseOnMove(): boolean;
|
|
118
119
|
getInternalActionType(): ActionType | undefined;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type { ActionDisplayLevel } from "@wayward/game/game/entity/action/IAction";
|
|
12
12
|
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
13
|
-
import type { IUsableActionDefinitionBase, IUsableActionPossibleUsing, IUsableActionRequirements, IUsableActionUsing, ReturnableUsableActionUsability, UsableActionIconReference } from "@wayward/game/game/entity/action/usable/IUsableAction";
|
|
13
|
+
import type { ActionId, IUsableActionDefinitionBase, IUsableActionPossibleUsing, IUsableActionRequirements, IUsableActionUsing, ReturnableUsableActionUsability, UsableActionIconReference } from "@wayward/game/game/entity/action/usable/IUsableAction";
|
|
14
14
|
import { UsableActionGenerator } from "@wayward/game/game/entity/action/usable/UsableActionRegistrar";
|
|
15
15
|
import type { UsableActionTranslator } from "@wayward/game/game/entity/action/usable/UsableActionTranslator";
|
|
16
16
|
import type Player from "@wayward/game/game/entity/player/Player";
|
|
@@ -24,6 +24,8 @@ export interface IUsableActionDynamicDefinition {
|
|
|
24
24
|
* Whether the action is visible in the action drawer by default (without using it normally first).
|
|
25
25
|
*/
|
|
26
26
|
discoveredByDefault?: true | (() => boolean);
|
|
27
|
+
discoveryNotRequired?: true | (() => boolean);
|
|
28
|
+
discoveryId?: ActionId;
|
|
27
29
|
translate?: (translator: UsableActionTranslator) => UsableActionTranslator;
|
|
28
30
|
/**
|
|
29
31
|
* By default, actions are assumed to be interacting with the tile in front of them.
|