@wayward/types 2.14.0-beta.dev.20241114.1 → 2.14.0-beta.dev.20241115.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.
@@ -25,12 +25,8 @@ import { Direction } from "@wayward/game/utilities/math/Direction";
25
25
  import type { IVector3 } from "@wayward/game/utilities/math/IVector";
26
26
  export declare class Action<A extends ActionArguments, E extends Entity = Entity, R = void, CU extends IActionUsable = IActionUsable, AV extends any[] = ActionArgumentTupleTypes<A>> implements IActionDescription<A, E, R, CU, AV> {
27
27
  readonly argumentTypes: A;
28
- readonly usability: {
29
- [key in ActionUsability]?: boolean;
30
- };
31
- readonly flags: {
32
- [key in ActionFlag]?: boolean;
33
- };
28
+ readonly usability: PartialRecord<ActionUsability, boolean>;
29
+ readonly flags: PartialRecord<ActionFlag, boolean>;
34
30
  validExecutors: Set<EntityType>;
35
31
  preExecutionHandler?: (actionApi: IActionApi<E, CU>, ...args: AV) => any;
36
32
  canUseHandler: (actionApi: IActionHandlerApi<E, CU>, ...args: AV) => CU | IActionNotUsable;
@@ -24,7 +24,7 @@ import type { InspectType } from "@wayward/game/game/inspection/IInspection";
24
24
  import type { IIcon } from "@wayward/game/game/inspection/InfoProvider";
25
25
  import type Inspection from "@wayward/game/game/inspection/Inspection";
26
26
  import type { Quality } from "@wayward/game/game/IObject";
27
- import type { IItemDescription, ItemType } from "@wayward/game/game/item/IItem";
27
+ import type { IContainer, IItemDescription, ItemType } from "@wayward/game/game/item/IItem";
28
28
  import type Item from "@wayward/game/game/item/Item";
29
29
  import type ItemFinder from "@wayward/game/game/item/ItemFinder";
30
30
  import type { IItemFinderOptions } from "@wayward/game/game/item/ItemFinder";
@@ -93,6 +93,7 @@ export interface IUsableActionPossibleUsing {
93
93
  item?: Item;
94
94
  itemType?: ItemType;
95
95
  itemQuality?: ArrayOr<Quality>;
96
+ container?: IContainer;
96
97
  doodad?: Doodad;
97
98
  vehicle?: Doodad;
98
99
  creature?: Creature;
@@ -76,6 +76,7 @@ export interface ISerializedIcon extends IIcon {
76
76
  path: string | ISerializedImagePath;
77
77
  }
78
78
  export declare abstract class InfoProvider extends EventEmitter.Host<IInfoProviderEvents> implements IRefreshable {
79
+ private static bus?;
79
80
  static multiTextParagraph: string;
80
81
  static create(...translations: TranslationGenerator[]): SimpleInfoProvider;
81
82
  static dynamic<T>(observer: BaseObserver<T>, supplier: (value: T) => InfoProvider | undefined): SimpleInfoProvider;
@@ -106,6 +107,7 @@ export declare abstract class InfoProvider extends EventEmitter.Host<IInfoProvid
106
107
  hasContent(_context: InfoProviderContext): boolean;
107
108
  init(): void;
108
109
  readonly subscribeRefreshOn: BaseObserver.IRegistrar<this>;
110
+ private dirty;
109
111
  /**
110
112
  * Call when this info provider should be refreshed.
111
113
  */
@@ -225,7 +225,7 @@ export interface IIslandTickOptions {
225
225
  ticks: number;
226
226
  tickFlags?: TickFlag;
227
227
  playingHumans?: Human[];
228
- dueToAction?: boolean;
228
+ dueToAction?: Human;
229
229
  }
230
230
  export interface IIslandTickAsyncOptions extends IIslandTickOptions {
231
231
  onProgress?: (progess: number) => Promise<void>;
@@ -17,7 +17,8 @@ import type { RuneChance } from "@wayward/game/game/deity/IDeities";
17
17
  import type { DoodadType, DoodadTypeGroup } from "@wayward/game/game/doodad/IDoodad";
18
18
  import type Human from "@wayward/game/game/entity/Human";
19
19
  import type { DamageType, Defense, EntityType, ICastable, MoveType } from "@wayward/game/game/entity/IEntity";
20
- import { SkillType, type Delay, type EquipType } from "@wayward/game/game/entity/IHuman";
20
+ import type { SkillType } from "@wayward/game/game/entity/IHuman";
21
+ import { type Delay, type EquipType } from "@wayward/game/game/entity/IHuman";
21
22
  import { Stat } from "@wayward/game/game/entity/IStats";
22
23
  import type { IActionApi } from "@wayward/game/game/entity/action/IAction";
23
24
  import { ActionType } from "@wayward/game/game/entity/action/IAction";
@@ -1686,7 +1687,8 @@ export type DisplayableItemType = ItemType | ItemTypeExtra;
1686
1687
  export declare enum ItemTag {
1687
1688
  None = 0,
1688
1689
  ShipperBoat = 1,
1689
- Rune = 2
1690
+ Rune = 2,
1691
+ VersatileApplied = 3
1690
1692
  }
1691
1693
  export declare enum ItemTypeGroup {
1692
1694
  Invalid = -9999,
@@ -79,6 +79,7 @@ export interface IGetBestItemsOptions extends IGetItemsOptions {
79
79
  filterQuality: ArrayOr<Quality>;
80
80
  filterGroup: ItemTypeGroup;
81
81
  filterConsumable: true;
82
+ filterContainer: IContainer;
82
83
  targetCreature: Creature;
83
84
  filter(item: Item): any;
84
85
  }
@@ -24,10 +24,16 @@ export default class Versatile extends MilestoneModifier {
24
24
  getGroup(): MilestoneModifierGroup;
25
25
  instantiate(id: Milestone, player?: Player): VersatileMilestoneModifierInstance | undefined;
26
26
  }
27
+ interface IVersatileOutcome extends IDamageOutcome {
28
+ versatileApplied?: true;
29
+ }
30
+ interface VersatileDefense extends Defense {
31
+ versatileApplied?: true;
32
+ }
27
33
  declare class VersatileMilestoneModifierInstance extends MilestoneModifierInstance<Record<string, Map<CreatureType, Set<DamageType>>>> {
28
34
  protected onCreateItem(manager: ItemManager, item: Item): void;
29
- protected getDefense(island: Island, defense: Defense | undefined, target: Human | Creature | CreatureType, damageType?: DamageType): Defense | undefined;
30
- protected calculateAttackOutcome(island: Island, outcome: IDamageOutcome, input: IDamageOutcomeInput, attackValue: number, defenseValue: number): IDamageOutcome | undefined;
35
+ protected getDefense(island: Island, defense: VersatileDefense | undefined, target: Human | Creature | CreatureType, damageType?: DamageType): Defense | undefined;
36
+ protected calculateAttackOutcome(island: Island, outcome: IVersatileOutcome, input: IDamageOutcomeInput, attackValue: number, defenseValue: number): IDamageOutcome | undefined;
31
37
  protected hasDiscoveredVulnOrResist(player: Player, creature: CreatureType, damageType: DamageType): boolean | undefined;
32
38
  protected discoverVulnOrResist(player: Player, creature: CreatureType, damageType: DamageType): void;
33
39
  protected getDiscoveredVulnsAndResists(player: Player): Map<CreatureType, Set<DamageType>>;
@@ -793,162 +793,164 @@ declare enum UiTranslation {
793
793
  MenuOptionsButtonDropIntoContainersTooltip = 778,
794
794
  MenuOptionsButtonWarnOnDangerousActions = 779,
795
795
  MenuOptionsButtonWarnOnDangerousActionsTooltip = 780,
796
- MenuOptionsButtonWarnWhenBreakingItemsOnCraft = 781,
797
- MenuOptionsButtonWarnWhenBreakingItemsOnCraftTooltip = 782,
798
- MenuOptionsButtonWarnWhenBreakingItemsOnUse = 783,
799
- MenuOptionsButtonWarnWhenBreakingItemsOnUseTooltip = 784,
800
- MenuOptionsHeadingWarnWhenBreakingItems = 785,
801
- MenuOptionsButtonSaveDataClearBindings = 786,
802
- MenuOptionsLabelSaveDataRemoval = 787,
803
- MenuOptionsTooltipDialogOpacity = 788,
804
- MenuOptionsLabelDialogOpacity = 789,
805
- MenuOptionsDeveloperSteamBetas = 790,
806
- MenuOptionsDeveloperSteamBetaName = 791,
807
- MenuOptionsDeveloperLogSourceFilterHeading = 792,
808
- MenuOptionsDeveloperUIExperiments = 793,
809
- MenuOptionsDeveloperUIExperimentsDescription = 794,
810
- MenuOptionsAudioVolumeDisplay = 795,
811
- MenuOptionsAudioInputSoundOnTyping = 796,
812
- MenuOptionsAudioPlayAudioInBackground = 797,
813
- MenuOptionsMusicPlaylist = 798,
814
- MenuOptionsButtonConfigureBindings = 799,
815
- MenuOptionsButtonSaveCompression = 800,
816
- MenuOptionsButtonSaveCompressionTooltip = 801,
817
- MenuOptionsButtonSaveUIDataGlobally = 802,
818
- MenuOptionsButtonSaveUIDataGloballyTooltip = 803,
819
- MenuPauseButtonContinueGame = 804,
820
- MenuPauseButtonReturnToGame = 805,
821
- MenuPauseButtonOptions = 806,
822
- MenuPauseButtonGameSettings = 807,
823
- MenuPauseButtonPaused = 808,
824
- MenuPauseButtonMultiplayer = 809,
825
- MenuPauseButtonHelp = 810,
826
- MenuPauseButtonTitleScreen = 811,
827
- MenuPauseButtonStopServer = 812,
828
- MenuPauseButtonQuitWithoutSaving = 813,
829
- MenuPauseTooltipNotPaused = 814,
830
- MenuPauseLabelPaused = 815,
831
- MenuPauseLabelNotPaused = 816,
832
- MenuModesTitle = 817,
833
- MenuModesDescription = 818,
834
- MenuMultiplayerOptionsTitle = 819,
835
- MenuMultiplayerOptionsDescription = 820,
836
- MenuMultiplayerOptionsOpenServer = 821,
837
- MenuMultiplayerOptionsOpenServerDescription = 822,
838
- MenuMultiplayerOptionsCopyGameCode = 823,
839
- MenuMultiplayerOptionsCopyGameCodeTooltip = 824,
840
- MenuMultiplayerOptionsInviteSteamFriends = 825,
841
- MenuMultiplayerOptionsCheckConnectionHeading = 826,
842
- MenuMultiplayerOptionsCheckConnectionParagraph = 827,
843
- MenuMultiplayerOptionsCheckConnectionButton = 828,
844
- MenuMultiplayerOptionsCheckConnectionResultUnknown = 829,
845
- MenuMultiplayerOptionsCheckConnectionResultChecking = 830,
846
- MenuMultiplayerOptionsCheckConnectionResultSteamRelayNetwork = 831,
847
- MenuMultiplayerOptionsCheckConnectionResultSteamRelayNetworkFail = 832,
848
- MenuMultiplayerOptionsCheckConnectionResultSteamRelayNetworkUnavailable = 833,
849
- MenuMultiplayerOptionsCheckConnectionResultWebSocket = 834,
850
- MenuMultiplayerOptionsCheckConnectionResultWebSocketFail = 835,
851
- MenuMultiplayerOptionsCheckConnectionResultWebSocketUnavailable = 836,
852
- MenuMultiplayerOptionsCheckConnectionResultSuccess = 837,
853
- MenuJoinServerTitle = 838,
854
- MenuJoinServerDescription = 839,
855
- MenuJoinServerInputPlaceholder = 840,
856
- MenuJoinServerChooseModifiersTitle = 841,
857
- MenuJoinServerChooseModifiersDescription = 842,
858
- MenuSharedMultiplayerChoiceLobbyTypeFriends = 843,
859
- MenuSharedMultiplayerChoiceLobbyTypeFriendsDescription = 844,
860
- MenuSharedMultiplayerChoiceLobbyTypePublic = 845,
861
- MenuSharedMultiplayerChoiceLobbyTypePublicDescription = 846,
862
- MenuSharedMultiplayerChoiceLobbyTypePrivate = 847,
863
- MenuSharedMultiplayerChoiceLobbyTypePrivateDescription = 848,
864
- MenuSharedMultiplayerChoicePVP = 849,
865
- MenuSharedMultiplayerChoicePVPDescription = 850,
866
- MenuSharedMultiplayerChoiceAllowTraveling = 851,
867
- MenuSharedMultiplayerChoiceAllowTravelingDescription = 852,
868
- MenuSharedMultiplayerChoiceAllowHardcoreRespawns = 853,
869
- MenuSharedMultiplayerChoiceAllowHardcoreRespawnsDescription = 854,
870
- MenuSharedMultiplayerChoicePauseOnDesync = 855,
871
- MenuSharedMultiplayerChoicePauseOnDesyncDescription = 856,
872
- MenuSharedMultiplayerDescription = 857,
873
- MenuSharedMultiplayerMessageOfTheDay = 858,
874
- MenuSharedMultiplayerMaxPlayers = 859,
875
- MenuSharedRealTimeTickSpeedTooltip = 860,
876
- MenuSharedRealTimeTickSpeedLabel = 861,
877
- MenuSharedButtonDefault = 862,
878
- MenuSharedValueSeconds = 863,
879
- MenuSharedValueMilliseconds = 864,
880
- MenuSharedValueTurns = 865,
881
- MenuSharedValuePercentage = 866,
882
- MenuSharedMilestonesNotUnlockable = 867,
883
- MenuSharedMilestonesNotUnlockableDescription = 868,
884
- MenuSharedMilestonesNotUnlockableButtonShowMods = 869,
885
- MenuSharedButtonDisableAll = 870,
886
- MenuSharedButtonEnableAll = 871,
887
- MenuSharedMilestoneModifiersSelected = 872,
888
- MiscSortBy = 873,
889
- MiscSortCustom = 874,
890
- MiscSortDirection = 875,
891
- MiscFilter = 876,
892
- MiscNone = 877,
893
- MiscPlayerNameDefault = 878,
894
- MiscPlayerNameServer = 879,
895
- MiscSaveNameDefault = 880,
896
- MiscSaveNameDailyChallenge = 881,
897
- MiscSaveNameChallenge = 882,
898
- MiscSaveVersionUnknown = 883,
899
- MiscVersion = 884,
900
- MiscVersionBuildInfoTooltip = 885,
901
- MiscVersionUpdate = 886,
902
- MiscTime = 887,
903
- MiscTimeMeridiem = 888,
904
- MiscError = 889,
905
- MiscContextMenuCopyTooltip = 890,
906
- MiscBindableNoBindings = 891,
907
- MiscBindingIcon = 892,
908
- MiscBindingIconThen = 893,
909
- DifficultyOptionsPeaceful = 894,
910
- DifficultyOptionsAberrantSpawnsDisabled = 895,
911
- DifficultyOptionsAberrantSpawnsOnly = 896,
912
- DifficultyOptionsCreatureSpawningDisabled = 897,
913
- DifficultyOptionsCreatureAlwaysSpawns = 898,
914
- DifficultyOptionsCreatureSpawnsDefault = 899,
915
- DifficultyOptionsCreatureSpawnsAberrantOnly = 900,
916
- DifficultyOptionsCreatureSpawnsNoAberrants = 901,
917
- DifficultyOptionsSpawnLimit = 902,
918
- DifficultyOptionsSpawnRateMultiplier = 903,
919
- DifficultyOptionsDisableScared = 904,
920
- DifficultyOptionsRespawn = 905,
921
- DifficultyOptionsEternalNight = 906,
922
- DifficultyOptionsEternalDay = 907,
923
- DifficultyOptionsTimeInitial = 908,
924
- DifficultyOptionsTimeFrozen = 909,
925
- DifficultyOptionsTimeDayLength = 910,
926
- DifficultyOptionsTimeDayPercent = 911,
927
- DifficultyOptionsNoItems = 912,
928
- DifficultyOptionsRecipes = 913,
929
- DifficultyOptionsStartingIsland = 914,
930
- DifficultyOptionsTravelingEffectsDisabled = 915,
931
- DifficultyOptionsLuck = 916,
932
- DifficultyOptionsWeightBonus = 917,
933
- DifficultyOptionsStatInitial = 918,
934
- DifficultyOptionsStatMax = 919,
935
- DifficultyOptionsStatMultiplier = 920,
936
- DifficultyOptionsStatusStartWith = 921,
937
- DifficultyOptionsStatusUntreatable = 922,
938
- DifficultyOptionsStatusPassChanceMultiplier = 923,
939
- DifficultyOptionsNoRandomSkills = 924,
940
- DifficultyOptionsSkillStartingCount = 925,
941
- DifficultyOptionsSkillGainMultiplier = 926,
942
- DifficultyOptionsSkillInitial = 927,
943
- DifficultyOptionsStatusPermanent = 928,
944
- DifficultyOptionsStatusRateMultiplier = 929,
945
- DifficultyOptionsStatusMultiplier = 930,
946
- DifficultyOptionsItemDurabilityMultiplier = 931,
947
- DifficultyOptionsItemDecayMultiplier = 932,
948
- DifficultyOptionsTileContainersEnabled = 933,
949
- TabCrafting = 934,
950
- TabDismantle = 935,
951
- WindowTitleContainer = 936,
952
- WindowTitleInventory = 937
796
+ MenuOptionsButtonWarnOnDestructiveActions = 781,
797
+ MenuOptionsButtonWarnOnDestructiveActionsTooltip = 782,
798
+ MenuOptionsButtonWarnWhenBreakingItemsOnCraft = 783,
799
+ MenuOptionsButtonWarnWhenBreakingItemsOnCraftTooltip = 784,
800
+ MenuOptionsButtonWarnWhenBreakingItemsOnUse = 785,
801
+ MenuOptionsButtonWarnWhenBreakingItemsOnUseTooltip = 786,
802
+ MenuOptionsHeadingWarnWhenBreakingItems = 787,
803
+ MenuOptionsButtonSaveDataClearBindings = 788,
804
+ MenuOptionsLabelSaveDataRemoval = 789,
805
+ MenuOptionsTooltipDialogOpacity = 790,
806
+ MenuOptionsLabelDialogOpacity = 791,
807
+ MenuOptionsDeveloperSteamBetas = 792,
808
+ MenuOptionsDeveloperSteamBetaName = 793,
809
+ MenuOptionsDeveloperLogSourceFilterHeading = 794,
810
+ MenuOptionsDeveloperUIExperiments = 795,
811
+ MenuOptionsDeveloperUIExperimentsDescription = 796,
812
+ MenuOptionsAudioVolumeDisplay = 797,
813
+ MenuOptionsAudioInputSoundOnTyping = 798,
814
+ MenuOptionsAudioPlayAudioInBackground = 799,
815
+ MenuOptionsMusicPlaylist = 800,
816
+ MenuOptionsButtonConfigureBindings = 801,
817
+ MenuOptionsButtonSaveCompression = 802,
818
+ MenuOptionsButtonSaveCompressionTooltip = 803,
819
+ MenuOptionsButtonSaveUIDataGlobally = 804,
820
+ MenuOptionsButtonSaveUIDataGloballyTooltip = 805,
821
+ MenuPauseButtonContinueGame = 806,
822
+ MenuPauseButtonReturnToGame = 807,
823
+ MenuPauseButtonOptions = 808,
824
+ MenuPauseButtonGameSettings = 809,
825
+ MenuPauseButtonPaused = 810,
826
+ MenuPauseButtonMultiplayer = 811,
827
+ MenuPauseButtonHelp = 812,
828
+ MenuPauseButtonTitleScreen = 813,
829
+ MenuPauseButtonStopServer = 814,
830
+ MenuPauseButtonQuitWithoutSaving = 815,
831
+ MenuPauseTooltipNotPaused = 816,
832
+ MenuPauseLabelPaused = 817,
833
+ MenuPauseLabelNotPaused = 818,
834
+ MenuModesTitle = 819,
835
+ MenuModesDescription = 820,
836
+ MenuMultiplayerOptionsTitle = 821,
837
+ MenuMultiplayerOptionsDescription = 822,
838
+ MenuMultiplayerOptionsOpenServer = 823,
839
+ MenuMultiplayerOptionsOpenServerDescription = 824,
840
+ MenuMultiplayerOptionsCopyGameCode = 825,
841
+ MenuMultiplayerOptionsCopyGameCodeTooltip = 826,
842
+ MenuMultiplayerOptionsInviteSteamFriends = 827,
843
+ MenuMultiplayerOptionsCheckConnectionHeading = 828,
844
+ MenuMultiplayerOptionsCheckConnectionParagraph = 829,
845
+ MenuMultiplayerOptionsCheckConnectionButton = 830,
846
+ MenuMultiplayerOptionsCheckConnectionResultUnknown = 831,
847
+ MenuMultiplayerOptionsCheckConnectionResultChecking = 832,
848
+ MenuMultiplayerOptionsCheckConnectionResultSteamRelayNetwork = 833,
849
+ MenuMultiplayerOptionsCheckConnectionResultSteamRelayNetworkFail = 834,
850
+ MenuMultiplayerOptionsCheckConnectionResultSteamRelayNetworkUnavailable = 835,
851
+ MenuMultiplayerOptionsCheckConnectionResultWebSocket = 836,
852
+ MenuMultiplayerOptionsCheckConnectionResultWebSocketFail = 837,
853
+ MenuMultiplayerOptionsCheckConnectionResultWebSocketUnavailable = 838,
854
+ MenuMultiplayerOptionsCheckConnectionResultSuccess = 839,
855
+ MenuJoinServerTitle = 840,
856
+ MenuJoinServerDescription = 841,
857
+ MenuJoinServerInputPlaceholder = 842,
858
+ MenuJoinServerChooseModifiersTitle = 843,
859
+ MenuJoinServerChooseModifiersDescription = 844,
860
+ MenuSharedMultiplayerChoiceLobbyTypeFriends = 845,
861
+ MenuSharedMultiplayerChoiceLobbyTypeFriendsDescription = 846,
862
+ MenuSharedMultiplayerChoiceLobbyTypePublic = 847,
863
+ MenuSharedMultiplayerChoiceLobbyTypePublicDescription = 848,
864
+ MenuSharedMultiplayerChoiceLobbyTypePrivate = 849,
865
+ MenuSharedMultiplayerChoiceLobbyTypePrivateDescription = 850,
866
+ MenuSharedMultiplayerChoicePVP = 851,
867
+ MenuSharedMultiplayerChoicePVPDescription = 852,
868
+ MenuSharedMultiplayerChoiceAllowTraveling = 853,
869
+ MenuSharedMultiplayerChoiceAllowTravelingDescription = 854,
870
+ MenuSharedMultiplayerChoiceAllowHardcoreRespawns = 855,
871
+ MenuSharedMultiplayerChoiceAllowHardcoreRespawnsDescription = 856,
872
+ MenuSharedMultiplayerChoicePauseOnDesync = 857,
873
+ MenuSharedMultiplayerChoicePauseOnDesyncDescription = 858,
874
+ MenuSharedMultiplayerDescription = 859,
875
+ MenuSharedMultiplayerMessageOfTheDay = 860,
876
+ MenuSharedMultiplayerMaxPlayers = 861,
877
+ MenuSharedRealTimeTickSpeedTooltip = 862,
878
+ MenuSharedRealTimeTickSpeedLabel = 863,
879
+ MenuSharedButtonDefault = 864,
880
+ MenuSharedValueSeconds = 865,
881
+ MenuSharedValueMilliseconds = 866,
882
+ MenuSharedValueTurns = 867,
883
+ MenuSharedValuePercentage = 868,
884
+ MenuSharedMilestonesNotUnlockable = 869,
885
+ MenuSharedMilestonesNotUnlockableDescription = 870,
886
+ MenuSharedMilestonesNotUnlockableButtonShowMods = 871,
887
+ MenuSharedButtonDisableAll = 872,
888
+ MenuSharedButtonEnableAll = 873,
889
+ MenuSharedMilestoneModifiersSelected = 874,
890
+ MiscSortBy = 875,
891
+ MiscSortCustom = 876,
892
+ MiscSortDirection = 877,
893
+ MiscFilter = 878,
894
+ MiscNone = 879,
895
+ MiscPlayerNameDefault = 880,
896
+ MiscPlayerNameServer = 881,
897
+ MiscSaveNameDefault = 882,
898
+ MiscSaveNameDailyChallenge = 883,
899
+ MiscSaveNameChallenge = 884,
900
+ MiscSaveVersionUnknown = 885,
901
+ MiscVersion = 886,
902
+ MiscVersionBuildInfoTooltip = 887,
903
+ MiscVersionUpdate = 888,
904
+ MiscTime = 889,
905
+ MiscTimeMeridiem = 890,
906
+ MiscError = 891,
907
+ MiscContextMenuCopyTooltip = 892,
908
+ MiscBindableNoBindings = 893,
909
+ MiscBindingIcon = 894,
910
+ MiscBindingIconThen = 895,
911
+ DifficultyOptionsPeaceful = 896,
912
+ DifficultyOptionsAberrantSpawnsDisabled = 897,
913
+ DifficultyOptionsAberrantSpawnsOnly = 898,
914
+ DifficultyOptionsCreatureSpawningDisabled = 899,
915
+ DifficultyOptionsCreatureAlwaysSpawns = 900,
916
+ DifficultyOptionsCreatureSpawnsDefault = 901,
917
+ DifficultyOptionsCreatureSpawnsAberrantOnly = 902,
918
+ DifficultyOptionsCreatureSpawnsNoAberrants = 903,
919
+ DifficultyOptionsSpawnLimit = 904,
920
+ DifficultyOptionsSpawnRateMultiplier = 905,
921
+ DifficultyOptionsDisableScared = 906,
922
+ DifficultyOptionsRespawn = 907,
923
+ DifficultyOptionsEternalNight = 908,
924
+ DifficultyOptionsEternalDay = 909,
925
+ DifficultyOptionsTimeInitial = 910,
926
+ DifficultyOptionsTimeFrozen = 911,
927
+ DifficultyOptionsTimeDayLength = 912,
928
+ DifficultyOptionsTimeDayPercent = 913,
929
+ DifficultyOptionsNoItems = 914,
930
+ DifficultyOptionsRecipes = 915,
931
+ DifficultyOptionsStartingIsland = 916,
932
+ DifficultyOptionsTravelingEffectsDisabled = 917,
933
+ DifficultyOptionsLuck = 918,
934
+ DifficultyOptionsWeightBonus = 919,
935
+ DifficultyOptionsStatInitial = 920,
936
+ DifficultyOptionsStatMax = 921,
937
+ DifficultyOptionsStatMultiplier = 922,
938
+ DifficultyOptionsStatusStartWith = 923,
939
+ DifficultyOptionsStatusUntreatable = 924,
940
+ DifficultyOptionsStatusPassChanceMultiplier = 925,
941
+ DifficultyOptionsNoRandomSkills = 926,
942
+ DifficultyOptionsSkillStartingCount = 927,
943
+ DifficultyOptionsSkillGainMultiplier = 928,
944
+ DifficultyOptionsSkillInitial = 929,
945
+ DifficultyOptionsStatusPermanent = 930,
946
+ DifficultyOptionsStatusRateMultiplier = 931,
947
+ DifficultyOptionsStatusMultiplier = 932,
948
+ DifficultyOptionsItemDurabilityMultiplier = 933,
949
+ DifficultyOptionsItemDecayMultiplier = 934,
950
+ DifficultyOptionsTileContainersEnabled = 935,
951
+ TabCrafting = 936,
952
+ TabDismantle = 937,
953
+ WindowTitleContainer = 938,
954
+ WindowTitleInventory = 939
953
955
  }
954
956
  export default UiTranslation;
@@ -87,6 +87,7 @@ export interface IOptions {
87
87
  volumeEffects: number;
88
88
  volumeMusic: number;
89
89
  warnOnDangerousActions: boolean;
90
+ warnOnDestructiveActions: boolean;
90
91
  warnWhenBreakingItems: boolean;
91
92
  warnWhenBreakingItemsOnCraft: boolean;
92
93
  windowMode: boolean;
@@ -65,193 +65,192 @@ declare enum Bindable {
65
65
  GameActionsItems = 46,
66
66
  GameActionsInFront = 47,
67
67
  GameActionsItemsInFront = 48,
68
- GameActionEquip = 49,
69
- GameActionEquipLeft = 50,
70
- GameActionEquipRight = 51,
71
- GameActionUnequip = 52,
72
- GameActionCloseContainer = 53,
73
- GameActionOpenContainer = 54,
74
- GameActionButcher = 55,
75
- GameActionHarvest = 56,
76
- GameActionChop = 57,
77
- GameActionMine = 58,
78
- GameActionMelee = 59,
79
- GameActionGatherLiquid = 60,
80
- GameActionAttachContainer = 61,
81
- GameActionDetachContainer = 62,
82
- GameActionSwapWithArmorStand = 63,
83
- GameActionEquipFromArmorStand = 64,
84
- GameActionTakeFromArmorStand = 65,
85
- GameActionRotate = 66,
86
- GameActionDumpItems = 67,
87
- GameActionDisplayItem = 68,
88
- GameActionDisplayLeft = 69,
89
- GameActionDisplayRight = 70,
90
- GameActionKneel = 71,
91
- GameActionPour = 72,
92
- GameActionPourOnYourself = 73,
93
- GameActionDrink = 74,
94
- GameActionBuild = 75,
95
- GameActionCraft = 76,
96
- GameActionDisassemble = 77,
97
- GameActionDismantle = 78,
98
- GameActionOffer = 79,
99
- GameActionRepair = 80,
100
- GameActionThrow = 81,
101
- GameActionRename = 82,
102
- GameActionStartFire = 83,
103
- GameActionExtinguish = 84,
104
- GameActionDrop = 85,
105
- GameActionDropAll = 86,
106
- GameActionDropAllOfSameQuality = 87,
107
- GameActionDig = 88,
108
- GameActionTill = 89,
109
- GameActionPackGround = 90,
110
- GameActionEat = 91,
111
- GameActionCast = 92,
112
- GameActionRest = 93,
113
- GameActionSleep = 94,
114
- GameActionCure = 95,
115
- GameActionLockpick = 96,
116
- GameActionUseVehicle = 97,
117
- GameActionDismount = 98,
118
- GameActionGrasp = 99,
119
- GameActionAbsorb = 100,
120
- GameActionExude = 101,
121
- GameActionIgnite = 102,
122
- GameActionSetDown = 103,
123
- GameActionRubClockwise = 104,
124
- GameActionRubCounterclockwise = 105,
125
- GameActionRead = 106,
126
- GameActionLearn = 107,
127
- GameActionOpenBottle = 108,
128
- GameActionSqueeze = 109,
129
- GameActionGatherWithHands = 110,
130
- GameActionHarvestWithHands = 111,
131
- GameActionDigWithHands = 112,
132
- GameActionTillWithHands = 113,
133
- GameActionPickUpExcrementWithHands = 114,
134
- GameActionCageCreature = 115,
135
- GameActionPickUpItem = 116,
136
- GameActionPickUpAllItems = 117,
137
- GameActionPickUpDoodad = 118,
138
- GameActionTame = 119,
139
- GameActionRelease = 120,
140
- GameActionUncage = 121,
141
- GameActionPet = 122,
142
- GameActionHitch = 123,
143
- GameActionUnhitch = 124,
144
- GameActionToggleHitch = 125,
145
- GameActionCommandCreature = 126,
146
- GameActionCreatureFollowCloseAi = 127,
147
- GameActionCreatureFollowFarAi = 128,
148
- GameActionCreatureStayAi = 129,
149
- GameActionCreatureDefendAi = 130,
150
- GameActionCreatureAttackAi = 131,
151
- GameActionJump = 132,
152
- GameActionAttack = 133,
153
- GameActionPlant = 134,
154
- GameActionPlaceDown = 135,
155
- GameActionTrade = 136,
156
- GameActionShipToIsland = 137,
157
- GameActionShoot = 138,
158
- GameActionFire = 139,
159
- GameActionProtect = 140,
160
- GameActionUnprotect = 141,
161
- GameActionSmotherFire = 142,
162
- GameActionStokeFire = 143,
163
- GameActionHeal = 144,
164
- GameActionHealOther = 145,
165
- GameActionTestDepth = 146,
166
- GameActionReadMap = 147,
167
- GameActionPreserve = 148,
168
- GameActionReinforce = 149,
169
- GameActionTellTime = 150,
170
- GameActionEnchant = 151,
171
- GameActionSailToCivilization = 152,
172
- GameActionTeleport = 153,
173
- GameActionDrawMap = 154,
174
- GameActionApply = 155,
175
- GameActionRefine = 156,
176
- GameActionTransmogrify = 157,
177
- GameActionNavigate = 158,
178
- GameActionUpgrade = 159,
179
- GameActionEnhance = 160,
180
- GameActionAlter = 161,
181
- GameActionSummon = 162,
182
- GameActionInvoke = 163,
183
- GameActionExudeWithItem = 164,
184
- GameActionAbsorbWithItem = 165,
185
- GameActionIgniteWithItem = 166,
186
- GameActionAddFuelWithItem = 167,
187
- GameActionPreserveWithItem = 168,
188
- GameActionRefineWithItem = 169,
189
- GameActionAlterWithItem = 170,
190
- GameActionUpgradeWithItem = 171,
191
- GameActionTransmogrifyWithItem = 172,
192
- GameActionEnchantWithItem = 173,
193
- GameActionEnhanceWithItem = 174,
194
- GameActionReinforceWithItem = 175,
195
- GameActionRepairWithItem = 176,
196
- GameActionItemMove = 177,
197
- GameActionItemMoveAll = 178,
198
- GameActionItemMoveAllOfSameQuality = 179,
199
- GameActionItemMoveToInventory = 180,
200
- GameActionTradeBuyFromTrader = 181,
201
- GameActionTradeSellToTrader = 182,
202
- GameActionItemMoveToActiveContainer = 183,
203
- GameActionItemMoveToFacingContainer = 184,
204
- GameActionMoveContents = 185,
205
- GameActionOpenDoor = 186,
206
- GameActionCloseDoor = 187,
207
- DialogCloseAll = 188,
208
- DialogOptions = 189,
209
- DialogHelp = 190,
210
- DialogMilestones = 191,
211
- DialogNotes = 192,
212
- DialogMessages = 193,
213
- DialogMessagesChatFocus = 194,
214
- DialogInventory = 195,
215
- DialogCrafting = 196,
216
- DialogDismantle = 197,
217
- DialogEquipment = 198,
218
- DialogSkills = 199,
219
- DialogQuests = 200,
220
- DialogIslands = 201,
221
- HudToggleMenuBar = 202,
222
- HudToggleActionBar = 203,
223
- HudToggleMessages = 204,
224
- HudToggleStats = 205,
225
- MenuEnter = 206,
226
- MenuSubmit = 207,
227
- MenuNext = 208,
228
- MenuPrevious = 209,
229
- MenuUp = 210,
230
- MenuDown = 211,
231
- MenuLeft = 212,
232
- MenuRight = 213,
233
- MenuCancel = 214,
234
- MenuNextOption = 215,
235
- TooltipMoreInformation = 216,
236
- TooltipToggle = 217,
237
- MenuPreviousOption = 218,
238
- MenuContextMenu = 219,
239
- MenuSelect = 220,
240
- DeveloperInterfaceScaleUp = 221,
241
- DeveloperInterfaceScaleDown = 222,
242
- DeveloperToggleDeveloperMode = 223,
243
- DeveloperToggleDeveloperTools = 224,
244
- DeveloperReloadGame = 225,
245
- DeveloperReloadWithoutSavingGame = 226,
246
- DeveloperReloadAndContinueGame = 227,
247
- DeveloperReloadWithoutSavingAndContinueGame = 228,
248
- DeveloperReloadStylesheets = 229,
249
- DeveloperReloadTextures = 230,
250
- GameActionReshape = 231,
251
- GameActionReshapeWithItem = 232,
252
- GameActionCreatureHeelAi = 233,
253
- GameActionOpenTileContainer = 234,
254
- GameActionCommandCreatureAll = 235
68
+ GameActionAltarInvoke = 49,
69
+ GameActionAltarKneel = 50,
70
+ GameActionAltarSacrifice = 51,
71
+ GameActionArmorStandDisplayItem = 52,
72
+ GameActionArmorStandDisplayLeft = 53,
73
+ GameActionArmorStandDisplayRight = 54,
74
+ GameActionArmorStandEquip = 55,
75
+ GameActionArmorStandSwap = 56,
76
+ GameActionArmorStandTake = 57,
77
+ GameActionAttackClose = 58,
78
+ GameActionAttackCloseMelee = 59,
79
+ GameActionAttackRangeFire = 60,
80
+ GameActionAttackRangeShoot = 61,
81
+ GameActionAttackRangeThrow = 62,
82
+ GameActionBuild = 63,
83
+ GameActionBuildPlaceDown = 64,
84
+ GameActionBuildSetDown = 65,
85
+ GameActionCage = 66,
86
+ GameActionCageUncage = 67,
87
+ GameActionCast = 68,
88
+ GameActionCommandCreature = 69,
89
+ GameActionCommandCreatureAll = 70,
90
+ GameActionCommandSetAiAttack = 71,
91
+ GameActionCommandSetAiDefend = 72,
92
+ GameActionCommandSetAiFollowClose = 73,
93
+ GameActionCommandSetAiFollowFar = 74,
94
+ GameActionCommandSetAiHeel = 75,
95
+ GameActionCommandSetAiStay = 76,
96
+ GameActionConsumeApply = 77,
97
+ GameActionConsumeCure = 78,
98
+ GameActionConsumeDrink = 79,
99
+ GameActionConsumeEat = 80,
100
+ GameActionConsumeHeal = 81,
101
+ GameActionConsumeHealOther = 82,
102
+ GameActionContainerOpenTile = 83,
103
+ GameActionCraftingCraft = 84,
104
+ GameActionCraftingDisassemble = 85,
105
+ GameActionCraftingDismantle = 86,
106
+ GameActionDoorClose = 87,
107
+ GameActionDoorOpen = 88,
108
+ GameActionEquip = 89,
109
+ GameActionEquipLeft = 90,
110
+ GameActionEquipRight = 91,
111
+ GameActionEquipUnequip = 92,
112
+ GameActionFireAddFuelWithItem = 93,
113
+ GameActionFireExtinguish = 94,
114
+ GameActionFireIgnite = 95,
115
+ GameActionFireIgniteWithItem = 96,
116
+ GameActionFireSmother = 97,
117
+ GameActionFireStart = 98,
118
+ GameActionFireStoke = 99,
119
+ GameActionGatherButcher = 100,
120
+ GameActionGatherChop = 101,
121
+ GameActionGatherDig = 102,
122
+ GameActionGatherDigWithHands = 103,
123
+ GameActionGatherGatherWithHands = 104,
124
+ GameActionGatherHarvest = 105,
125
+ GameActionGatherHarvestWithHands = 106,
126
+ GameActionGatherMine = 107,
127
+ GameActionGrasp = 108,
128
+ GameActionHitch = 109,
129
+ GameActionHitchToggle = 110,
130
+ GameActionHitchUnhitch = 111,
131
+ GameActionImproveBasicEnhance = 112,
132
+ GameActionImproveBasicEnhanceWithItem = 113,
133
+ GameActionImproveBasicPreserve = 114,
134
+ GameActionImproveBasicPreserveWithItem = 115,
135
+ GameActionImproveBasicRefine = 116,
136
+ GameActionImproveBasicRefineWithItem = 117,
137
+ GameActionImproveBasicReinforce = 118,
138
+ GameActionImproveBasicReinforceWithItem = 119,
139
+ GameActionImproveBasicRepair = 120,
140
+ GameActionImproveBasicRepairWithItem = 121,
141
+ GameActionImproveBasicReshape = 122,
142
+ GameActionImproveBasicReshapeWithItem = 123,
143
+ GameActionImproveMagicAbsorb = 124,
144
+ GameActionImproveMagicAbsorbWithItem = 125,
145
+ GameActionImproveMagicAlter = 126,
146
+ GameActionImproveMagicAlterWithItem = 127,
147
+ GameActionImproveMagicEnchant = 128,
148
+ GameActionImproveMagicEnchantWithItem = 129,
149
+ GameActionImproveMagicExude = 130,
150
+ GameActionImproveMagicExudeWithItem = 131,
151
+ GameActionImproveMagicTransmogrify = 132,
152
+ GameActionImproveMagicTransmogrifyWithItem = 133,
153
+ GameActionImproveMagicUpgrade = 134,
154
+ GameActionImproveMagicUpgradeWithItem = 135,
155
+ GameActionItemContainerDumpItems = 136,
156
+ GameActionItemContainerMoveContents = 137,
157
+ GameActionItemContainerStateClose = 138,
158
+ GameActionItemContainerStateOpen = 139,
159
+ GameActionItemDestinationActiveContainer = 140,
160
+ GameActionItemDestinationFacingContainer = 141,
161
+ GameActionItemDestinationInventory = 142,
162
+ GameActionItemDrop = 143,
163
+ GameActionItemDropAll = 144,
164
+ GameActionItemDropAllOfSameQuality = 145,
165
+ GameActionItemMove = 146,
166
+ GameActionItemMoveAll = 147,
167
+ GameActionItemMoveAllOfSameQuality = 148,
168
+ GameActionItemPickUpAllItems = 149,
169
+ GameActionItemPickUpItem = 150,
170
+ GameActionJump = 151,
171
+ GameActionLearn = 152,
172
+ GameActionLiquidGather = 153,
173
+ GameActionLiquidPour = 154,
174
+ GameActionLiquidPourOnYourself = 155,
175
+ GameActionLockpick = 156,
176
+ GameActionMapDraw = 157,
177
+ GameActionMapRead = 158,
178
+ GameActionNavigate = 159,
179
+ GameActionOpenBottle = 160,
180
+ GameActionPickUpDoodad = 161,
181
+ GameActionPickUpExcrementWithHands = 162,
182
+ GameActionPlant = 163,
183
+ GameActionProtect = 164,
184
+ GameActionProtectUnprotect = 165,
185
+ GameActionRead = 166,
186
+ GameActionRename = 167,
187
+ GameActionRest = 168,
188
+ GameActionRestSleep = 169,
189
+ GameActionRotate = 170,
190
+ GameActionSqueeze = 171,
191
+ GameActionStillAttachContainer = 172,
192
+ GameActionStillDetachContainer = 173,
193
+ GameActionSummon = 174,
194
+ GameActionTame = 175,
195
+ GameActionTameOffer = 176,
196
+ GameActionTamePet = 177,
197
+ GameActionTameRelease = 178,
198
+ GameActionTeleport = 179,
199
+ GameActionTellTime = 180,
200
+ GameActionTestDepth = 181,
201
+ GameActionTill = 182,
202
+ GameActionTillUntill = 183,
203
+ GameActionTillWithHands = 184,
204
+ GameActionTrade = 185,
205
+ GameActionTradeBuyFromTrader = 186,
206
+ GameActionTradeSellToTrader = 187,
207
+ GameActionTravelSailToCivilization = 188,
208
+ GameActionTravelShipToIsland = 189,
209
+ GameActionVehicleRide = 190,
210
+ GameActionVehicleUnride = 191,
211
+ DialogCloseAll = 192,
212
+ DialogOptions = 193,
213
+ DialogHelp = 194,
214
+ DialogMilestones = 195,
215
+ DialogNotes = 196,
216
+ DialogMessages = 197,
217
+ DialogMessagesChatFocus = 198,
218
+ DialogInventory = 199,
219
+ DialogCrafting = 200,
220
+ DialogDismantle = 201,
221
+ DialogEquipment = 202,
222
+ DialogSkills = 203,
223
+ DialogQuests = 204,
224
+ DialogIslands = 205,
225
+ HudToggleMenuBar = 206,
226
+ HudToggleActionBar = 207,
227
+ HudToggleMessages = 208,
228
+ HudToggleStats = 209,
229
+ TooltipMoreInformation = 210,
230
+ TooltipToggle = 211,
231
+ MenuEnter = 212,
232
+ MenuSubmit = 213,
233
+ MenuNext = 214,
234
+ MenuPrevious = 215,
235
+ MenuUp = 216,
236
+ MenuDown = 217,
237
+ MenuLeft = 218,
238
+ MenuRight = 219,
239
+ MenuCancel = 220,
240
+ MenuNextOption = 221,
241
+ MenuPreviousOption = 222,
242
+ MenuContextMenu = 223,
243
+ MenuSelect = 224,
244
+ DeveloperInterfaceScaleUp = 225,
245
+ DeveloperInterfaceScaleDown = 226,
246
+ DeveloperToggleDeveloperMode = 227,
247
+ DeveloperToggleDeveloperTools = 228,
248
+ DeveloperReloadGame = 229,
249
+ DeveloperReloadWithoutSavingGame = 230,
250
+ DeveloperReloadAndContinueGame = 231,
251
+ DeveloperReloadWithoutSavingAndContinueGame = 232,
252
+ DeveloperReloadStylesheets = 233,
253
+ DeveloperReloadTextures = 234
255
254
  }
256
255
  export default Bindable;
257
256
  export declare enum BindableType {
@@ -13,6 +13,7 @@ import type UsableAction from "@wayward/game/game/entity/action/usable/UsableAct
13
13
  import Component from "@wayward/game/ui/component/Component";
14
14
  import Input from "@wayward/game/ui/component/Input";
15
15
  import type { IBindHandlerApi } from "@wayward/game/ui/input/Bind";
16
+ import type ActionsConfigurationDrawer from "@wayward/game/ui/screen/screens/game/static/actions/ActionsDrawer";
16
17
  import ActionsList from "@wayward/game/ui/screen/screens/game/static/actions/ActionsList";
17
18
  import SelectionHandler from "@wayward/game/ui/screen/screens/menu/component/SelectionHandler";
18
19
  import type { Events, IEventEmitter } from "@wayward/utilities/event/EventEmitter";
@@ -46,7 +47,7 @@ export default class ActionsSelector extends Component {
46
47
  get action(): UsableAction<IUsableActionRequirements, IUsableActionDefinition> | undefined;
47
48
  private readonly host;
48
49
  private using?;
49
- constructor(host: Component);
50
+ constructor(host: ActionsConfigurationDrawer);
50
51
  listen(): this;
51
52
  unlisten(): this;
52
53
  setSlot(number: number, action: UsableAction | undefined, using: IUsableActionPossibleUsing): void;
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.14.0-beta.dev.20241114.1",
4
+ "version": "2.14.0-beta.dev.20241115.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",