@wayward/types 2.14.6-beta.dev.20250724.1 → 2.14.6-beta.dev.20250726.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/infoProviders/MagicalDecayReduction.d.ts +13 -0
- package/definitions/game/game/inspection/infoProviders/item/ItemDurability.d.ts +1 -1
- package/definitions/game/game/item/Item.d.ts +2 -1
- package/definitions/game/game/magic/MagicalPropertyType.d.ts +3 -1
- package/definitions/game/language/dictionary/UiTranslation.d.ts +758 -757
- package/package.json +1 -1
|
@@ -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 { IHasMagic } from "@wayward/game/game/magic/IMagicalProperty";
|
|
12
|
+
import type TranslationImpl from "@wayward/game/language/impl/TranslationImpl";
|
|
13
|
+
export default function (magicalThingy: IHasMagic): TranslationImpl | undefined;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import { InfoProvider } from "@wayward/game/game/inspection/InfoProvider";
|
|
12
12
|
import LabelledValue from "@wayward/game/game/inspection/infoProviders/LabelledValue";
|
|
13
13
|
import type Item from "@wayward/game/game/item/Item";
|
|
14
|
-
export default class
|
|
14
|
+
export default class ItemDurabilityDecayInfoProvider extends InfoProvider {
|
|
15
15
|
private readonly item;
|
|
16
16
|
constructor(item: Item);
|
|
17
17
|
getClass(): string[];
|
|
@@ -382,8 +382,9 @@ export default class Item extends EntityMovable<IItemDescription, ItemType, Refe
|
|
|
382
382
|
* Sets the item's decay time (ticks until it decays at 1x decay speed).
|
|
383
383
|
* @param decayTime The new decay time to set, or `undefined` to remove the decay time.
|
|
384
384
|
* @param bypassMax If set to true, it will not check the maximum decay time and will set it to the given value.
|
|
385
|
+
* @param increaseStartingDecay If set to true, it will increase the starting decay time if the new decay time is higher than the starting decay time.
|
|
385
386
|
*/
|
|
386
|
-
setDecayTime(decayTime?: number,
|
|
387
|
+
setDecayTime(decayTime?: number, capDecayMax?: boolean, increaseStartingDecay?: boolean): void;
|
|
387
388
|
/**
|
|
388
389
|
* Resets the item's decay with some added randomization.
|
|
389
390
|
*/
|
|
@@ -84,7 +84,9 @@ declare enum MagicalPropertyType {
|
|
|
84
84
|
/** Adds a property to equippables that will enhance the effect of consumables in a given stat */
|
|
85
85
|
StatPotency_EquipmentImproveConsumableStats = 29,
|
|
86
86
|
/** Adds bonus durability to an item */
|
|
87
|
-
Persistence_MaxDurability = 30
|
|
87
|
+
Persistence_MaxDurability = 30,
|
|
88
|
+
/** Adds a chance in which an item does reduce in decay when passing a turn */
|
|
89
|
+
Perpetuity_DecayLossChance = 31
|
|
88
90
|
}
|
|
89
91
|
export default MagicalPropertyType;
|
|
90
92
|
export interface IMagicalPropertyDescription {
|