@wayward/types 2.12.0-beta.dev.20221002.1 → 2.12.0-beta.dev.20221003.2

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.
@@ -43,7 +43,7 @@ import "utilities/typesglobal/Misc";
43
43
  import "utilities/typesglobal/Objects";
44
44
  import "utilities/typesglobal/Types";
45
45
  declare global {
46
- let absentPlayers: Player[];
46
+ let absentPlayers: Array<Player | undefined>;
47
47
  let audio: WAudio | undefined;
48
48
  let commandManager: CommandManager;
49
49
  let game: Game;
@@ -46,7 +46,7 @@ export declare const usableActionSets: {
46
46
  4: UsableActionGenerator<[]>;
47
47
  5: UsableActionGenerator<[]>;
48
48
  6: UsableActionGenerator<[]>;
49
- 7: import("./UsableActionsDynamic").default<import("game/entity/action/usable/actions/item/UsableActionsUseItem").IUseItemAction, import("../IUsableAction").IUsableActionRequirements>;
49
+ 7: import("./UsableActionsDynamic").default<import("game/entity/action/usable/actions/item/UsableActionsUseItem").IUseItemAction, import("game/entity/action/usable/IUsableAction").IUsableActionRequirements>;
50
50
  8: UsableActionGenerator<[]>;
51
51
  9: UsableActionGenerator<[]>;
52
52
  10: UsableActionGenerator<[]>;
@@ -56,7 +56,7 @@ export declare const usableActionSets: {
56
56
  14: UsableActionGenerator<[]>;
57
57
  15: UsableActionGenerator<[]>;
58
58
  16: UsableActionGenerator<[]>;
59
- 17: import("./UsableActionsDynamic").default<import("game/entity/action/usable/actions/UsableActionsUseNPC").IUseNPCAction, import("../IUsableAction").IUsableActionRequirements>;
59
+ 17: import("./UsableActionsDynamic").default<import("game/entity/action/usable/actions/UsableActionsUseNPC").IUseNPCAction, import("game/entity/action/usable/IUsableAction").IUsableActionRequirements>;
60
60
  18: UsableActionGenerator<[]>;
61
61
  19: UsableActionGenerator<[]>;
62
62
  20: UsableActionGenerator<[]>;
@@ -11,7 +11,7 @@
11
11
  import { ActionType } from "game/entity/action/IAction";
12
12
  import type { IUsableActionDynamicDefinition } from "game/entity/action/usable/actions/UsableActionsDynamic";
13
13
  import UsableActionsDynamic from "game/entity/action/usable/actions/UsableActionsDynamic";
14
- import type { IUsableActionItemRequirement, IUsableActionRequirements } from "game/entity/action/usable/IUsableAction";
14
+ import type { ActionId, IUsableActionItemRequirement, IUsableActionPossibleUsing, IUsableActionRequirements } from "game/entity/action/usable/IUsableAction";
15
15
  import type { IGetBestItemsOptions } from "game/item/IItemManager";
16
16
  import type Item from "game/item/Item";
17
17
  export interface IUseItemAction extends IUsableActionDynamicDefinition {
@@ -25,6 +25,7 @@ export interface IUseItemAction extends IUsableActionDynamicDefinition {
25
25
  export declare namespace IUseItemAction {
26
26
  function getGetItemOptions(actionType: ActionType, useItemAction?: Omit<IUseItemAction, keyof IUsableActionDynamicDefinition>): Partial<IGetBestItemsOptions>;
27
27
  function getItemRequirement(actionType: ActionType, useItemAction?: Omit<IUseItemAction, keyof IUsableActionDynamicDefinition>, getItemOptions?: Partial<IGetBestItemsOptions>): IUsableActionItemRequirement;
28
+ function getPriority(action: ActionId, using: IUsableActionPossibleUsing): number | undefined;
28
29
  }
29
30
  declare const _default: UsableActionsDynamic<IUseItemAction, IUsableActionRequirements>;
30
31
  export default _default;
@@ -61,5 +61,15 @@ export default class PlayerManager extends EntityManager<Player> {
61
61
  * Use with caution!
62
62
  */
63
63
  permanentlyDelete(player: Player): void;
64
- private removeFromAbsentPlayers;
64
+ /**
65
+ * Moves to the player to the target array
66
+ * @param source Where they are coming from. It's okay if they aren't in this array
67
+ * @param destination Where the player should be added to
68
+ * @param player The player to move
69
+ */
70
+ private movePlayerTo;
71
+ /**
72
+ * Finds the first available player id in the array
73
+ */
74
+ private findAvailablePlayerId;
65
75
  }
@@ -253,6 +253,10 @@ export interface IItemDescription extends IObjectDescription, IModdable, ITemper
253
253
  * If set to true, this item will not grant quality bonuses (durability/quality bonuses) when used in a craft. Aptitude and tiers will still apply.
254
254
  */
255
255
  noCraftingQualityBonus?: boolean;
256
+ /**
257
+ * A float that items inside the container will be reduced by when in a player's inventory.
258
+ */
259
+ reducedStoredItemsWeight?: number;
256
260
  onEquip?(item: Item): void;
257
261
  onUnequip?(item: Item): void;
258
262
  }
@@ -64,6 +64,7 @@ export default class TranslationImpl implements Omit<ISerializable, "deserialize
64
64
  constructor(dictionary: Dictionary | string, entry: number | string, index?: "random" | number);
65
65
  constructor(translationId: string);
66
66
  equals(translation: TranslationImpl): boolean;
67
+ clone(): TranslationImpl;
67
68
  withSegments(...segments: ISegment[]): this;
68
69
  withSegments(priority: true, ...segments: ISegment[]): this;
69
70
  withTooltip(tooltip?: Falsy | ITooltipSection["tooltip"]): this;
@@ -84,6 +84,6 @@ export default class ActionsConfigurationDrawer extends Component implements IRe
84
84
  private slottedItemActionButton?;
85
85
  private slotButton;
86
86
  private selectAction;
87
- private updateConfigurationColumn;
87
+ updateConfigurationColumn(): void;
88
88
  private getAction;
89
89
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wayward/types",
3
3
  "description": "TypeScript declarations for Wayward, used for modding.",
4
- "version": "2.12.0-beta.dev.20221002.1",
4
+ "version": "2.12.0-beta.dev.20221003.2",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",