@wayward/types 2.15.3-beta.dev.20260303.1 → 2.15.3-beta.dev.20260308.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/inspection/InfoProvider.d.ts +3 -0
- package/definitions/game/game/inspection/infoProviders/stat/CurseInfo.d.ts +2 -1
- package/definitions/game/save/upgrade/versions/beta2.15.3/beta2.15.3-dev20260308.d.ts +12 -0
- package/definitions/game/ui/screen/screens/game/static/actions/ActionSlot.d.ts +1 -1
- package/package.json +1 -1
|
@@ -80,6 +80,9 @@ export declare abstract class InfoProvider extends EventEmitter.Host<IInfoProvid
|
|
|
80
80
|
private static bus?;
|
|
81
81
|
static multiTextParagraph: string;
|
|
82
82
|
static create(...translations: TranslationGenerator[]): SimpleInfoProvider;
|
|
83
|
+
static dynamic<const O extends Array<BaseObserver<any>>, const T extends {
|
|
84
|
+
[I in keyof O]: O[I] extends BaseObserver<infer U> ? U : never;
|
|
85
|
+
}>(observers: O, supplier: (...values: T) => InfoProvider | undefined): SimpleInfoProvider;
|
|
83
86
|
static dynamic<T>(observer: BaseObserver<T>, supplier: (value: T) => InfoProvider | undefined): SimpleInfoProvider;
|
|
84
87
|
static of(...classes: string[]): SimpleInfoProvider;
|
|
85
88
|
static header(...classes: string[]): SimpleInfoProvider;
|
|
@@ -16,8 +16,9 @@ export declare enum CurseInfoClasses {
|
|
|
16
16
|
}
|
|
17
17
|
export default class CurseInfo extends StatInfo {
|
|
18
18
|
private readonly curseFactors;
|
|
19
|
+
private readonly curseDisplayChance;
|
|
20
|
+
private readonly curseRatePercent;
|
|
19
21
|
private readonly curseFactorsExact;
|
|
20
|
-
private getCurseRatePercent;
|
|
21
22
|
hasContent(context: InfoProviderContext): boolean;
|
|
22
23
|
get(): InfoProvider[];
|
|
23
24
|
}
|
|
@@ -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;
|
|
@@ -85,7 +85,7 @@ export declare class ActionSlot extends Button implements IRefreshable, ItemSlot
|
|
|
85
85
|
private setLastItem;
|
|
86
86
|
private onItemTransformed;
|
|
87
87
|
isUsable(using?: IUsableActionPossibleUsing | undefined, action?: UsableAction<IUsableActionRequirements, IUsableActionDefinition> | undefined): UsableActionUsability;
|
|
88
|
-
clear(): void;
|
|
88
|
+
clear(playSound?: boolean): void;
|
|
89
89
|
equipAction(actionId: ActionId, using?: IUsableActionPossibleUsing, autoUse?: boolean): void;
|
|
90
90
|
equipItem(item: Item | ItemType, configure?: boolean, autoUse?: boolean, quality?: boolean | ArrayOr<Quality>): void;
|
|
91
91
|
protected onConfigureBind(api: IBindHandlerApi): boolean;
|
package/package.json
CHANGED