@wayward/types 2.15.5-beta.dev.20260527.1 → 2.15.5-beta.dev.20260530.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/entity/action/IAction.d.ts +8 -0
- package/definitions/game/game/entity/action/actions/Consecrate.d.ts +7 -1
- package/definitions/game/game/entity/action/actions/SetTitle.d.ts +1 -1
- package/definitions/game/game/entity/action/usable/actions/UsableActionsWorld.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/DoodadFanaticism.d.ts +21 -0
- package/definitions/game/game/inspection/infoProviders/Uses.d.ts +4 -0
- package/definitions/game/game/inspection/infoProviders/doodad/DoodadUses.d.ts +9 -0
- package/definitions/game/game/inspection/inspections/ActionInspection.d.ts +9 -4
- package/definitions/game/game/item/Item.d.ts +1 -0
- package/definitions/game/game/milestones/milestone/Runekeeper.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/dialog/AltarDialog.d.ts +3 -0
- package/definitions/game/ui/screen/screens/game/dialog/EquipmentDialog.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/static/actions/IActionBar.d.ts +3 -2
- package/package.json +1 -1
|
@@ -33,6 +33,7 @@ import type Island from "@wayward/game/game/island/Island";
|
|
|
33
33
|
import type { Automation } from "@wayward/game/game/island/automation/Automation";
|
|
34
34
|
import type { IContainer } from "@wayward/game/game/item/IItem";
|
|
35
35
|
import type Item from "@wayward/game/game/item/Item";
|
|
36
|
+
import type { Quality } from "@wayward/game/game/IObject";
|
|
36
37
|
import type { IPromptDescriptionBase, PromptDescriptionArgs } from "@wayward/game/game/meta/prompt/IPrompt";
|
|
37
38
|
import type { Milestone } from "@wayward/game/game/milestones/IMilestone";
|
|
38
39
|
import type { IFindPathRange } from "@wayward/game/game/tile/ITerrain";
|
|
@@ -230,6 +231,13 @@ export interface IActionUsable {
|
|
|
230
231
|
*/
|
|
231
232
|
usableOnMove?: boolean;
|
|
232
233
|
displayLevel?: ActionDisplayLevel;
|
|
234
|
+
actionTierBreakdown?: IActionTierBreakdown;
|
|
235
|
+
}
|
|
236
|
+
export interface IActionTierBreakdown {
|
|
237
|
+
baseTier: number;
|
|
238
|
+
effectiveTier: number;
|
|
239
|
+
quality?: Quality;
|
|
240
|
+
qualityBonus?: number;
|
|
233
241
|
}
|
|
234
242
|
export declare namespace IActionUsable {
|
|
235
243
|
function usableOrPrintable(usability: IActionUsable | IActionNotUsable): boolean;
|
|
@@ -8,12 +8,13 @@
|
|
|
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 type { QualityNatural } from "@wayward/game/game/IObject";
|
|
11
12
|
import { Quality } from "@wayward/game/game/IObject";
|
|
12
13
|
import { DeityReal } from "@wayward/game/game/deity/Deity";
|
|
13
14
|
import type Doodad from "@wayward/game/game/doodad/Doodad";
|
|
14
15
|
import type Human from "@wayward/game/game/entity/Human";
|
|
15
16
|
import { Action } from "@wayward/game/game/entity/action/Action";
|
|
16
|
-
import { ActionArgument, ActionType, type IActionUsable } from "@wayward/game/game/entity/action/IAction";
|
|
17
|
+
import { ActionArgument, ActionType, type IActionTierBreakdown, type IActionUsable } from "@wayward/game/game/entity/action/IAction";
|
|
17
18
|
import type { IContainer } from "@wayward/game/game/item/IItem";
|
|
18
19
|
import { ItemType } from "@wayward/game/game/item/IItem";
|
|
19
20
|
import type Item from "@wayward/game/game/item/Item";
|
|
@@ -36,8 +37,13 @@ declare const _default: Action<[ActionArgument.DoodadNearby], ActionType.Consecr
|
|
|
36
37
|
groupRunes(runes: Item[]): ConsecrateRuneGroup[];
|
|
37
38
|
getReturnDeity(runeGroups: ConsecrateRuneGroup[]): DeityReal | undefined;
|
|
38
39
|
groupRunesFriendAndFoe(runeGroups: ConsecrateRuneGroup[], deity: DeityReal): ConsecrateRuneGroupFriendAndFoe;
|
|
40
|
+
getSacrificedRunes(runes: Item[]): Item[];
|
|
41
|
+
getQualityTier(quality: Quality | undefined): QualityNatural;
|
|
42
|
+
getActionTierBreakdown(altar: Doodad, runes: Item[]): IActionTierBreakdown | undefined;
|
|
39
43
|
getDeityRuneTypes(human: Human, deity: DeityReal): ItemType[];
|
|
40
44
|
calculateValue(human: Human, runes: Item[], deity: DeityReal, calculationType: "min" | "max" | "random"): number;
|
|
45
|
+
calculateValueWithFanaticism(human: Human, runes: Item[], calculationType: "min" | "max" | "random", fanaticism: number): number;
|
|
46
|
+
calculateFanaticismValueModifier(human: Human, runes: Item[], deity: DeityReal): number | undefined;
|
|
41
47
|
resolveRunesForValue(human: Human, value: number, maxValue?: number): ConsecrateOutcomeRuneQualityCounts;
|
|
42
48
|
};
|
|
43
49
|
export default _default;
|
|
@@ -16,5 +16,5 @@ export declare enum TitleType {
|
|
|
16
16
|
Milestone = 0,
|
|
17
17
|
Skill = 1
|
|
18
18
|
}
|
|
19
|
-
declare const _default: Action<[[ActionArgument.Undefined, import("../argument/ActionArgumentEnum").default<TitleType, "
|
|
19
|
+
declare const _default: Action<[[ActionArgument.Undefined, import("../argument/ActionArgumentEnum").default<TitleType, "Milestone" | "Skill">], [arg1: ActionArgument.Undefined, import("../argument/ActionArgumentEnum").default<Milestone, "Abnormalizer" | "Merchant" | "Cursed" | "Prepared" | "Chef" | "Exterminator" | "Crafter" | "Gardener" | "Gatherer" | "Hunter" | "Locksmith" | "ReaperOfSouls" | "Survivor" | "Pitcher" | "Trapsetter" | "TreasureHunter" | "Collector" | "Explorer" | "Grandmaster" | "Doctor" | "Artificer" | "Returned" | "Navigator" | "DragonSlayer" | "Treasurer" | "Pulchritudinous" | "Friendly" | "Malevolent" | "Benevolent" | "Boundless" | "Talented" | "Weathered" | "Seasoned" | "Pacifier" | "Notekeeper" | "Operator" | "Huntsman" | "Contender" | "Challenger" | "DestroyerOfMagi" | "Helmsman" | "Multitasker" | "Apocryphal" | "Diverse" | "InternalDiscoveredBoats" | "Traitor" | "MasterOfAll" | "Rouseabout" | "Murderer" | "Retailer" | "Masochist" | "Versatile" | "InternalStatDiscovery" | "Dedicated" | "Hounded" | "Serene" | "InternalRuneOrAltarDiscovery" | "Curator" | "Thaumaturgic" | "Runekeeper" | "InternalDeityDiscovery" | "InternalMerchantsDiscovery" | "InternalCurseSystemDiscovery" | "Invoker" | "InternalDeityInvoked" | "InternalInsulationDiscovery" | "Turbulent" | "Statistician" | "Afflicted" | "Exsanguinated" | "InternalItemDiscovered" | "Cursebreaker" | "Oblivious" | "Warded" | "Defiled">, import("../argument/ActionArgumentEnum").default<SkillType, "None" | "Taming" | "Mining" | "Swimming" | "Chemistry" | "Anatomy" | "Marksmanship" | "Blacksmithing" | "Botany" | "Camping" | "Cartography" | "Claythrowing" | "Cooking" | "Fishing" | "Fletching" | "Glassblowing" | "Leatherworking" | "Lockpicking" | "Lumberjacking" | "Mycology" | "Parrying" | "Stonecrafting" | "Tactics" | "Tailoring" | "Throwing" | "Tinkering" | "Trapping" | "Woodworking" | "Horticulture" | "Bartering" | "Seafaring" | "Thaumaturgy" | "DualWielding" | "Theurgy">]], ActionType.SetTitle, import("../../player/Player").default, void, import("@wayward/game/game/entity/action/IAction").IActionUsable, [(TitleType | undefined)?, (Milestone | SkillType | undefined)?]>;
|
|
20
20
|
export default _default;
|
|
@@ -17,7 +17,7 @@ export declare enum WorldContextMenuClasses {
|
|
|
17
17
|
OptionText = "world-context-menu-option-text"
|
|
18
18
|
}
|
|
19
19
|
export declare namespace WorldContextMenuClasses {
|
|
20
|
-
const OptionSpecific: (enumValue: UsableActionType) => "world-context-menu-option-none" | "world-context-menu-option-use" | "world-context-menu-option-move" | "world-context-menu-option-actions" | "world-context-menu-option-
|
|
20
|
+
const OptionSpecific: (enumValue: UsableActionType) => "world-context-menu-option-none" | "world-context-menu-option-use" | "world-context-menu-option-move" | "world-context-menu-option-actions" | "world-context-menu-option-collapse" | "world-context-menu-option-unused" | "world-context-menu-option-commandattack" | "world-context-menu-option-commanddefend" | "world-context-menu-option-commandfollowclose" | "world-context-menu-option-commandfollowfar" | "world-context-menu-option-commandheel" | "world-context-menu-option-commandstay" | "world-context-menu-option-quickslotremove" | "world-context-menu-option-quickslotadd" | "world-context-menu-option-quickslotaddtofree" | "world-context-menu-option-quickslotaddtoslot" | "world-context-menu-option-movetoinventory" | "world-context-menu-option-dropmenu" | "world-context-menu-option-dropall" | "world-context-menu-option-dropallofsamequality" | "world-context-menu-option-repairwithitem" | "world-context-menu-option-reinforcewithitem" | "world-context-menu-option-enhancewithitem" | "world-context-menu-option-enchantwithitem" | "world-context-menu-option-transmogrifywithitem" | "world-context-menu-option-upgradewithitem" | "world-context-menu-option-alterwithitem" | "world-context-menu-option-refinewithitem" | "world-context-menu-option-preservewithitem" | "world-context-menu-option-addfuelwithitem" | "world-context-menu-option-ignitewithitem" | "world-context-menu-option-absorbwithitem" | "world-context-menu-option-exudewithitem" | "world-context-menu-option-movetoinventorymenu" | "world-context-menu-option-movetoactivecontainermenu" | "world-context-menu-option-movetofacingcontainermenu" | "world-context-menu-option-moveall" | "world-context-menu-option-moveallofsamequality" | "world-context-menu-option-tradetradersell" | "world-context-menu-option-tradetraderbuy" | "world-context-menu-option-itemactions" | "world-context-menu-option-gatherwithhands" | "world-context-menu-option-harvestwithhands" | "world-context-menu-option-digwithhands" | "world-context-menu-option-tillwithhands" | "world-context-menu-option-pickupexcrementwithhands" | "world-context-menu-option-equipheld" | "world-context-menu-option-equiplegs" | "world-context-menu-option-equipchest" | "world-context-menu-option-equiphead" | "world-context-menu-option-equipwaist" | "world-context-menu-option-equipfeet" | "world-context-menu-option-equipneck" | "world-context-menu-option-equiphands" | "world-context-menu-option-equipback" | "world-context-menu-option-equipmainhand" | "world-context-menu-option-equipoffhand" | "world-context-menu-option-restonground" | "world-context-menu-option-sleeponground" | "world-context-menu-option-commandmenu" | "world-context-menu-option-displayheld" | "world-context-menu-option-displaylegs" | "world-context-menu-option-displaychest" | "world-context-menu-option-displayhead" | "world-context-menu-option-displaywaist" | "world-context-menu-option-displayfeet" | "world-context-menu-option-displayneck" | "world-context-menu-option-displayhands" | "world-context-menu-option-displayback" | "world-context-menu-option-displaymainhand" | "world-context-menu-option-displayoffhand" | "world-context-menu-option-reshapewithitem" | "world-context-menu-option-movecontentsmenu" | "world-context-menu-option-movecontentstoinventory" | "world-context-menu-option-movecontentstoactivecontainer" | "world-context-menu-option-movecontentstofacingcontainer" | "world-context-menu-option-movecontentsofactivecontainermenu" | "world-context-menu-option-movecontentsoffacingcontainermenu" | "world-context-menu-option-commandmenuall" | "world-context-menu-option-commandallfollowclose" | "world-context-menu-option-commandallfollowfar" | "world-context-menu-option-commandallstay" | "world-context-menu-option-commandalldefend" | "world-context-menu-option-commandallattack" | "world-context-menu-option-commandallheel" | "world-context-menu-option-ascend" | "world-context-menu-option-descend" | "world-context-menu-option-excavate" | "world-context-menu-option-dropallexceptquality" | "world-context-menu-option-moveallexceptquality";
|
|
21
21
|
}
|
|
22
22
|
export declare const UsableActionsWorldActions: UsableActionGenerator<[]>;
|
|
23
23
|
export declare const UsableActionsWorldItemActions: UsableActionGenerator<[]>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
import type Doodad from "@wayward/game/game/doodad/Doodad";
|
|
12
|
+
import { InfoProvider } from "@wayward/game/game/inspection/InfoProvider";
|
|
13
|
+
import LabelledValue from "@wayward/game/game/inspection/infoProviders/LabelledValue";
|
|
14
|
+
export default class DoodadFanaticismInfoProvider extends InfoProvider {
|
|
15
|
+
private readonly doodad;
|
|
16
|
+
static get(doodad: Doodad): DoodadFanaticismInfoProvider | undefined;
|
|
17
|
+
constructor(doodad: Doodad);
|
|
18
|
+
getClass(): string[];
|
|
19
|
+
hasContent(): boolean;
|
|
20
|
+
get(): LabelledValue[];
|
|
21
|
+
}
|
|
@@ -14,6 +14,7 @@ import { InfoProvider } from "@wayward/game/game/inspection/InfoProvider";
|
|
|
14
14
|
import type { InfoProviderContext } from "@wayward/game/game/inspection/InfoProviderContext";
|
|
15
15
|
import type UseInfo from "@wayward/game/game/inspection/infoProviders/UseInfo";
|
|
16
16
|
import type { DescribedDescription, IDescribed } from "@wayward/game/game/inspection/infoProviders/UseInfo";
|
|
17
|
+
import { Quality } from "@wayward/game/game/IObject";
|
|
17
18
|
import UiTranslation from "@wayward/game/language/dictionary/UiTranslation";
|
|
18
19
|
import type TranslationImpl from "@wayward/game/language/impl/TranslationImpl";
|
|
19
20
|
import Translation from "@wayward/game/language/Translation";
|
|
@@ -44,6 +45,9 @@ export default abstract class Uses<T extends IDescribed> extends InfoProvider {
|
|
|
44
45
|
protected getUseDisplayLevel(action: ActionType, context: InfoProviderContext): InfoDisplayLevel;
|
|
45
46
|
private getDetailsHandlerResolver;
|
|
46
47
|
protected getUse(description: DescribedDescription<T>, action: ActionType): TranslationImpl;
|
|
48
|
+
protected getUseTooltipContext(description: DescribedDescription<T>, action: ActionType): InfoProviderContext | undefined;
|
|
49
|
+
protected getUseBonus(description: DescribedDescription<T>, action: ActionType): number;
|
|
50
|
+
protected getUseBonusQuality(): Quality | undefined;
|
|
47
51
|
protected getActionTier(description: DescribedDescription<T>, action: ActionType): number | undefined;
|
|
48
52
|
private getUseName;
|
|
49
53
|
}
|
|
@@ -12,12 +12,21 @@ import Doodad from "@wayward/game/game/doodad/Doodad";
|
|
|
12
12
|
import { type DoodadType, type IDoodadDescription } from "@wayward/game/game/doodad/IDoodad";
|
|
13
13
|
import type { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
14
14
|
import { EntityType } from "@wayward/game/game/entity/IEntity";
|
|
15
|
+
import { Quality } from "@wayward/game/game/IObject";
|
|
16
|
+
import type { InfoProviderContext } from "@wayward/game/game/inspection/InfoProviderContext";
|
|
15
17
|
import type UseInfo from "@wayward/game/game/inspection/infoProviders/UseInfo";
|
|
16
18
|
import Uses from "@wayward/game/game/inspection/infoProviders/Uses";
|
|
17
19
|
export default class DoodadUses extends Uses<Doodad> {
|
|
20
|
+
private actionTierQuality?;
|
|
18
21
|
protected getEntityType(): EntityType.Doodad;
|
|
22
|
+
setActionTierQuality(quality: Quality | undefined): this;
|
|
19
23
|
protected getDescription(type: DoodadType): IDoodadDescription | undefined;
|
|
20
24
|
protected getUses(description: IDoodadDescription): ActionType[];
|
|
21
25
|
protected getUseInfoHandlers(): Array<UseInfo<any, any, any, Doodad>>;
|
|
26
|
+
protected getUseBonus(description: IDoodadDescription, action: ActionType): number;
|
|
27
|
+
protected getUseTooltipContext(description: IDoodadDescription, action: ActionType): InfoProviderContext | undefined;
|
|
28
|
+
protected getUseBonusQuality(): Quality | undefined;
|
|
29
|
+
private getActionTierBreakdown;
|
|
30
|
+
protected getActionTier(description: IDoodadDescription, action: ActionType): number | undefined;
|
|
22
31
|
private getDescriptionActions;
|
|
23
32
|
}
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { MoveFlag } from "@wayward/game/game/entity/IEntity";
|
|
12
|
-
import type { IActionApi } from "@wayward/game/game/entity/action/IAction";
|
|
13
|
-
import type { ActionId, IUsableActionDefinition, IUsableActionPossibleUsing, IUsableActionRequirements } from "@wayward/game/game/entity/action/usable/IUsableAction";
|
|
12
|
+
import type { IActionApi, IActionNotUsable, IActionUsable } from "@wayward/game/game/entity/action/IAction";
|
|
13
|
+
import type { ActionId, IUsableActionDefinition, IUsableActionPossibleUsing, IUsableActionRequirements, UsableActionUsability } from "@wayward/game/game/entity/action/usable/IUsableAction";
|
|
14
14
|
import { UsableActionDisplayContext } from "@wayward/game/game/entity/action/usable/IUsableAction";
|
|
15
15
|
import type UsableAction from "@wayward/game/game/entity/action/usable/UsableAction";
|
|
16
16
|
import type Player from "@wayward/game/game/entity/player/Player";
|
|
@@ -28,16 +28,18 @@ import { ReferenceType } from "@wayward/game/game/reference/IReferenceManager";
|
|
|
28
28
|
import type Tile from "@wayward/game/game/tile/Tile";
|
|
29
29
|
import Translation from "@wayward/game/language/Translation";
|
|
30
30
|
import type TranslationImpl from "@wayward/game/language/impl/TranslationImpl";
|
|
31
|
+
type ActionInspectionUsability = IActionUsable | IActionNotUsable | UsableActionUsability;
|
|
31
32
|
export default class ActionInspection extends Inspection<ActionId | undefined> {
|
|
32
33
|
static handles: (type: InspectType, value: unknown, context?: InfoProviderContext) => boolean;
|
|
33
34
|
static getAction(id: ActionId): UsableAction<IUsableActionRequirements, IUsableActionDefinition> | undefined;
|
|
34
|
-
static getActionNameWithTier(id: ActionId | UsableAction, context: UsableActionDisplayContext, provided: IUsableActionPossibleUsing | undefined, resolveUsing: boolean): TranslationImpl | undefined;
|
|
35
|
+
static getActionNameWithTier(id: ActionId | UsableAction, context: UsableActionDisplayContext, provided: IUsableActionPossibleUsing | undefined, resolveUsing: boolean, usability?: ActionInspectionUsability): TranslationImpl | undefined;
|
|
35
36
|
private static getTranslation;
|
|
36
37
|
static getRuneInfo(id: ActionId, itemType?: ItemType, item?: Item): SimpleInfoProvider | undefined;
|
|
37
38
|
constructor(value?: ActionId | EnumReferenceResolved<ReferenceType.Action>, context?: InfoProviderContext);
|
|
38
39
|
private get using();
|
|
39
40
|
private getAction;
|
|
40
41
|
private get item();
|
|
42
|
+
private cachedUsability?;
|
|
41
43
|
getId(): string;
|
|
42
44
|
private getActionId;
|
|
43
45
|
protected getTitle(context: InfoProviderContext): Translation;
|
|
@@ -47,8 +49,10 @@ export default class ActionInspection extends Inspection<ActionId | undefined> {
|
|
|
47
49
|
private getActionSlotItemMode;
|
|
48
50
|
private getTranslation;
|
|
49
51
|
private getActionDiscovered;
|
|
50
|
-
private static
|
|
52
|
+
private static getItemActionTier;
|
|
53
|
+
private static getResolvedActionTier;
|
|
51
54
|
private getActionTierInfo;
|
|
55
|
+
private getUsability;
|
|
52
56
|
private getActionUsability;
|
|
53
57
|
private getActionExample;
|
|
54
58
|
protected onPlayerUpdate(): void;
|
|
@@ -56,3 +60,4 @@ export default class ActionInspection extends Inspection<ActionId | undefined> {
|
|
|
56
60
|
protected onTickEnd(island: Island, options: IIslandTickOptions): void;
|
|
57
61
|
postExecuteAction(action: IActionApi): void;
|
|
58
62
|
}
|
|
63
|
+
export {};
|
|
@@ -192,6 +192,7 @@ export default class Item extends EntityMovable<IItemDescription, ItemType, Refe
|
|
|
192
192
|
get builtDescription(): IDoodadDescription | undefined;
|
|
193
193
|
get builtAndLitDescription(): IDoodadDescription | undefined;
|
|
194
194
|
get placeDownDescription(): IDoodadDescription | undefined;
|
|
195
|
+
preventsUsingAsContainerInInventory(): boolean;
|
|
195
196
|
countTradesWith(human?: Human): number;
|
|
196
197
|
/**
|
|
197
198
|
* Gets the owner of this item.
|
|
@@ -29,7 +29,7 @@ declare namespace Runekeeper {
|
|
|
29
29
|
CurseEvent = 9
|
|
30
30
|
}
|
|
31
31
|
type DomainName = Lowercase<keyof typeof Domain>;
|
|
32
|
-
const DOMAINS: ("event" | "dismantle" | "action" | "craft" | "skill" | "disassemble" | "killcreature" | "tamecreature" | "killnpc"
|
|
32
|
+
const DOMAINS: ("event" | "dismantle" | "action" | "craft" | "curseevent" | "skill" | "disassemble" | "killcreature" | "tamecreature" | "killnpc")[];
|
|
33
33
|
type DomainData = `${DomainName}:${number}`;
|
|
34
34
|
function domainName(domain: Domain | DomainData): DomainName;
|
|
35
35
|
function isDiscovered(domain: DomainData): boolean;
|
|
@@ -13,6 +13,7 @@ import type Item from "@wayward/game/game/item/Item";
|
|
|
13
13
|
import type ItemManager from "@wayward/game/game/item/ItemManager";
|
|
14
14
|
import Button from "@wayward/game/ui/component/Button";
|
|
15
15
|
import Component from "@wayward/game/ui/component/Component";
|
|
16
|
+
import Text from "@wayward/game/ui/component/Text";
|
|
16
17
|
import ContainerDialog from "@wayward/game/ui/screen/screens/game/dialog/ContainerDialog";
|
|
17
18
|
import { DialogId } from "@wayward/game/ui/screen/screens/game/Dialogs";
|
|
18
19
|
export declare enum AltarDialogClasses {
|
|
@@ -21,12 +22,14 @@ export declare enum AltarDialogClasses {
|
|
|
21
22
|
ConsecrateButton = "altar-dialog-consecrate-button",
|
|
22
23
|
ConsecrateButtonDisabled = "altar-dialog-consecrate-button--disabled",
|
|
23
24
|
ResultArrow = "altar-dialog-result-arrow",
|
|
25
|
+
ResultArrowFanaticism = "altar-dialog-result-arrow-fanaticism",
|
|
24
26
|
Projection = "altar-dialog-projection",
|
|
25
27
|
ProjectionItem = "altar-dialog-projection-item"
|
|
26
28
|
}
|
|
27
29
|
export default class AltarDialog extends ContainerDialog {
|
|
28
30
|
readonly consecrateButton: Button;
|
|
29
31
|
readonly resultArrow: Component<HTMLElement>;
|
|
32
|
+
readonly resultArrowFanaticism: Text;
|
|
30
33
|
readonly projection: Component<HTMLElement>;
|
|
31
34
|
constructor(id?: DialogId, subId?: string);
|
|
32
35
|
setContainer(container: IContainer): this;
|
|
@@ -30,7 +30,7 @@ export declare enum EquipmentClasses {
|
|
|
30
30
|
SlotsWrapper = "game-dialog-equipment-slots-wrapper"
|
|
31
31
|
}
|
|
32
32
|
export declare namespace EquipmentClasses {
|
|
33
|
-
const SlotType: (enumValue: EquipType) => "game-dialog-equipment-slot-none" | "game-dialog-equipment-slot-head" | "game-dialog-equipment-slot-
|
|
33
|
+
const SlotType: (enumValue: EquipType) => "game-dialog-equipment-slot-none" | "game-dialog-equipment-slot-head" | "game-dialog-equipment-slot-back" | "game-dialog-equipment-slot-chest" | "game-dialog-equipment-slot-feet" | "game-dialog-equipment-slot-hands" | "game-dialog-equipment-slot-held" | "game-dialog-equipment-slot-legs" | "game-dialog-equipment-slot-neck" | "game-dialog-equipment-slot-waist" | "game-dialog-equipment-slot-mainhand" | "game-dialog-equipment-slot-offhand" | "game-dialog-equipment-slot-dualwield";
|
|
34
34
|
}
|
|
35
35
|
export default class EquipmentDialog extends Dialog {
|
|
36
36
|
readonly slots: Component<HTMLElement>;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import type { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
12
|
-
import type { ActionId, IUsableActionDefinition, IUsableActionPossibleUsing, IUsableActionRequirements } from "@wayward/game/game/entity/action/usable/IUsableAction";
|
|
12
|
+
import type { ActionId, IUsableActionDefinition, IUsableActionPossibleUsing, IUsableActionRequirements, UsableActionUsability } from "@wayward/game/game/entity/action/usable/IUsableAction";
|
|
13
13
|
import { UsableActionDisplayContext } from "@wayward/game/game/entity/action/usable/IUsableAction";
|
|
14
14
|
import type UsableAction from "@wayward/game/game/entity/action/usable/UsableAction";
|
|
15
15
|
import { InfoDisplayLevel } from "@wayward/game/game/inspection/IInfoProvider";
|
|
@@ -55,9 +55,10 @@ export interface IActionUseContextUsing extends Omit<IUsableActionPossibleUsing,
|
|
|
55
55
|
}
|
|
56
56
|
export declare class ActionUseContext extends InfoProviderContext {
|
|
57
57
|
readonly context: UsableActionDisplayContext;
|
|
58
|
+
readonly usability?: UsableActionUsability | undefined;
|
|
58
59
|
private readonly stored?;
|
|
59
60
|
get provided(): IActionUseContextUsing | undefined;
|
|
60
|
-
constructor(provided: IActionUseContextUsing, context?: UsableActionDisplayContext);
|
|
61
|
+
constructor(provided: IActionUseContextUsing, context?: UsableActionDisplayContext, usability?: UsableActionUsability | undefined);
|
|
61
62
|
}
|
|
62
63
|
export declare class ActionSlotContext extends InfoProviderContext {
|
|
63
64
|
private readonly slotRef?;
|
package/package.json
CHANGED