@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
|
@@ -20,7 +20,7 @@ import type Human from "@wayward/game/game/entity/Human";
|
|
|
20
20
|
import type { IMovingData } from "@wayward/game/game/entity/IEntity";
|
|
21
21
|
import { AttackType, DamageType, EntityType } from "@wayward/game/game/entity/IEntity";
|
|
22
22
|
import type { EquipType } from "@wayward/game/game/entity/IHuman";
|
|
23
|
-
import { SkillType } from "@wayward/game/game/entity/
|
|
23
|
+
import { SkillType } from "@wayward/game/game/entity/skill/ISkills";
|
|
24
24
|
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
25
25
|
import type ActionContext from "@wayward/game/game/entity/action/IActionContext";
|
|
26
26
|
import type Creature from "@wayward/game/game/entity/creature/Creature";
|
|
@@ -42,7 +42,7 @@ import type { IMagicalPropertyManagerEvents } from "@wayward/game/game/magic/Mag
|
|
|
42
42
|
import MagicalPropertyManager from "@wayward/game/game/magic/MagicalPropertyManager";
|
|
43
43
|
import MagicalPropertyType from "@wayward/game/game/magic/MagicalPropertyType";
|
|
44
44
|
import type { Reference, ReferenceType } from "@wayward/game/game/reference/IReferenceManager";
|
|
45
|
-
import type
|
|
45
|
+
import { type IHasInsulation, type IInsulationResult, type TempType } from "@wayward/game/game/temperature/ITemperature";
|
|
46
46
|
import type Tile from "@wayward/game/game/tile/Tile";
|
|
47
47
|
import type TileEvent from "@wayward/game/game/tile/TileEvent";
|
|
48
48
|
import FireStage from "@wayward/game/game/tile/events/fire/FireStage";
|
|
@@ -366,8 +366,8 @@ export default class Item extends EntityMovable<IItemDescription, ItemType, Refe
|
|
|
366
366
|
canBeRefined(): boolean;
|
|
367
367
|
getProducedTemperature(): number | undefined;
|
|
368
368
|
postProcessDecay(): void;
|
|
369
|
-
getContainerInsulation(type: TempType):
|
|
370
|
-
getEquipmentInsulation(type: TempType):
|
|
369
|
+
getContainerInsulation(type: TempType): IInsulationResult | undefined;
|
|
370
|
+
getEquipmentInsulation(type: TempType): IInsulationResult | undefined;
|
|
371
371
|
getBaseTemperature(): number | undefined;
|
|
372
372
|
/**
|
|
373
373
|
* Gets the ticks until this item will decay at 1x decay speed.
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import type { DeityReal } from "@wayward/game/game/deity/Deity";
|
|
12
12
|
import type { RuneChance } from "@wayward/game/game/deity/IDeities";
|
|
13
13
|
import type Entity from "@wayward/game/game/entity/Entity";
|
|
14
|
-
import { SkillType } from "@wayward/game/game/entity/
|
|
14
|
+
import { SkillType } from "@wayward/game/game/entity/skill/ISkills";
|
|
15
15
|
import { RecipeLevel } from "@wayward/game/game/item/IItem";
|
|
16
16
|
import type Item from "@wayward/game/game/item/Item";
|
|
17
17
|
import Crafter from "@wayward/game/game/item/recipe/Crafter";
|
|
@@ -0,0 +1,63 @@
|
|
|
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 { ItemType, IItemDescription, IMagicalPropertyInfo } from "@wayward/game/game/item/IItem";
|
|
12
|
+
import type Item from "@wayward/game/game/item/Item";
|
|
13
|
+
import type { MagicalNormalPropertyTypes, MagicalSubPropertyTypes, MagicalPropertyIdentity } from "@wayward/game/game/magic/IMagicalProperty";
|
|
14
|
+
import MagicalPropertyType from "@wayward/game/game/magic/MagicalPropertyType";
|
|
15
|
+
import type { TranslationArg } from "@wayward/game/language/ITranslation";
|
|
16
|
+
import type TranslationClass from "@wayward/game/language/Translation";
|
|
17
|
+
export declare namespace MagicalPropertyInfoHelper {
|
|
18
|
+
function isNormalProperty(property: MagicalPropertyType): property is MagicalNormalPropertyTypes;
|
|
19
|
+
function isSubProperty(property: MagicalPropertyType): property is MagicalSubPropertyTypes;
|
|
20
|
+
/**
|
|
21
|
+
* Creates a partial `IMagicalPropertyDescription` that generates an integer value from min (inclusive) to max (exclusive),
|
|
22
|
+
* with an *actual* max for the magical property using `max`. (1 higher)
|
|
23
|
+
*/
|
|
24
|
+
function intRange(item: Item | ItemType, min: number, max: number, generatedMax?: number): {
|
|
25
|
+
min: number;
|
|
26
|
+
max: number;
|
|
27
|
+
value: () => number;
|
|
28
|
+
};
|
|
29
|
+
function randomInt(item: Item | ItemType, maxExclusive: number): number;
|
|
30
|
+
function randomInt(item: Item | ItemType, min: number, maxExclusive: number): number;
|
|
31
|
+
function randomIntInRange(item: Item | ItemType, max: number): number;
|
|
32
|
+
function randomIntInRange(item: Item | ItemType, min: number, maxInclusive: number): number;
|
|
33
|
+
function randomFloat(item: Item | ItemType, maxExclusive: number): number;
|
|
34
|
+
function randomFloat(item: Item | ItemType, min: number, maxExclusive: number): number;
|
|
35
|
+
function functionRequiringItem<T>(item: Item | ItemType, fn: (item: Item) => T): () => T;
|
|
36
|
+
}
|
|
37
|
+
export interface IMagicalPropertyDescription {
|
|
38
|
+
/**
|
|
39
|
+
* Whether this magical property is applicable for the given item.
|
|
40
|
+
*/
|
|
41
|
+
isApplicable(item: Item, description: IItemDescription): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Generates the magical property value when added.
|
|
44
|
+
*/
|
|
45
|
+
getInfo(item: Item | ItemType, description: IItemDescription): IMagicalPropertyInfo | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* By default, all magical property types can be inscribed. This allows disabling that feature for this magical property type.
|
|
48
|
+
*/
|
|
49
|
+
disableInscription?: true;
|
|
50
|
+
/**
|
|
51
|
+
* If set, this magical property cannot appear as a "curse" (inverted value) magical property.
|
|
52
|
+
*/
|
|
53
|
+
disableCurse?: true;
|
|
54
|
+
subTypeEnum?: Record<string, string | number>;
|
|
55
|
+
isValidEnum?(enumValue: number): boolean;
|
|
56
|
+
translateArgs?(...identity: MagicalPropertyIdentity): TranslationArg[];
|
|
57
|
+
}
|
|
58
|
+
export declare const magicalPropertyDescriptions: PartialRecord<MagicalPropertyType, IMagicalPropertyDescription>;
|
|
59
|
+
declare let Translation: typeof TranslationClass | undefined;
|
|
60
|
+
export declare namespace IMagicalPropertyDescription {
|
|
61
|
+
function setTranslation(_Translation: typeof Translation): void;
|
|
62
|
+
}
|
|
63
|
+
export {};
|
|
@@ -8,15 +8,10 @@
|
|
|
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 Deity from "@wayward/game/game/deity/Deity";
|
|
12
|
-
import { DamageType } from "@wayward/game/game/entity/IEntity";
|
|
13
|
-
import { SkillType } from "
|
|
14
|
-
import { Stat } from "@wayward/game/game/entity/IStats";
|
|
15
|
-
import type { IItemDescription, IMagicalPropertyInfo, ItemType } from "@wayward/game/game/item/IItem";
|
|
16
|
-
import type Item from "@wayward/game/game/item/Item";
|
|
17
|
-
import type { MagicalPropertyIdentity, MagicalNormalPropertyTypes, MagicalSubPropertyTypes } from "@wayward/game/game/magic/IMagicalProperty";
|
|
18
|
-
import type { TranslationArg } from "@wayward/game/language/ITranslation";
|
|
19
|
-
import type TranslationClass from "@wayward/game/language/Translation";
|
|
11
|
+
import type Deity from "@wayward/game/game/deity/Deity";
|
|
12
|
+
import type { DamageType } from "@wayward/game/game/entity/IEntity";
|
|
13
|
+
import type { SkillType } from "../entity/skill/ISkills";
|
|
14
|
+
import type { Stat } from "@wayward/game/game/entity/IStats";
|
|
20
15
|
export declare const MAGICAL_PROPERTY_GLOWING_LIGHT_BONUS = 5;
|
|
21
16
|
declare enum MagicalPropertyType {
|
|
22
17
|
/** Increases attack value (for weapons and ammo) */
|
|
@@ -91,27 +86,6 @@ declare enum MagicalPropertyType {
|
|
|
91
86
|
Perpetuity_DecayLossChance = 31
|
|
92
87
|
}
|
|
93
88
|
export default MagicalPropertyType;
|
|
94
|
-
export interface IMagicalPropertyDescription {
|
|
95
|
-
/**
|
|
96
|
-
* Whether this magical property is applicable for the given item.
|
|
97
|
-
*/
|
|
98
|
-
isApplicable(item: Item, description: IItemDescription): boolean;
|
|
99
|
-
/**
|
|
100
|
-
* Generates the magical property value when added.
|
|
101
|
-
*/
|
|
102
|
-
getInfo(item: Item | ItemType, description: IItemDescription): IMagicalPropertyInfo | undefined;
|
|
103
|
-
/**
|
|
104
|
-
* By default, all magical property types can be inscribed. This allows disabling that feature for this magical property type.
|
|
105
|
-
*/
|
|
106
|
-
disableInscription?: true;
|
|
107
|
-
/**
|
|
108
|
-
* If set, this magical property cannot appear as a "curse" (inverted value) magical property.
|
|
109
|
-
*/
|
|
110
|
-
disableCurse?: true;
|
|
111
|
-
subTypeEnum?: Record<string, string | number>;
|
|
112
|
-
isValidEnum?(enumValue: number): boolean;
|
|
113
|
-
translateArgs?(...identity: MagicalPropertyIdentity): TranslationArg[];
|
|
114
|
-
}
|
|
115
89
|
export interface MagicalPropertyTypeSubTypeMap {
|
|
116
90
|
[MagicalPropertyType.Stat]: Stat;
|
|
117
91
|
[MagicalPropertyType.Skill]: SkillType;
|
|
@@ -120,28 +94,3 @@ export interface MagicalPropertyTypeSubTypeMap {
|
|
|
120
94
|
[MagicalPropertyType.ElementalDamage]: DamageType;
|
|
121
95
|
[MagicalPropertyType.StatPotency_EquipmentImproveConsumableStats]: Stat;
|
|
122
96
|
}
|
|
123
|
-
export declare namespace MagicalPropertyInfoHelper {
|
|
124
|
-
function isNormalProperty(property: MagicalPropertyType): property is MagicalNormalPropertyTypes;
|
|
125
|
-
function isSubProperty(property: MagicalPropertyType): property is MagicalSubPropertyTypes;
|
|
126
|
-
/**
|
|
127
|
-
* Creates a partial `IMagicalPropertyDescription` that generates an integer value from min (inclusive) to max (exclusive),
|
|
128
|
-
* with an *actual* max for the magical property using `max`. (1 higher)
|
|
129
|
-
*/
|
|
130
|
-
function intRange(item: Item | ItemType, min: number, max: number, generatedMax?: number): {
|
|
131
|
-
min: number;
|
|
132
|
-
max: number;
|
|
133
|
-
value: () => number;
|
|
134
|
-
};
|
|
135
|
-
function randomInt(item: Item | ItemType, maxExclusive: number): number;
|
|
136
|
-
function randomInt(item: Item | ItemType, min: number, maxExclusive: number): number;
|
|
137
|
-
function randomIntInRange(item: Item | ItemType, max: number): number;
|
|
138
|
-
function randomIntInRange(item: Item | ItemType, min: number, maxInclusive: number): number;
|
|
139
|
-
function randomFloat(item: Item | ItemType, maxExclusive: number): number;
|
|
140
|
-
function randomFloat(item: Item | ItemType, min: number, maxExclusive: number): number;
|
|
141
|
-
function functionRequiringItem<T>(item: Item | ItemType, fn: (item: Item) => T): () => T;
|
|
142
|
-
}
|
|
143
|
-
export declare const magicalPropertyDescriptions: PartialRecord<MagicalPropertyType, IMagicalPropertyDescription>;
|
|
144
|
-
declare let Translation: typeof TranslationClass | undefined;
|
|
145
|
-
export declare namespace IMagicalPropertyDescription {
|
|
146
|
-
function setTranslation(_Translation: typeof Translation): void;
|
|
147
|
-
}
|
|
@@ -80,7 +80,8 @@ export declare enum Milestone {
|
|
|
80
80
|
Exsanguinated = 68,
|
|
81
81
|
InternalItemDiscovered = 69,
|
|
82
82
|
Cursed = 70,
|
|
83
|
-
Cursebreaker = 71
|
|
83
|
+
Cursebreaker = 71,
|
|
84
|
+
Oblivious = 72
|
|
84
85
|
}
|
|
85
86
|
export type ExcludeInternalMilestones<MILESTONE extends Milestone> = PickValueKeys<typeof Milestone, MILESTONE> extends `Internal${string}` ? never : MILESTONE;
|
|
86
87
|
export declare enum MilestoneVisibility {
|
|
@@ -125,18 +126,22 @@ export declare enum MilestoneDataType {
|
|
|
125
126
|
* For example, this could be used to check for a skill level.
|
|
126
127
|
*/
|
|
127
128
|
Check = 2,
|
|
129
|
+
/**
|
|
130
|
+
* The same as the `Check` type, but upon the milestone being set to a value lower than the previous check, the displayed "progress" will match, rather than it staying at your previous highest.
|
|
131
|
+
*/
|
|
132
|
+
LiveCheck = 3,
|
|
128
133
|
/**
|
|
129
134
|
* This milestone will be granted the first time it's updated.
|
|
130
135
|
*
|
|
131
136
|
* For example, this type could be used for determining whether the player has done something specific.
|
|
132
137
|
*/
|
|
133
|
-
Event =
|
|
138
|
+
Event = 4,
|
|
134
139
|
/**
|
|
135
140
|
* This milestone type requires a number of entries, each of which must be distinct, and discovered in order.
|
|
136
141
|
*
|
|
137
142
|
* For example, this type could be used to handle staged discovery.
|
|
138
143
|
*/
|
|
139
|
-
Ordered =
|
|
144
|
+
Ordered = 5
|
|
140
145
|
}
|
|
141
146
|
export interface IMilestoneData {
|
|
142
147
|
amount: number;
|
|
@@ -32,8 +32,10 @@ export default class MilestoneDefinition {
|
|
|
32
32
|
/**
|
|
33
33
|
* This milestone will be granted when an `amount` of conditions happen simultaneously.
|
|
34
34
|
* For example, this could be used to check for a skill level.
|
|
35
|
+
*
|
|
36
|
+
* @param live If `true`, the milestone will update its progress even if the new value is lower than the previous value.
|
|
35
37
|
*/
|
|
36
|
-
static check(amount: SupplierOr<number
|
|
38
|
+
static check(amount: SupplierOr<number>, live?: boolean): MilestoneDefinition;
|
|
37
39
|
/**
|
|
38
40
|
* This milestone will be granted after being incremented `amount` times.
|
|
39
41
|
* It does not require each increment to have a different ID, like `counter` does.
|
|
@@ -72,14 +74,16 @@ export default class MilestoneDefinition {
|
|
|
72
74
|
inherit(def: MilestoneDefinition): this;
|
|
73
75
|
visibility: MilestoneVisibility;
|
|
74
76
|
visibleThreshold: number | Milestone | [Milestone, string | number];
|
|
77
|
+
visibilityAfterThreshold: MilestoneVisibility;
|
|
75
78
|
/**
|
|
76
79
|
* @param visibility Whether the milestone is completely visible, has its name hidden, or has its required amount hidden. Defaults to `Visible`
|
|
77
|
-
* @param until Sets the time when the milestone will become `Visible
|
|
80
|
+
* @param until Sets the time when the milestone will become `Visible` (or `visibilityAfterThreshold`). This can be any of:
|
|
78
81
|
* - A completion threshold (in a fractional value between 0 and 1)
|
|
79
82
|
* - A different milestone to complete first
|
|
80
83
|
* - A tuple of a different milestone and a value that must be discovered in that milestone
|
|
84
|
+
* @param visibilityAfterThreshold What the visibility will be after the `until` condition is met. Defaults to `Visible`
|
|
81
85
|
*/
|
|
82
|
-
setVisibility(visibility: MilestoneVisibility, until?: number | [Milestone, string | number]): this;
|
|
86
|
+
setVisibility(visibility: MilestoneVisibility, until?: number | [Milestone, string | number], visibilityAfterThreshold?: MilestoneVisibility): this;
|
|
83
87
|
/**
|
|
84
88
|
* Sets this milestone to be unlockable in all game modes, and not disabled by mods.
|
|
85
89
|
*/
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import type { RuneChance } from "@wayward/game/game/deity/IDeities";
|
|
12
12
|
import type { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
13
13
|
import type { CreatureType } from "@wayward/game/game/entity/creature/ICreature";
|
|
14
|
-
import type { SkillType } from "
|
|
14
|
+
import type { SkillType } from "../../entity/skill/ISkills";
|
|
15
15
|
import type { NPCType } from "@wayward/game/game/entity/npc/INPCs";
|
|
16
16
|
import type { ItemType } from "@wayward/game/game/item/IItem";
|
|
17
17
|
declare namespace Runekeeper {
|
|
@@ -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 type { SkillType } from "
|
|
11
|
+
import type { SkillType } from "../entity/skill/ISkills";
|
|
12
12
|
import type { ItemType } from "@wayward/game/game/item/IItem";
|
|
13
13
|
import type { IGameOptions, IGameOptionsSkill } from "@wayward/game/game/options/IGameOptions";
|
|
14
14
|
import { GameMode } from "@wayward/game/game/options/IGameOptions";
|
|
@@ -12,7 +12,7 @@ import type { Quality, QualityNatural } from "@wayward/game/game/IObject";
|
|
|
12
12
|
import type { BiomeType } from "@wayward/game/game/biome/IBiome";
|
|
13
13
|
import type { DeityReal } from "@wayward/game/game/deity/Deity";
|
|
14
14
|
import type { AttackType } from "@wayward/game/game/entity/IEntity";
|
|
15
|
-
import type { SkillType } from "
|
|
15
|
+
import type { SkillType } from "../entity/skill/ISkills";
|
|
16
16
|
import type { Stat } from "@wayward/game/game/entity/IStats";
|
|
17
17
|
import type { CreatureType, TileGroup } from "@wayward/game/game/entity/creature/ICreature";
|
|
18
18
|
import type { NPCType } from "@wayward/game/game/entity/npc/INPCs";
|
|
@@ -180,7 +180,12 @@ export interface IGameOptions {
|
|
|
180
180
|
/**
|
|
181
181
|
* Controls curse events
|
|
182
182
|
*/
|
|
183
|
-
|
|
183
|
+
curse: {
|
|
184
|
+
stat: boolean;
|
|
185
|
+
events: boolean;
|
|
186
|
+
cooldownRangeOverride?: IRange;
|
|
187
|
+
eventsRangeOverride?: IRange;
|
|
188
|
+
};
|
|
184
189
|
}
|
|
185
190
|
export declare enum UnlockedRecipesStrategy {
|
|
186
191
|
StartWithNone = 0,
|
|
@@ -25,7 +25,8 @@ export declare enum Challenge {
|
|
|
25
25
|
BiomeIceCap = 11,
|
|
26
26
|
BiomeVolcanic = 12,
|
|
27
27
|
Sunset = 13,
|
|
28
|
-
SlitherSucker = 14
|
|
28
|
+
SlitherSucker = 14,
|
|
29
|
+
Cursed = 15
|
|
29
30
|
}
|
|
30
31
|
export declare function isPermanentEffect(statusType: StatusType, options: IGameOptionsPlayer): boolean;
|
|
31
32
|
export declare function isEternal(time: number): (options?: IGameOptions) => boolean;
|
|
@@ -53,6 +53,7 @@ import Multitasker from "@wayward/game/game/options/modifiers/milestone/modifier
|
|
|
53
53
|
import Murderer from "@wayward/game/game/options/modifiers/milestone/modifiers/Murderer";
|
|
54
54
|
import Navigator from "@wayward/game/game/options/modifiers/milestone/modifiers/Navigator";
|
|
55
55
|
import Notekeeper from "@wayward/game/game/options/modifiers/milestone/modifiers/Notekeeper";
|
|
56
|
+
import Oblivious from "@wayward/game/game/options/modifiers/milestone/modifiers/Oblivious";
|
|
56
57
|
import Operator from "@wayward/game/game/options/modifiers/milestone/modifiers/Operator";
|
|
57
58
|
import Pacifier from "@wayward/game/game/options/modifiers/milestone/modifiers/Pacifier";
|
|
58
59
|
import Prepared from "@wayward/game/game/options/modifiers/milestone/modifiers/Prepared";
|
|
@@ -141,6 +142,7 @@ export declare const milestoneModifiers: {
|
|
|
141
142
|
65: typeof Turbulent;
|
|
142
143
|
50: typeof Versatile;
|
|
143
144
|
29: typeof Weathered;
|
|
145
|
+
72: typeof Oblivious;
|
|
144
146
|
};
|
|
145
147
|
declare class MilestoneModifiersManager extends GameplayModifiersManager<MilestoneModifier, Milestone, [Human?]> {
|
|
146
148
|
constructor();
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { IGameOptionsPartial } from "@wayward/game/game/options/IGameOptions";
|
|
12
|
+
import { MilestoneModifierGroup } from "@wayward/game/game/options/modifiers/milestone/IMilestoneModifier";
|
|
13
|
+
import MilestoneModifier from "@wayward/game/game/options/modifiers/milestone/MilestoneModifier";
|
|
14
|
+
export default class Oblivious extends MilestoneModifier {
|
|
15
|
+
getOptions(): IGameOptionsPartial;
|
|
16
|
+
getGroup(): MilestoneModifierGroup;
|
|
17
|
+
}
|
|
@@ -12,7 +12,8 @@ import { Quality } from "@wayward/game/game/IObject";
|
|
|
12
12
|
import Deity from "@wayward/game/game/deity/Deity";
|
|
13
13
|
import type Doodad from "@wayward/game/game/doodad/Doodad";
|
|
14
14
|
import { DamageType } from "@wayward/game/game/entity/IEntity";
|
|
15
|
-
import { EquipType
|
|
15
|
+
import { EquipType } from "@wayward/game/game/entity/IHuman";
|
|
16
|
+
import { SkillType } from "@wayward/game/game/entity/skill/ISkills";
|
|
16
17
|
import { Stat } from "@wayward/game/game/entity/IStats";
|
|
17
18
|
import type { ActionId } from "@wayward/game/game/entity/action/usable/IUsableAction";
|
|
18
19
|
import type Creature from "@wayward/game/game/entity/creature/Creature";
|
|
@@ -8,10 +8,12 @@
|
|
|
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 Entity from "@wayward/game/game/entity/Entity";
|
|
12
|
+
import type { QualityReal } from "@wayward/game/game/IObject";
|
|
11
13
|
import type Island from "@wayward/game/game/island/Island";
|
|
12
14
|
import type TimeManager from "@wayward/game/game/time/TimeManager";
|
|
13
15
|
import type WorldZ from "@wayward/utilities/game/WorldZ";
|
|
14
|
-
import
|
|
16
|
+
import { IRange } from "@wayward/utilities/math/Range";
|
|
15
17
|
export declare enum Temperature {
|
|
16
18
|
Coldest = -100,
|
|
17
19
|
Cold = -50,
|
|
@@ -75,7 +77,7 @@ export interface IHasInsulation {
|
|
|
75
77
|
* separate temperature "biome".
|
|
76
78
|
* - Values in between change how much of the temperatures are produced/used on either side.
|
|
77
79
|
*/
|
|
78
|
-
getInsulation?(type: TempType):
|
|
80
|
+
getInsulation?(type: TempType): IInsulationResult | undefined;
|
|
79
81
|
getBaseTemperature?(): number | undefined;
|
|
80
82
|
}
|
|
81
83
|
export interface IInsulationDescription {
|
|
@@ -96,7 +98,19 @@ export interface IInsulationDescription {
|
|
|
96
98
|
*/
|
|
97
99
|
[TempType.Heat]?: number;
|
|
98
100
|
}
|
|
99
|
-
export declare
|
|
101
|
+
export declare const TEMPERATURE_INSULATION_QUALITY_MULTIPLIERS: Record<QualityReal, number>;
|
|
102
|
+
export declare const TEMPERATURE_INSULATION_MAGIC_MULTIPLIER_RANGE: IRange<number>;
|
|
103
|
+
export interface IInsulationResult {
|
|
104
|
+
base: number;
|
|
105
|
+
qualityBonus: number;
|
|
106
|
+
magicBonus: number;
|
|
107
|
+
total: number;
|
|
108
|
+
}
|
|
109
|
+
export declare namespace Insulation {
|
|
110
|
+
function get(entity: Entity | undefined, insulation: IInsulationDescription | undefined, type: TempType): IInsulationResult | undefined;
|
|
111
|
+
function equals(a: IInsulationResult | undefined, b: IInsulationResult | undefined): boolean;
|
|
112
|
+
function getTypesOrderedByRelevance(island: Island): TempType[];
|
|
113
|
+
}
|
|
100
114
|
export interface ITemperatureDescription {
|
|
101
115
|
/**
|
|
102
116
|
* The produced temperature of this object — objects whose temperature affects surrounding objects.
|
|
@@ -14,7 +14,7 @@ import type { Quality } from "@wayward/game/game/IObject";
|
|
|
14
14
|
import type { BiomeType } from "@wayward/game/game/biome/IBiome";
|
|
15
15
|
import type { GrowingStage } from "@wayward/game/game/doodad/IDoodad";
|
|
16
16
|
import { DoodadType } from "@wayward/game/game/doodad/IDoodad";
|
|
17
|
-
import type { SkillType } from "
|
|
17
|
+
import type { SkillType } from "../entity/skill/ISkills";
|
|
18
18
|
import type { WaterType } from "@wayward/game/game/island/IIsland";
|
|
19
19
|
import type { IContainer, IMaybeContainer, ItemType } from "@wayward/game/game/item/IItem";
|
|
20
20
|
import type Item from "@wayward/game/game/item/Item";
|
|
@@ -16,7 +16,7 @@ import EntityMovable from "@wayward/game/game/entity/EntityMovable";
|
|
|
16
16
|
import type Human from "@wayward/game/game/entity/Human";
|
|
17
17
|
import type { IEntityConstructorOptions } from "@wayward/game/game/entity/IEntity";
|
|
18
18
|
import { EntityType } from "@wayward/game/game/entity/IEntity";
|
|
19
|
-
import { SkillType } from "@wayward/game/game/entity/
|
|
19
|
+
import { SkillType } from "@wayward/game/game/entity/skill/ISkills";
|
|
20
20
|
import type Creature from "@wayward/game/game/entity/creature/Creature";
|
|
21
21
|
import type Corpse from "@wayward/game/game/entity/creature/corpse/Corpse";
|
|
22
22
|
import type NPC from "@wayward/game/game/entity/npc/NPC";
|
|
@@ -22,7 +22,6 @@ declare const _default: {
|
|
|
22
22
|
* @returns The number of decay reduction of the terrain given the temperature of the point.
|
|
23
23
|
*/
|
|
24
24
|
getMeltRate(island: Island, terrainType: TerrainType, tile: Tile): number;
|
|
25
|
-
canMelt(island: Island, terrainType: TerrainType, tile: Tile): boolean;
|
|
26
25
|
canCreate(island: Island, type: TileEventType, tile: Tile, tileType: TerrainType): boolean;
|
|
27
26
|
update(tileEvent: TileEvent, ticks: number): void;
|
|
28
27
|
};
|
|
@@ -17,7 +17,8 @@ import { DoodadType, DoodadTypeExtra, DoodadTypeGroup, GrowingStage } from "@way
|
|
|
17
17
|
import { CombatDangerLevel } from "@wayward/game/game/entity/ICombatStrength";
|
|
18
18
|
import { CombatStrength } from "@wayward/game/game/entity/ICombatStrength";
|
|
19
19
|
import { DamageType } from "@wayward/game/game/entity/IEntity";
|
|
20
|
-
import { EquipType
|
|
20
|
+
import { EquipType } from "@wayward/game/game/entity/IHuman";
|
|
21
|
+
import { SkillType } from "@wayward/game/game/entity/skill/ISkills";
|
|
21
22
|
import { Stat } from "@wayward/game/game/entity/IStats";
|
|
22
23
|
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
23
24
|
import { MapQuality } from "@wayward/game/game/entity/action/actions/map/MapQuality";
|
|
@@ -14,7 +14,8 @@ import { Quality } from "@wayward/game/game/IObject";
|
|
|
14
14
|
import Deity from "@wayward/game/game/deity/Deity";
|
|
15
15
|
import type { GrowingStage } from "@wayward/game/game/doodad/IDoodad";
|
|
16
16
|
import { DamageType } from "@wayward/game/game/entity/IEntity";
|
|
17
|
-
import type { EquipType
|
|
17
|
+
import type { EquipType } from "@wayward/game/game/entity/IHuman";
|
|
18
|
+
import type { SkillType } from "../game/entity/skill/ISkills";
|
|
18
19
|
import { Stat } from "@wayward/game/game/entity/IStats";
|
|
19
20
|
import type { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
20
21
|
import type { UsableActionType } from "@wayward/game/game/entity/action/usable/UsableActionType";
|
|
@@ -326,12 +326,12 @@ declare enum Message {
|
|
|
326
326
|
CreatureZoneTierIncreased = 314,
|
|
327
327
|
CrushedItemsUnderfoot = 315,
|
|
328
328
|
CuredYourPoison = 316,
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
329
|
+
CurseActionSailToIslandCannotUseCursebearer = 317,
|
|
330
|
+
CurseEventNewPlantDeath = 318,
|
|
331
|
+
CurseEventNewPlantsGrowth = 319,
|
|
332
|
+
CurseUpdateSunrise = 320,
|
|
333
|
+
CurseUpdateSunset = 321,
|
|
334
|
+
CurseUpdateWarning = 322,
|
|
335
335
|
Cut = 323,
|
|
336
336
|
CutHasHealed = 324,
|
|
337
337
|
CutLostHealth = 325,
|