@wayward/types 2.14.1-beta.dev.20241217.2 → 2.14.2-beta.dev.20241218.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.
@@ -208,8 +208,11 @@ export declare enum ActionFlag {
208
208
  * Used for hiding actions that can't currently be used from context menus.
209
209
  */
210
210
  export declare enum ActionDisplayLevel {
211
+ /** This action is always displayed, whether usable or not. */
211
212
  Always = 0,
213
+ /** When the action can't be used, it is not displayed, *unless* you are right clicking on an item that has the action. */
212
214
  Direct = 1,
215
+ /** When the action can't be used, it is not displayed. */
213
216
  Never = 2
214
217
  }
215
218
  export interface IActionUsable {
@@ -229,6 +232,7 @@ export interface IActionNotUsable {
229
232
  mobCheckTile?: Tile;
230
233
  message?: Message | INotUsableMessage;
231
234
  sources?: ArrayOr<Source>;
235
+ /** Whether the action should display or not in context menus due to this error. */
232
236
  errorDisplayLevel?: ActionDisplayLevel;
233
237
  args?: never;
234
238
  arg?: never;
@@ -27,7 +27,6 @@ import Message from "@wayward/game/language/dictionary/Message";
27
27
  import type { HighlightSelector } from "@wayward/game/ui/util/IHighlight";
28
28
  import Observer from "@wayward/game/utilities/Observer";
29
29
  import EventEmitter from "@wayward/utilities/event/EventEmitter";
30
- export declare const USABLE_ACTION_USE_ON_MOVE_UNLOCK_AT = 20;
31
30
  export interface IUsableActionEvents {
32
31
  preExecute(player: Player, using: IUsableActionPossibleUsing, context: IUsableActionExecutionContext): any;
33
32
  postExecute(player: Player, using: IUsableActionPossibleUsing, context: IUsableActionExecutionContext): any;