@wayward/types 2.15.0-beta.dev.20251019.1 → 2.15.0-beta.dev.20251021.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/IObject.d.ts +2 -1
- package/definitions/game/game/curse/Curse.d.ts +9 -2
- package/definitions/game/game/doodad/Doodad.d.ts +4 -4
- package/definitions/game/game/doodad/IDoodad.d.ts +1 -1
- package/definitions/game/game/entity/Human.d.ts +5 -4
- package/definitions/game/game/entity/IEntity.d.ts +2 -1
- package/definitions/game/game/entity/IHuman.d.ts +3 -53
- package/definitions/game/game/entity/StatDescriptions.d.ts +1 -1
- package/definitions/game/game/entity/action/ActionExecutor.d.ts +1 -1
- package/definitions/game/game/entity/action/IAction.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Attack.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Gather.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/SetCreatureAi.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/SetCreatureAiAll.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/SetTitle.d.ts +2 -2
- package/definitions/game/game/entity/creature/corpse/ICorpse.d.ts +1 -1
- package/definitions/game/game/entity/data/DataComponent.d.ts +2 -1
- package/definitions/game/game/entity/player/IPlayer.d.ts +2 -1
- package/definitions/game/game/entity/player/Player.d.ts +1 -1
- package/definitions/game/game/entity/player/quest/Requirements.d.ts +1 -1
- package/definitions/game/game/entity/player/quest/requirement/LearnSkillRequirement.d.ts +1 -1
- package/definitions/game/game/entity/skill/ISkills.d.ts +36 -1
- package/definitions/game/game/entity/skill/SkillManager.d.ts +1 -1
- package/definitions/game/game/entity/status/StatusEffectList.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/MagicalPropertyValue.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/ObscuredValue.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/SkillSourceTooltip.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemBuildInfo.d.ts +2 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemConsumeInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemEquipInfo.d.ts +3 -2
- package/definitions/game/game/inspection/infoProviders/skill/MagicalItemBonuses.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/SkillInspection.d.ts +1 -1
- package/definitions/game/game/island/Island.d.ts +2 -1
- package/definitions/game/game/item/IItem.d.ts +1 -1
- package/definitions/game/game/item/Item.d.ts +4 -4
- package/definitions/game/game/item/recipe/Recipe.d.ts +1 -1
- package/definitions/game/game/magic/MagicalPropertyDescriptions.d.ts +63 -0
- package/definitions/game/game/magic/MagicalPropertyType.d.ts +4 -55
- package/definitions/game/game/milestones/IMilestone.d.ts +8 -3
- package/definitions/game/game/milestones/MilestoneDefinition.d.ts +7 -3
- package/definitions/game/game/milestones/milestone/Runekeeper.d.ts +1 -1
- package/definitions/game/game/options/GameOptions.d.ts +1 -1
- package/definitions/game/game/options/IGameOptions.d.ts +7 -2
- package/definitions/game/game/options/modifiers/challenge/IChallenge.d.ts +2 -1
- package/definitions/game/game/options/modifiers/milestone/MilestoneModifiersManager.d.ts +2 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Oblivious.d.ts +17 -0
- package/definitions/game/game/reference/IReferenceManager.d.ts +2 -1
- package/definitions/game/game/temperature/ITemperature.d.ts +17 -3
- package/definitions/game/game/tile/ITerrain.d.ts +1 -1
- package/definitions/game/game/tile/TileEvent.d.ts +1 -1
- package/definitions/game/game/tile/events/MeltingTile.d.ts +0 -1
- package/definitions/game/language/DictionaryMap.d.ts +2 -1
- package/definitions/game/language/Translation.d.ts +2 -1
- package/definitions/game/language/dictionary/Message.d.ts +6 -6
- package/definitions/game/language/dictionary/UiTranslation.d.ts +860 -864
- package/definitions/game/language/english/player/Skills.d.ts +1 -1
- package/definitions/game/mod/ModRegistry.d.ts +3 -14
- package/definitions/game/save/upgrade/versions/beta2.15.0/beta2.15.0-dev20251020.d.ts +12 -0
- package/definitions/game/ui/component/dropdown/SkillDropdown.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/dialog/SkillsDialog.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/static/menubar/descriptions/IslandsButtonDescription.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/static/stats/IStatDisplayDescription.d.ts +3 -1
- package/definitions/game/ui/screen/screens/game/static/stats/component/StatComponent.d.ts +7 -1
- package/definitions/hosts/shared/interfaces.d.ts +1 -1
- package/definitions/test/core/applicationDom.d.ts +1 -1
- package/definitions/test/core/applicationManager.d.ts +10 -0
- package/definitions/utilities/random/Random.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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
|
-
import { SkillType } from "@wayward/game/game/entity/
|
|
11
|
+
import { SkillType } from "@wayward/game/game/entity/skill/ISkills";
|
|
12
12
|
declare const skills: Descriptions<SkillType, [string, string, string]>;
|
|
13
13
|
export default skills;
|
|
@@ -13,7 +13,8 @@ import type { Command, CommandCallback } from "@wayward/game/command/ICommand";
|
|
|
13
13
|
import type { BiomeType, IBiomeDescription } from "@wayward/game/game/biome/IBiome";
|
|
14
14
|
import type { DoodadTag, DoodadType, DoodadTypeExtra, DoodadTypeGroup, IDoodadDescription, IDoodadGroupDescription } from "@wayward/game/game/doodad/IDoodad";
|
|
15
15
|
import type { EntityTag } from "@wayward/game/game/entity/IEntity";
|
|
16
|
-
import type { EquipType
|
|
16
|
+
import type { EquipType } from "@wayward/game/game/entity/IHuman";
|
|
17
|
+
import type { SkillType } from "../game/entity/skill/ISkills";
|
|
17
18
|
import type { Stat } from "@wayward/game/game/entity/IStats";
|
|
18
19
|
import type { IStatDescription } from "@wayward/game/game/entity/StatDescriptions";
|
|
19
20
|
import type { ActionType, IActionDescription } from "@wayward/game/game/entity/action/IAction";
|
|
@@ -37,12 +38,11 @@ import type { StatusClass } from "@wayward/game/game/entity/status/Status";
|
|
|
37
38
|
import type { InspectType } from "@wayward/game/game/inspection/IInspection";
|
|
38
39
|
import type { InspectionClass } from "@wayward/game/game/inspection/InspectionTypeMap";
|
|
39
40
|
import type { IItemDescription, IItemGroupDescription, ItemTag, ItemType, ItemTypeExtra, ItemTypeGroup } from "@wayward/game/game/item/IItem";
|
|
40
|
-
import type { IMagicalPropertyDescription } from "@wayward/game/game/magic/
|
|
41
|
+
import type { IMagicalPropertyDescription } from "@wayward/game/game/magic/MagicalPropertyDescriptions";
|
|
41
42
|
import type MagicalPropertyType from "@wayward/game/game/magic/MagicalPropertyType";
|
|
42
43
|
import type { ILoadingDescription } from "@wayward/game/game/meta/Loading";
|
|
43
44
|
import type { IPromptDescriptionBase, Prompt } from "@wayward/game/game/meta/prompt/IPrompt";
|
|
44
45
|
import type PromptDescriptionFactory from "@wayward/game/game/meta/prompt/PromptDescriptionFactory";
|
|
45
|
-
import type { TempType } from "@wayward/game/game/temperature/ITemperature";
|
|
46
46
|
import type { ITerrainDescription, OverlayType, TerrainType } from "@wayward/game/game/tile/ITerrain";
|
|
47
47
|
import type { ITileEventDescription, TileEventType } from "@wayward/game/game/tile/ITileEvent";
|
|
48
48
|
import type { ITerrainLootItem } from "@wayward/game/game/tile/TerrainResources";
|
|
@@ -417,17 +417,6 @@ export interface IEquipTypeDescription extends IModdable {
|
|
|
417
417
|
* An item group to automatically assign to all items equippable in this equip slot.
|
|
418
418
|
*/
|
|
419
419
|
itemGroup?: ItemTypeGroup;
|
|
420
|
-
/**
|
|
421
|
-
* For each temperature type (`TempType.Cold` and `TempType.Heat`), the "weight" that it has.
|
|
422
|
-
* When calculating insulation, this weight is compared with all other weights.
|
|
423
|
-
* Higher weight = higher % of the insulation score comes from this slot.
|
|
424
|
-
*
|
|
425
|
-
* To make the slot optional for insulation of a temp type,
|
|
426
|
-
* make the value 0 (not considered at all) OR make it `[<weight>, "onlyWhenEquipped"]`.
|
|
427
|
-
*
|
|
428
|
-
* Optional slots do not reduce the human's insulation.
|
|
429
|
-
*/
|
|
430
|
-
insulationWeights?: PartialRecord<TempType, InsulationWeight>;
|
|
431
420
|
}
|
|
432
421
|
export interface IEquipTypeRegistration extends IBaseModRegistration {
|
|
433
422
|
type: ModRegistrationType.EquipType;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2011-2025 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
|
+
declare const _default: import("@wayward/game/save/upgrade/UpgradeVersion").IUpgradeVersionDefinition<unknown>;
|
|
12
|
+
export default _default;
|
|
@@ -8,7 +8,7 @@
|
|
|
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
|
-
import { SkillType } from "@wayward/game/game/entity/
|
|
11
|
+
import { SkillType } from "@wayward/game/game/entity/skill/ISkills";
|
|
12
12
|
import type { IDropdownOption } from "@wayward/game/ui/component/Dropdown";
|
|
13
13
|
import EnumDropdown from "@wayward/game/ui/component/dropdown/EnumDropdown";
|
|
14
14
|
export default class SkillDropdown<OTHER_OPTIONS extends string = never> extends EnumDropdown<typeof SkillType, OTHER_OPTIONS> {
|
|
@@ -8,7 +8,7 @@
|
|
|
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
|
-
import { SkillType } from "@wayward/game/game/entity/
|
|
11
|
+
import { SkillType } from "@wayward/game/game/entity/skill/ISkills";
|
|
12
12
|
import { TitleType } from "@wayward/game/game/entity/action/actions/SetTitle";
|
|
13
13
|
import { ReferenceType } from "@wayward/game/game/reference/IReferenceManager";
|
|
14
14
|
import Translation from "@wayward/game/language/Translation";
|
|
@@ -8,7 +8,7 @@
|
|
|
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
|
-
import { SkillType } from "@wayward/game/game/entity/
|
|
11
|
+
import { SkillType } from "@wayward/game/game/entity/skill/ISkills";
|
|
12
12
|
import { Milestone } from "@wayward/game/game/milestones/IMilestone";
|
|
13
13
|
import Bindable from "@wayward/game/ui/input/Bindable";
|
|
14
14
|
import type DialogManager from "@wayward/game/ui/screen/screens/game/DialogManager";
|
|
@@ -26,6 +26,7 @@ import type Translation from "@wayward/game/language/Translation";
|
|
|
26
26
|
import type { IModdable } from "@wayward/game/mod/ModRegistry";
|
|
27
27
|
import type Component from "@wayward/game/ui/component/Component";
|
|
28
28
|
import type StatComponent from "@wayward/game/ui/screen/screens/game/static/stats/component/StatComponent";
|
|
29
|
+
import type { IStatComponentEvents } from "@wayward/game/ui/screen/screens/game/static/stats/component/StatComponent";
|
|
29
30
|
import type Tooltip from "@wayward/game/ui/tooltip/Tooltip";
|
|
30
31
|
import type { IUntilSubscriber } from "@wayward/utilities/event/EventEmitter";
|
|
31
32
|
export interface IStatDisplayDescription extends IModdable, IHasImagePath<string | ((entity: EntityWithStats, stat: IStat) => string | undefined)> {
|
|
@@ -84,7 +85,7 @@ export interface IStatDisplayDescription extends IModdable, IHasImagePath<string
|
|
|
84
85
|
* A function that will initialize a tooltip for this stat element, or a reference to show a tooltip for
|
|
85
86
|
*/
|
|
86
87
|
tooltip?: Reference | ((tooltip: Tooltip, entity: EntityWithStats, stat: IStat) => any);
|
|
87
|
-
subscriber?: (events: IStatDisplayDescriptionSubscriber,
|
|
88
|
+
subscriber?: (events: IStatDisplayDescriptionSubscriber, statComponent: StatComponent) => any;
|
|
88
89
|
getValue?(entity?: EntityWithStats): number | undefined;
|
|
89
90
|
getMin?(entity?: EntityWithStats): number | undefined;
|
|
90
91
|
getMax?(entity?: EntityWithStats): number | undefined;
|
|
@@ -97,6 +98,7 @@ export interface IStatDisplayDescriptionSubscriber {
|
|
|
97
98
|
player?: IUntilSubscriber<Player, IPlayerEvents>;
|
|
98
99
|
creature?: IUntilSubscriber<Creature, ICreatureEvents>;
|
|
99
100
|
island?: IUntilSubscriber<Island, IIslandEvents>;
|
|
101
|
+
stat?: IUntilSubscriber<StatComponent, IStatComponentEvents>;
|
|
100
102
|
}
|
|
101
103
|
export declare const STAT_DEFAULT_DISPLAY_ORDER = 100;
|
|
102
104
|
export interface IStatInfo extends Partial<IStatBase> {
|
|
@@ -40,6 +40,7 @@ export declare enum StatClasses {
|
|
|
40
40
|
AttributeLabel = "stat-attribute-label"
|
|
41
41
|
}
|
|
42
42
|
export interface IStatComponentEvents extends Events<Component> {
|
|
43
|
+
refresh(): any;
|
|
43
44
|
update(): any;
|
|
44
45
|
resubscribe(): any;
|
|
45
46
|
}
|
|
@@ -49,11 +50,14 @@ export default abstract class StatComponent extends Component {
|
|
|
49
50
|
event: IEventEmitter<this, IStatComponentEvents>;
|
|
50
51
|
readonly statIcon: ImagePath<PathType.StatIcon>;
|
|
51
52
|
private readonly entityRef;
|
|
52
|
-
|
|
53
|
+
get entity(): EntityWithStats | undefined;
|
|
53
54
|
private hidingDueToMilestone;
|
|
54
55
|
private updatingVisibility;
|
|
55
56
|
constructor(entity: EntityWithStats, stat: Stat, noEvents?: true, statDescription?: IStatDisplayDescription | undefined);
|
|
57
|
+
get asBar(): Statbar | undefined;
|
|
58
|
+
get asAttribute(): StatAttribute | undefined;
|
|
56
59
|
private subscribe;
|
|
60
|
+
refresh(): void;
|
|
57
61
|
private onUpdateMilestone;
|
|
58
62
|
protected onRemove(): void;
|
|
59
63
|
/**
|
|
@@ -109,6 +113,7 @@ export declare class Statbar extends StatComponent {
|
|
|
109
113
|
getTextElement(): Text;
|
|
110
114
|
getDisplayElement(): Component;
|
|
111
115
|
getGenericStatValue(stat: IStatMax): TranslationImpl;
|
|
116
|
+
get asBar(): Statbar;
|
|
112
117
|
/**
|
|
113
118
|
* Overrides the superclass method of the same name. Calls the superclass method, then updates the CSS
|
|
114
119
|
* property `--stat-percent`, to update the statbar's fill width.
|
|
@@ -118,6 +123,7 @@ export declare class Statbar extends StatComponent {
|
|
|
118
123
|
export declare class StatAttribute extends StatComponent {
|
|
119
124
|
readonly attribute?: Text;
|
|
120
125
|
readonly label?: Text;
|
|
126
|
+
get asAttribute(): StatAttribute;
|
|
121
127
|
constructor(entity: EntityWithStats, stat: Stat, noEvents?: true, statDescription?: IStatDisplayDescription | undefined);
|
|
122
128
|
getTextElement(): Text | undefined;
|
|
123
129
|
getDisplayElement(): Text | undefined;
|
|
@@ -194,7 +194,7 @@ export interface IPath {
|
|
|
194
194
|
isAbsolute(path: string): boolean;
|
|
195
195
|
}
|
|
196
196
|
export interface INapi {
|
|
197
|
-
discord: INapiDiscord;
|
|
197
|
+
discord: INapiDiscord | undefined;
|
|
198
198
|
}
|
|
199
199
|
export interface INapiDiscord {
|
|
200
200
|
initialize(apiKey: string, appId?: string): void;
|
|
@@ -15,7 +15,7 @@ export declare class ApplicationDom {
|
|
|
15
15
|
private readonly browser;
|
|
16
16
|
private readonly logger;
|
|
17
17
|
constructor(browser: WebdriverIO.Browser, logger: ApplicationLogger);
|
|
18
|
-
executeFunction<T2 extends
|
|
18
|
+
executeFunction<T2 extends unknown[], T>(executor: (...extraArgs: webdriverio.TransformElement<T2>) => T | Promise<T>, ...extraArgs: T2): Promise<T>;
|
|
19
19
|
executeJavaScript<T>(javascript: string): Promise<T>;
|
|
20
20
|
getElement(selector: string): Promise<WebdriverIO.Element>;
|
|
21
21
|
getElements(selector: string, onlyVisible?: boolean): Promise<WebdriverIO.Element[]>;
|
|
@@ -81,6 +81,16 @@ export declare class ApplicationManager {
|
|
|
81
81
|
waitForClientConsistency(): Promise<void>;
|
|
82
82
|
createInteraction(application: Application): ApplicationInteraction;
|
|
83
83
|
sailToCivilization(winnerApp: Application): Promise<void>;
|
|
84
|
+
/**
|
|
85
|
+
* Sets the time of day for a given application (the island that the player is on)
|
|
86
|
+
* @param time A number between `0` and `1`, where `0` is the start of the day and `1` is the end.
|
|
87
|
+
*/
|
|
88
|
+
setTimeOfDay(app: Application, time: number): Promise<void>;
|
|
89
|
+
/**
|
|
90
|
+
* Creates all curses for the player on the given application
|
|
91
|
+
*/
|
|
92
|
+
createAllCurses(app: Application): Promise<void>;
|
|
93
|
+
fastForwardUntil(app: Application, stopCondition: (player: Player) => boolean): Promise<void>;
|
|
84
94
|
executeJavascript<T2 extends any[], T = void>(app: Application, executor: (player: Player, ...extraArgs: T2) => T, ...extraArgs: T2): Promise<T[]>;
|
|
85
95
|
executeOnPlayingClients<T>(runnable: (app: Application) => Promise<T>): Promise<T[]>;
|
|
86
96
|
executeOnApps<T>(apps: Application[], runnable: (app: Application) => Promise<T>, requiresDeterminism: boolean): Promise<T[]>;
|
|
@@ -46,6 +46,7 @@ export declare class Random<G extends IRandomGenerator = IRandomGenerator> {
|
|
|
46
46
|
*/
|
|
47
47
|
intInRange(min: number, max: number): number;
|
|
48
48
|
intInRange(range: IRange): number;
|
|
49
|
+
intInRange(range?: IRange): number | undefined;
|
|
49
50
|
/**
|
|
50
51
|
* Generates a random boolean
|
|
51
52
|
*/
|
package/package.json
CHANGED