@wayward/types 2.15.4-beta.dev.20260411.1 → 2.15.4-beta.dev.20260412.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/magic/Endurance.d.ts +24 -0
- package/definitions/game/game/magic/Perpetuity.d.ts +13 -0
- package/definitions/game/language/Translation.d.ts +4 -1
- package/definitions/game/language/dictionary/UiTranslation.d.ts +746 -744
- package/definitions/test/suite/unitTests/game/IslandTestUtilities.d.ts +1 -1
- package/definitions/test/suite/unitTests/game/ui/screen/screens/game/component/ItemComponent.spec.d.ts +13 -0
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
interface IChanceRandom {
|
|
12
|
+
chance(decimal: number): boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Normalizes endurance durability-loss chances into the effective per-event proc chance.
|
|
16
|
+
* Cursed endurance uses the same magnitude as uncursed endurance, but applies an extra loss proc instead of preventing one.
|
|
17
|
+
*/
|
|
18
|
+
export declare function getEffectiveDurabilityLossChance(durabilityLossChance?: number): number;
|
|
19
|
+
/**
|
|
20
|
+
* Returns the number of durability-loss procs for a single endurance check.
|
|
21
|
+
* Uncursed endurance can prevent the event entirely, while cursed endurance can add at most one extra proc.
|
|
22
|
+
*/
|
|
23
|
+
export declare function getDurabilityLossProcCount(random: IChanceRandom, durabilityLossChance?: number): number;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { Random } from "@wayward/utilities/random/Random";
|
|
12
|
+
export declare function getEffectiveDecayLossChance(decayLossChance?: number): number;
|
|
13
|
+
export declare function adjustDecayLossByPerpetuity(random: Random, baseDecayLoss: number, decayLossChance?: number): number;
|
|
@@ -213,7 +213,10 @@ declare namespace Translation {
|
|
|
213
213
|
private translateComponent;
|
|
214
214
|
private translateComponentValue;
|
|
215
215
|
private resolveComponentValue;
|
|
216
|
-
private
|
|
216
|
+
private getHighestMagnitudeComponent;
|
|
217
|
+
private getCombinedColorCandidateComponents;
|
|
218
|
+
private getQualitySourceValue;
|
|
219
|
+
private getHighestPriorityColorComponent;
|
|
217
220
|
private getCombinedComponent;
|
|
218
221
|
combined(value?: FVal, reformatter?: SupplierOr<Translation | undefined>): this;
|
|
219
222
|
base(value: FVal, reformatter?: SupplierOr<Translation | undefined>): this;
|