@wayward/types 2.11.4-beta.dev.20220227.1 → 2.11.5-beta.dev.20220228.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/Game.d.ts +1 -1
- package/definitions/game/game/entity/action/Actions.d.ts +1 -0
- package/definitions/game/game/entity/action/IAction.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/UpdateGameOption.d.ts +14 -0
- package/definitions/game/game/options/IGameOptions.d.ts +7 -0
- package/definitions/game/language/dictionary/UiTranslation.d.ts +95 -92
- package/definitions/game/ui/screen/screens/menu/menus/pause/ModesMenu.d.ts +1 -0
- package/definitions/hosts/shared/globals.d.ts +1 -1
- package/package.json +1 -1
|
@@ -112,7 +112,7 @@ export declare class Game extends EventEmitter.Host<IGameEvents> {
|
|
|
112
112
|
getGameMode(): GameMode;
|
|
113
113
|
getGameOptionsBeforeModifiers(): IGameOptions;
|
|
114
114
|
getGameOptions(): IGameOptions;
|
|
115
|
-
|
|
115
|
+
updateGameOptions(gameOptions: IGameOptions): void;
|
|
116
116
|
initializeGameOptions(seed: string | number, mode?: GameMode, options?: IGameOptions, milestoneModifiers?: Set<Milestone>): void;
|
|
117
117
|
initializeModifiers(): void;
|
|
118
118
|
getMovementFinishTime(delay?: Delay | number): number;
|
|
@@ -110,6 +110,7 @@ declare const actionDescriptions: {
|
|
|
110
110
|
77: import("./Action").Action<[], import("../player/Player").default | import("../npc/NPC").default, void, []>;
|
|
111
111
|
89: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby, import("game/entity/action/IAction").ActionArgument.Boolean], import("../player/Player").default | import("../npc/NPC").default, void, [import("../../item/Item").default, boolean]>;
|
|
112
112
|
59: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.Direction, [import("game/entity/action/IAction").ActionArgument.Integer32, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../player/Player").default | import("../npc/NPC").default, void, [import("../../../utilities/math/Direction").Direction.None | import("../../../utilities/math/Direction").Direction.East | import("../../../utilities/math/Direction").Direction.North | import("../../../utilities/math/Direction").Direction.West | import("../../../utilities/math/Direction").Direction.South, (number | undefined)?]>;
|
|
113
|
+
105: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.Object], import("../player/Player").default, void, [any?]>;
|
|
113
114
|
90: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.Container, [import("game/entity/action/IAction").ActionArgument.UnsignedInteger32NumberArray, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../player/Player").default, void, [import("../../item/IItem").IContainer, (number[] | undefined)?]>;
|
|
114
115
|
97: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.Item, import("game/entity/action/IAction").ActionArgument.Integer32, [import("game/entity/action/IAction").ActionArgument.Boolean, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../player/Player").default, void, [import("../../item/Item").default, number, (boolean | undefined)?]>;
|
|
115
116
|
104: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.String, import("game/entity/action/IAction").ActionArgument.Object], import("../player/Player").default, void, [string, any?]>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2011-2021 Unlok
|
|
3
|
+
* https://www.unlok.ca
|
|
4
|
+
*
|
|
5
|
+
* Credits & Thanks:
|
|
6
|
+
* https://www.unlok.ca/credits-thanks/
|
|
7
|
+
*
|
|
8
|
+
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
|
9
|
+
* https://github.com/WaywardGame/types/wiki
|
|
10
|
+
*/
|
|
11
|
+
import { Action } from "game/entity/action/Action";
|
|
12
|
+
import { ActionArgument } from "game/entity/action/IAction";
|
|
13
|
+
declare const _default: Action<[ActionArgument.Object], import("../../player/Player").default, void, [any?]>;
|
|
14
|
+
export default _default;
|
|
@@ -27,6 +27,9 @@ export declare enum GameMode {
|
|
|
27
27
|
}
|
|
28
28
|
export declare const TIME_ETERNAL_NIGHT = 0.7;
|
|
29
29
|
export declare const TIME_ETERNAL_DAY = 0.3;
|
|
30
|
+
export declare const MAX_TRAVEL_TIME_MIN = 1000;
|
|
31
|
+
export declare const MAX_TRAVEL_TIME_MAX = 200000;
|
|
32
|
+
export declare const MAX_TRAVEL_TIME_DEFAULT = 20000;
|
|
30
33
|
export interface IGameOptions {
|
|
31
34
|
/**
|
|
32
35
|
* Whether players respawn when they die
|
|
@@ -41,6 +44,10 @@ export interface IGameOptions {
|
|
|
41
44
|
* Traveling effect options
|
|
42
45
|
*/
|
|
43
46
|
applyTravelingEffects: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Maximum amount of turns to tick when traveling
|
|
49
|
+
*/
|
|
50
|
+
maxTravelTime: number;
|
|
44
51
|
};
|
|
45
52
|
creatures: {
|
|
46
53
|
/**
|
|
@@ -691,97 +691,100 @@ declare enum UiTranslation {
|
|
|
691
691
|
MenuSharedMultiplayerMaxPlayers = 676,
|
|
692
692
|
MenuSharedRealTimeTickSpeedTooltip = 677,
|
|
693
693
|
MenuSharedRealTimeTickSpeedLabel = 678,
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
694
|
+
MenuSharedMaxTravelTimeLabel = 679,
|
|
695
|
+
MenuSharedMaxTravelTimeLabelTooltip = 680,
|
|
696
|
+
MenuSharedButtonDefault = 681,
|
|
697
|
+
MenuSharedValueMillseconds = 682,
|
|
698
|
+
MenuSharedValueTurns = 683,
|
|
699
|
+
MenuSharedValuePercentage = 684,
|
|
700
|
+
MenuSharedMilestonesNotUnlockable = 685,
|
|
701
|
+
MenuSharedMilestonesNotUnlockableDescription = 686,
|
|
702
|
+
MenuSharedMilestonesNotUnlockableButtonShowMods = 687,
|
|
703
|
+
MenuSharedButtonDisableAll = 688,
|
|
704
|
+
MenuSharedButtonEnableAll = 689,
|
|
705
|
+
MenuSharedMilestoneModifiersSelected = 690,
|
|
706
|
+
MiscSortBy = 691,
|
|
707
|
+
MiscSortDirection = 692,
|
|
708
|
+
MiscFilter = 693,
|
|
709
|
+
MiscPlayerNameDefault = 694,
|
|
710
|
+
MiscPlayerNameServer = 695,
|
|
711
|
+
MiscSaveNameDefault = 696,
|
|
712
|
+
MiscSaveNameDailyChallenge = 697,
|
|
713
|
+
MiscSaveNameChallenge = 698,
|
|
714
|
+
MiscSaveVersionUnknown = 699,
|
|
715
|
+
MiscVersion = 700,
|
|
716
|
+
MiscTime = 701,
|
|
717
|
+
MiscTimeMeridiem = 702,
|
|
718
|
+
MiscError = 703,
|
|
719
|
+
MiscContextMenuCopyTooltip = 704,
|
|
720
|
+
MiscBindableOr = 705,
|
|
721
|
+
MiscBindableNoBindings = 706,
|
|
722
|
+
DifficultyOptionsPeaceful = 707,
|
|
723
|
+
DifficultyOptionsAberrantSpawnsDisabled = 708,
|
|
724
|
+
DifficultyOptionsAberrantSpawnsOnly = 709,
|
|
725
|
+
DifficultyOptionsCreatureSpawningDisabled = 710,
|
|
726
|
+
DifficultyOptionsCreatureSpawnsDefault = 711,
|
|
727
|
+
DifficultyOptionsCreatureSpawnsAberrantOnly = 712,
|
|
728
|
+
DifficultyOptionsCreatureSpawnsNoAberrants = 713,
|
|
729
|
+
DifficultyOptionsSpawnLimit = 714,
|
|
730
|
+
DifficultyOptionsRespawn = 715,
|
|
731
|
+
DifficultyOptionsEternalNight = 716,
|
|
732
|
+
DifficultyOptionsEternalDay = 717,
|
|
733
|
+
DifficultyOptionsTimeInitial = 718,
|
|
734
|
+
DifficultyOptionsTimeFrozen = 719,
|
|
735
|
+
DifficultyOptionsTimeDayLength = 720,
|
|
736
|
+
DifficultyOptionsTimeDayPercent = 721,
|
|
737
|
+
DifficultyOptionsNoItems = 722,
|
|
738
|
+
DifficultyOptionsBenignityInitial = 723,
|
|
739
|
+
DifficultyOptionsBenignityMultiplier = 724,
|
|
740
|
+
DifficultyOptionsMalignityInitial = 725,
|
|
741
|
+
DifficultyOptionsMalignityMultiplier = 726,
|
|
742
|
+
DifficultyOptionsWeightBonus = 727,
|
|
743
|
+
DifficultyOptionsStatInitial = 728,
|
|
744
|
+
DifficultyOptionsStatMax = 729,
|
|
745
|
+
DifficultyOptionsStatMultiplier = 730,
|
|
746
|
+
DifficultyOptionsStatusEffectStartWith = 731,
|
|
747
|
+
DifficultyOptionsStatusEffectUntreatable = 732,
|
|
748
|
+
DifficultyOptionsStatusEffectPassChanceMultiplier = 733,
|
|
749
|
+
DifficultyOptionsNoRandomSkills = 734,
|
|
750
|
+
DifficultyOptionsSkillStartingCount = 735,
|
|
751
|
+
DifficultyOptionsSkillGainMultiplier = 736,
|
|
752
|
+
DifficultyOptionsSkillInitial = 737,
|
|
753
|
+
DifficultyOptionsStatusEffectPermanent = 738,
|
|
754
|
+
DifficultyOptionsStatusEffectRateMultiplier = 739,
|
|
755
|
+
DifficultyOptionsStatusEffectMultiplier = 740,
|
|
756
|
+
EquipmentBack = 741,
|
|
757
|
+
EquipmentBelt = 742,
|
|
758
|
+
EquipmentChest = 743,
|
|
759
|
+
EquipmentFeet = 744,
|
|
760
|
+
EquipmentHands = 745,
|
|
761
|
+
EquipmentHead = 746,
|
|
762
|
+
EquipmentLeftHand = 747,
|
|
763
|
+
EquipmentLeftHandOption = 748,
|
|
764
|
+
EquipmentLegs = 749,
|
|
765
|
+
EquipmentNeck = 750,
|
|
766
|
+
EquipmentRightHand = 751,
|
|
767
|
+
EquipmentRightHandOption = 752,
|
|
768
|
+
EquipmentUse = 753,
|
|
769
|
+
HudFilter = 754,
|
|
770
|
+
QuickSlot1 = 755,
|
|
771
|
+
QuickSlot10 = 756,
|
|
772
|
+
QuickSlot11 = 757,
|
|
773
|
+
QuickSlot12 = 758,
|
|
774
|
+
QuickSlot2 = 759,
|
|
775
|
+
QuickSlot3 = 760,
|
|
776
|
+
QuickSlot4 = 761,
|
|
777
|
+
QuickSlot5 = 762,
|
|
778
|
+
QuickSlot6 = 763,
|
|
779
|
+
QuickSlot7 = 764,
|
|
780
|
+
QuickSlot8 = 765,
|
|
781
|
+
QuickSlot9 = 766,
|
|
782
|
+
TabCrafting = 767,
|
|
783
|
+
TabDismantle = 768,
|
|
784
|
+
Version = 769,
|
|
785
|
+
WindowTitleContainer = 770,
|
|
786
|
+
WindowTitleCrafting = 771,
|
|
787
|
+
WindowTitleEquipment = 772,
|
|
788
|
+
WindowTitleInventory = 773
|
|
786
789
|
}
|
|
787
790
|
export default UiTranslation;
|
|
@@ -14,6 +14,7 @@ import Menu from "ui/screen/screens/menu/component/Menu";
|
|
|
14
14
|
export default class ModesMenu extends Menu {
|
|
15
15
|
readonly turnMode: ChoiceListTurnMode;
|
|
16
16
|
readonly tickSpeed: RangeRow;
|
|
17
|
+
readonly maxTravelTime: RangeRow;
|
|
17
18
|
constructor();
|
|
18
19
|
protected refresh(): void;
|
|
19
20
|
private updateTurnModes;
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
|
-
export declare const gameVersionStage = "beta", gameVersionMajor = 2, gameVersionMinor = 11, gameVersionPatch =
|
|
11
|
+
export declare const gameVersionStage = "beta", gameVersionMajor = 2, gameVersionMinor = 11, gameVersionPatch = 5, gameVersionName = "Horizons";
|
|
12
12
|
export declare const gameVersion: string;
|
|
13
13
|
export declare function registerGlobals(globalObject: any): void;
|
package/package.json
CHANGED