@wayward/types 2.15.0-beta.dev.20251020.1 → 2.15.0-beta.dev.20251022.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/Game.d.ts +1 -0
- package/definitions/game/game/curse/Curse.d.ts +8 -2
- package/definitions/game/game/doodad/Doodad.d.ts +8 -1
- package/definitions/game/game/entity/Human.d.ts +1 -1
- package/definitions/game/game/entity/IHuman.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/SetTitle.d.ts +1 -1
- package/definitions/game/game/entity/data/DataComponent.d.ts +2 -1
- package/definitions/game/game/island/Island.d.ts +1 -0
- package/definitions/game/game/milestones/IMilestone.d.ts +8 -3
- package/definitions/game/game/milestones/MilestoneDefinition.d.ts +7 -3
- package/definitions/game/game/options/IGameOptions.d.ts +6 -1
- package/definitions/game/game/options/modifiers/challenge/IChallenge.d.ts +2 -1
- package/definitions/game/game/options/modifiers/custom/CustomModifierDefinitions.d.ts +117 -0
- package/definitions/game/game/options/modifiers/custom/ICustomModifier.d.ts +78 -0
- package/definitions/game/game/options/modifiers/custom/modifiers/CustomModifierCreatureSpawnLimit.d.ts +13 -0
- package/definitions/game/game/options/modifiers/custom/modifiers/CustomModifierCreatureSpawnRate.d.ts +13 -0
- package/definitions/game/game/options/modifiers/custom/modifiers/CustomModifierCreatures.d.ts +15 -0
- package/definitions/game/game/options/modifiers/custom/modifiers/CustomModifierCreaturesOther.d.ts +13 -0
- package/definitions/game/game/options/modifiers/custom/modifiers/CustomModifierItemDecay.d.ts +13 -0
- package/definitions/game/game/options/modifiers/custom/modifiers/CustomModifierItemDurability.d.ts +13 -0
- package/definitions/game/game/options/modifiers/custom/modifiers/CustomModifierSkills.d.ts +15 -0
- package/definitions/game/game/options/modifiers/custom/modifiers/CustomModifierSkillsGainMultiplierGlobal.d.ts +13 -0
- package/definitions/game/game/options/modifiers/custom/modifiers/CustomModifierSkillsInitialValueGlobal.d.ts +13 -0
- package/definitions/game/game/options/modifiers/custom/modifiers/CustomModifierSkillsStartCount.d.ts +13 -0
- package/definitions/game/game/options/modifiers/custom/modifiers/CustomModifierStartingBiome.d.ts +14 -0
- package/definitions/game/game/options/modifiers/custom/modifiers/CustomModifierStatGeneric.d.ts +15 -0
- package/definitions/game/game/options/modifiers/custom/modifiers/CustomModifierStatLuck.d.ts +13 -0
- package/definitions/game/game/options/modifiers/custom/modifiers/CustomModifierStatStrength.d.ts +13 -0
- package/definitions/game/game/options/modifiers/custom/modifiers/CustomModifierStatusGeneric.d.ts +15 -0
- package/definitions/game/game/options/modifiers/custom/modifiers/CustomModifierTimeDayLength.d.ts +13 -0
- package/definitions/game/game/options/modifiers/custom/modifiers/CustomModifierTimeDayPercent.d.ts +13 -0
- package/definitions/game/game/options/modifiers/custom/modifiers/CustomModifierTimeInitial.d.ts +13 -0
- 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/tile/events/MeltingTile.d.ts +0 -1
- package/definitions/game/game/time/TimeManager.d.ts +2 -0
- package/definitions/game/language/Dictionary.d.ts +3 -1
- package/definitions/game/language/DictionaryMap.d.ts +6 -0
- package/definitions/game/language/Translation.d.ts +1 -0
- package/definitions/game/language/dictionary/Message.d.ts +562 -564
- package/definitions/game/language/dictionary/Misc.d.ts +4 -0
- package/definitions/game/language/dictionary/UiTranslation.d.ts +824 -862
- package/definitions/game/language/english/game/CustomModifiers.d.ts +13 -0
- package/definitions/game/language/english/game/GameOptionsIcons.d.ts +13 -0
- package/definitions/game/save/upgrade/versions/beta2.15.0/beta2.15.0-dev20251020.d.ts +12 -0
- package/definitions/game/ui/Ui.d.ts +3 -0
- package/definitions/game/ui/component/GameIcons.d.ts +4 -3
- package/definitions/game/ui/input/Bindable.d.ts +24 -23
- package/definitions/game/ui/screen/screens/game/InspectionsTooltipHandler.d.ts +2 -0
- package/definitions/game/ui/screen/screens/game/component/GameDetails.d.ts +4 -4
- package/definitions/game/ui/screen/screens/menu/menus/newgame/CustomGameOptionsMenu.d.ts +4 -3
- package/definitions/game/ui/screen/screens/menu/menus/newgame/TabGameMode.d.ts +1 -1
- package/definitions/game/ui/screen/screens/menu/menus/newgame/customgameoptions/CustomGameOptionsTab.d.ts +12 -2
- package/definitions/game/ui/screen/screens/menu/menus/newgame/customgameoptions/TabCreatures.d.ts +2 -3
- package/definitions/game/ui/screen/screens/menu/menus/newgame/customgameoptions/TabGeneral.d.ts +2 -2
- package/definitions/game/ui/screen/screens/menu/menus/newgame/customgameoptions/TabItems.d.ts +2 -2
- package/definitions/game/ui/screen/screens/menu/menus/newgame/customgameoptions/TabSkills.d.ts +2 -3
- package/definitions/game/ui/screen/screens/menu/menus/newgame/customgameoptions/TabStats.d.ts +2 -2
- package/definitions/game/ui/screen/screens/menu/menus/newgame/customgameoptions/TabStatuses.d.ts +2 -2
- package/definitions/game/ui/screen/screens/menu/menus/newgame/customgameoptions/TabTime.d.ts +2 -5
- package/definitions/game/ui/screen/screens/menu/menus/newgame/customgameoptions/TabTravel.d.ts +2 -2
- package/definitions/game/ui/screen/screens/menu/menus/pause/GameOptionsIcons.d.ts +2 -11
- package/definitions/game/ui/tooltip/TooltipManager.d.ts +1 -0
- package/definitions/game/utilities/object/Merge.d.ts +5 -0
- package/definitions/game/utilities/random/RandomValueGenerator.d.ts +4 -1
- package/definitions/game/utilities/random/generators/specific/RandomRange.d.ts +4 -1
- package/definitions/utilities/random/Random.d.ts +1 -0
- package/package.json +1 -1
|
@@ -177,6 +177,7 @@ export declare class Game extends EventEmitter.Host<IGameEvents> {
|
|
|
177
177
|
selectBiome(position: IVector2 | undefined, random: Random): BiomeTypes;
|
|
178
178
|
getGameMode(): GameMode;
|
|
179
179
|
getGameOptionsBeforeModifiers(): IGameOptions;
|
|
180
|
+
getCustomGameOptionsPartial(): IGameOptionsPartial;
|
|
180
181
|
/** A game options modifier that always returns an empty array by default, to be injected into */
|
|
181
182
|
getAdditionalGameOptionsSources(): IGameOptionsPartial[];
|
|
182
183
|
getGameOptions(): IGameOptions;
|
|
@@ -26,7 +26,7 @@ export declare const CURSE_COMPONENT_CRAFTING_CAP = 3000;
|
|
|
26
26
|
export declare const CURSE_COMPONENT_CRAFTING_MIN_EFFECT = 0.3;
|
|
27
27
|
export declare const CURSE_COMPONENT_KILLING_CAP = 500;
|
|
28
28
|
export declare const CURSE_COMPONENT_SKILL_CAP = 100;
|
|
29
|
-
export declare const CURSE_COMPONENT_SLEEPLESSNESS_CAP_DAYS =
|
|
29
|
+
export declare const CURSE_COMPONENT_SLEEPLESSNESS_CAP_DAYS = 3;
|
|
30
30
|
interface CurseComponentDefinition {
|
|
31
31
|
readonly maxCurseContribution: number | null;
|
|
32
32
|
compute(human: Human): number;
|
|
@@ -37,6 +37,11 @@ export declare const CumulativeKilling: DataComponent<number, number>;
|
|
|
37
37
|
export declare const Sleeplessness: DataComponent<number, number>;
|
|
38
38
|
export declare const HighestAttack: DataComponent.Live<number>;
|
|
39
39
|
export declare const HighestDefense: DataComponent.Live<number>;
|
|
40
|
+
export interface Obliviousness {
|
|
41
|
+
days: number;
|
|
42
|
+
thisNightInvalidated: boolean;
|
|
43
|
+
}
|
|
44
|
+
export declare const Obliviousness: DataComponent<Obliviousness, Obliviousness>;
|
|
40
45
|
/**
|
|
41
46
|
* Gets the highest value of either current or max skill multiplied by the "evilness" of each skill (from rune chance)
|
|
42
47
|
* (Basically, high values in any of the evil-er skills make curse go brrrr)
|
|
@@ -101,8 +106,9 @@ declare namespace Curse {
|
|
|
101
106
|
function canWarnAboutIncomingEvents(island: Island): boolean;
|
|
102
107
|
function getCooldownMultiplier(island: Island, humans?: Human<unknown, number, import("../reference/IReferenceManager").ReferenceType.NPC | import("../reference/IReferenceManager").ReferenceType.Player, unknown>[]): number;
|
|
103
108
|
function clearCooldown(island: Island): void;
|
|
109
|
+
function resetCooldown(island: Island): void;
|
|
104
110
|
function tickCurse(island: Island, humans: Human[]): void;
|
|
105
|
-
function reload(island: Island): void;
|
|
111
|
+
function reload(island: Island, isNew?: boolean): void;
|
|
106
112
|
function spawnCurseEvents(island: Island, humans: Human[]): void;
|
|
107
113
|
function attemptCurseEventSpawn(category: CurseCategory, human: Human, curse: number, humans: Human[], events: CurseEventInstance[]): CurseEventInstance | undefined;
|
|
108
114
|
function attemptSpecificCurseEventSpawn(human: Human, type: CurseEventType, humans: Human[], curse?: number): CurseEventInstance | undefined;
|
|
@@ -309,7 +309,7 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
|
|
|
309
309
|
canInspect(human: Human): boolean;
|
|
310
310
|
private processSpecials;
|
|
311
311
|
/**
|
|
312
|
-
* Check for items on top of lit/fire doodads,
|
|
312
|
+
* Check for items on top of lit/fire doodads (that are OpenFireSource), and automatically "stoke" the items
|
|
313
313
|
*/
|
|
314
314
|
private processFire;
|
|
315
315
|
/**
|
|
@@ -400,6 +400,13 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
|
|
|
400
400
|
*/
|
|
401
401
|
willStillWorkInTemperature(): boolean;
|
|
402
402
|
forceDecayTick(): void;
|
|
403
|
+
/**
|
|
404
|
+
* Stokes fire from the StokeFire action and other events like directly dropping items into open fire sources.
|
|
405
|
+
* @param stokeValue The amount to stoke the fire by.
|
|
406
|
+
* @param human The human that is stoking the fire.
|
|
407
|
+
* @returns True if fire overflowed, false if not.
|
|
408
|
+
*/
|
|
409
|
+
stokeFire(stokeValue: number, human?: Human): boolean;
|
|
403
410
|
/**
|
|
404
411
|
* Decay over time
|
|
405
412
|
*/
|
|
@@ -17,7 +17,7 @@ import type Entity from "@wayward/game/game/entity/Entity";
|
|
|
17
17
|
import EntityWithStats from "@wayward/game/game/entity/EntityWithStats";
|
|
18
18
|
import type { IAttack, ICausesDamage, IEntityConstructorOptions, IMovingData, MoveFlag } from "@wayward/game/game/entity/IEntity";
|
|
19
19
|
import { AttackType, DamageType, IStatChangeInfo, StatusChangeReason } from "@wayward/game/game/entity/IEntity";
|
|
20
|
-
import type { HumanTag, ICheckUnderOptions, ICrafted, ICustomizations, IHumanEvents, ILoadOnIslandOptions, IRestData, IVoyageInfo, WalkToChangeReason } from "@wayward/game/game/entity/IHuman";
|
|
20
|
+
import type { HumanTag, ICheckUnderOptions as ICheckUnderOptions, ICrafted, ICustomizations, IHumanEvents, ILoadOnIslandOptions, IRestData, IVoyageInfo, WalkToChangeReason } from "@wayward/game/game/entity/IHuman";
|
|
21
21
|
import { EquipType, RestCancelReason } from "@wayward/game/game/entity/IHuman";
|
|
22
22
|
import { SkillType } from "@wayward/game/game/entity/skill/ISkills";
|
|
23
23
|
import type { IStat } from "@wayward/game/game/entity/IStats";
|
|
@@ -425,7 +425,8 @@ export interface ICrafted {
|
|
|
425
425
|
newUnlock: boolean;
|
|
426
426
|
}
|
|
427
427
|
export interface ICheckUnderOptions {
|
|
428
|
-
|
|
428
|
+
skipDoodadsAndTileEvents?: boolean;
|
|
429
|
+
doItemCrushing?: boolean;
|
|
429
430
|
burned?: boolean;
|
|
430
431
|
}
|
|
431
432
|
export declare const craftingChances: Descriptions<RecipeLevel, number>;
|
|
@@ -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, "Milestone" | "Skill">], [arg1: ActionArgument.Undefined, import("../argument/ActionArgumentEnum").default<Milestone, "Navigator" | "Abnormalizer" | "Merchant" | "Prepared" | "Chef" | "Exterminator" | "Crafter" | "Gardener" | "Gatherer" | "Hunter" | "Locksmith" | "ReaperOfSouls" | "Survivor" | "Pitcher" | "Trapsetter" | "TreasureHunter" | "Collector" | "Explorer" | "Grandmaster" | "Doctor" | "Artificer" | "Returned" | "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" | "
|
|
19
|
+
declare const _default: Action<[[ActionArgument.Undefined, import("../argument/ActionArgumentEnum").default<TitleType, "Milestone" | "Skill">], [arg1: ActionArgument.Undefined, import("../argument/ActionArgumentEnum").default<Milestone, "Navigator" | "Abnormalizer" | "Merchant" | "Cursed" | "Prepared" | "Chef" | "Exterminator" | "Crafter" | "Gardener" | "Gatherer" | "Hunter" | "Locksmith" | "ReaperOfSouls" | "Survivor" | "Pitcher" | "Trapsetter" | "TreasureHunter" | "Collector" | "Explorer" | "Grandmaster" | "Doctor" | "Artificer" | "Returned" | "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">, 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;
|
|
@@ -15,7 +15,8 @@ export declare enum DataComponentType {
|
|
|
15
15
|
CurseCumulativeEvilCrafting = 2,
|
|
16
16
|
CurseCumulativeKilling = 3,
|
|
17
17
|
CurseHighestAttack = 4,
|
|
18
|
-
CurseHighestDefense = 5
|
|
18
|
+
CurseHighestDefense = 5,
|
|
19
|
+
CurseMilestoneObliviousness = 6
|
|
19
20
|
}
|
|
20
21
|
interface DataComponent<T, DEFAULT_VALUE extends T | undefined = undefined> {
|
|
21
22
|
readonly type: DataComponentType;
|
|
@@ -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
|
*/
|
|
@@ -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;
|
|
@@ -0,0 +1,117 @@
|
|
|
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 { CustomModifierDefinition } from "@wayward/game/game/options/modifiers/custom/ICustomModifier";
|
|
12
|
+
import { CustomModifierType } from "@wayward/game/game/options/modifiers/custom/ICustomModifier";
|
|
13
|
+
import { GameOptionsIcon } from "@wayward/game/ui/screen/screens/menu/menus/pause/GameOptionsIcons";
|
|
14
|
+
declare const map: {
|
|
15
|
+
0: GameOptionsIcon.Respawn;
|
|
16
|
+
1: GameOptionsIcon.Crafting;
|
|
17
|
+
2: GameOptionsIcon.Crafting;
|
|
18
|
+
3: GameOptionsIcon.Curse;
|
|
19
|
+
4: GameOptionsIcon.Peaceful;
|
|
20
|
+
5: GameOptionsIcon.Creatures;
|
|
21
|
+
6: GameOptionsIcon.Creatures;
|
|
22
|
+
7: GameOptionsIcon.Creatures;
|
|
23
|
+
8: GameOptionsIcon.Creatures;
|
|
24
|
+
9: GameOptionsIcon.Creatures;
|
|
25
|
+
10: GameOptionsIcon.Travel;
|
|
26
|
+
11: GameOptionsIcon.Travel;
|
|
27
|
+
12: GameOptionsIcon.Luck;
|
|
28
|
+
13: GameOptionsIcon.Weight;
|
|
29
|
+
14: GameOptionsIcon.Health;
|
|
30
|
+
15: GameOptionsIcon.Stamina;
|
|
31
|
+
16: GameOptionsIcon.Hunger;
|
|
32
|
+
17: GameOptionsIcon.Thirst;
|
|
33
|
+
18: GameOptionsIcon.Items;
|
|
34
|
+
19: GameOptionsIcon.NoItems;
|
|
35
|
+
20: GameOptionsIcon.Items;
|
|
36
|
+
21: GameOptionsIcon.Items;
|
|
37
|
+
22: GameOptionsIcon.Skills;
|
|
38
|
+
23: GameOptionsIcon.Skills;
|
|
39
|
+
24: GameOptionsIcon.Skills;
|
|
40
|
+
25: GameOptionsIcon.Skills;
|
|
41
|
+
26: GameOptionsIcon.EternalDay;
|
|
42
|
+
27: GameOptionsIcon.EternalNight;
|
|
43
|
+
28: GameOptionsIcon.Time;
|
|
44
|
+
29: GameOptionsIcon.Time;
|
|
45
|
+
30: GameOptionsIcon.Time;
|
|
46
|
+
31: GameOptionsIcon.Time;
|
|
47
|
+
32: GameOptionsIcon.Bleeding;
|
|
48
|
+
33: GameOptionsIcon.Poisoned;
|
|
49
|
+
34: GameOptionsIcon.Burned;
|
|
50
|
+
35: null;
|
|
51
|
+
36: null;
|
|
52
|
+
37: null;
|
|
53
|
+
38: null;
|
|
54
|
+
39: null;
|
|
55
|
+
40: null;
|
|
56
|
+
41: null;
|
|
57
|
+
42: null;
|
|
58
|
+
43: null;
|
|
59
|
+
44: null;
|
|
60
|
+
45: null;
|
|
61
|
+
};
|
|
62
|
+
export declare const customModifierToGameOptionsIconMap: Record<CustomModifierType, GameOptionsIcon | null>;
|
|
63
|
+
export type CustomModifierTypeReal = keyof {
|
|
64
|
+
[TYPE in CustomModifierType as typeof map[TYPE] extends null ? never : TYPE]: true;
|
|
65
|
+
};
|
|
66
|
+
export declare const customModifierDescriptions: {
|
|
67
|
+
0: CustomModifierDefinition<[]>;
|
|
68
|
+
1: CustomModifierDefinition<[]>;
|
|
69
|
+
2: CustomModifierDefinition<[]>;
|
|
70
|
+
3: CustomModifierDefinition<[]>;
|
|
71
|
+
4: CustomModifierDefinition<[]>;
|
|
72
|
+
5: CustomModifierDefinition<[]>;
|
|
73
|
+
8: CustomModifierDefinition<[creature: Map<import("../../../entity/creature/ICreature").CreatureType, import("@wayward/game/game/options/IGameOptions").IGameOptionsCreature>]>;
|
|
74
|
+
9: CustomModifierDefinition<[aberrants: boolean]>;
|
|
75
|
+
6: CustomModifierDefinition<[spawnLimit: number]>;
|
|
76
|
+
7: CustomModifierDefinition<[rateMultiplier: number]>;
|
|
77
|
+
10: CustomModifierDefinition<[biome: import("../../../biome/IBiome").BiomeType]>;
|
|
78
|
+
11: CustomModifierDefinition<[]>;
|
|
79
|
+
12: CustomModifierDefinition<[luckMultiplier: number]>;
|
|
80
|
+
13: CustomModifierDefinition<[bonus: number]>;
|
|
81
|
+
14: CustomModifierDefinition<[options: Partial<import("@wayward/game/game/options/IGameOptions").IGameOptionsStat>]>;
|
|
82
|
+
15: CustomModifierDefinition<[options: Partial<import("@wayward/game/game/options/IGameOptions").IGameOptionsStat>]>;
|
|
83
|
+
16: CustomModifierDefinition<[options: Partial<import("@wayward/game/game/options/IGameOptions").IGameOptionsStat>]>;
|
|
84
|
+
17: CustomModifierDefinition<[options: Partial<import("@wayward/game/game/options/IGameOptions").IGameOptionsStat>]>;
|
|
85
|
+
18: CustomModifierDefinition<[]>;
|
|
86
|
+
19: CustomModifierDefinition<[]>;
|
|
87
|
+
20: CustomModifierDefinition<[multiplier: number]>;
|
|
88
|
+
21: CustomModifierDefinition<[multiplier: number]>;
|
|
89
|
+
22: CustomModifierDefinition<[count: number]>;
|
|
90
|
+
23: CustomModifierDefinition<[initial: number]>;
|
|
91
|
+
24: CustomModifierDefinition<[multiplier: number]>;
|
|
92
|
+
25: CustomModifierDefinition<[skill: Map<import("../../../entity/skill/ISkills").SkillType, import("@wayward/game/game/options/IGameOptions").IGameOptionsSkill>]>;
|
|
93
|
+
26: CustomModifierDefinition<[]>;
|
|
94
|
+
27: CustomModifierDefinition<[]>;
|
|
95
|
+
28: CustomModifierDefinition<[]>;
|
|
96
|
+
29: CustomModifierDefinition<[initial: number]>;
|
|
97
|
+
30: CustomModifierDefinition<[length: number]>;
|
|
98
|
+
31: CustomModifierDefinition<[percent: number]>;
|
|
99
|
+
32: CustomModifierDefinition<[options: Partial<import("@wayward/game/game/options/IGameOptions").IGameOptionsStatus>]>;
|
|
100
|
+
33: CustomModifierDefinition<[options: Partial<import("@wayward/game/game/options/IGameOptions").IGameOptionsStatus>]>;
|
|
101
|
+
34: CustomModifierDefinition<[options: Partial<import("@wayward/game/game/options/IGameOptions").IGameOptionsStatus>]>;
|
|
102
|
+
};
|
|
103
|
+
export type CustomModifierArgs = {
|
|
104
|
+
[TYPE in CustomModifierTypeReal]: ((typeof customModifierDescriptions)[TYPE] extends CustomModifierDefinition<infer ARGS> ? ARGS : never);
|
|
105
|
+
};
|
|
106
|
+
export type CustomModifierTypeRealSimple = keyof {
|
|
107
|
+
[TYPE in CustomModifierTypeReal as CustomModifierArgs[TYPE] extends [] ? TYPE : never]: true;
|
|
108
|
+
};
|
|
109
|
+
export interface CustomModifierInstance<TYPE extends CustomModifierTypeReal> {
|
|
110
|
+
type: TYPE;
|
|
111
|
+
args: CustomModifierArgs[TYPE];
|
|
112
|
+
}
|
|
113
|
+
export declare namespace CustomModifierInstance {
|
|
114
|
+
function args<TYPE extends CustomModifierTypeReal>(type: TYPE, instances: Array<CustomModifierInstance<CustomModifierTypeReal>>): CustomModifierArgs[TYPE] | [];
|
|
115
|
+
function args<TYPE extends CustomModifierTypeReal>(instance: CustomModifierInstance<TYPE>): CustomModifierArgs[TYPE];
|
|
116
|
+
}
|
|
117
|
+
export {};
|
|
@@ -0,0 +1,78 @@
|
|
|
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 type { TranslationArg } from "@wayward/game/language/ITranslation";
|
|
13
|
+
import type Translation from "@wayward/game/language/Translation";
|
|
14
|
+
import type { RandomReference } from "@wayward/game/utilities/random/RandomReference";
|
|
15
|
+
import type { RandomInstance } from "@wayward/utilities/random/IRandom";
|
|
16
|
+
export declare enum CustomModifierType {
|
|
17
|
+
Respawn = 0,
|
|
18
|
+
RecipesNone = 1,
|
|
19
|
+
RecipesAll = 2,
|
|
20
|
+
NoCurseEvents = 3,
|
|
21
|
+
Peaceful = 4,
|
|
22
|
+
FearlessCreatures = 5,
|
|
23
|
+
SpawnLimit = 6,
|
|
24
|
+
SpawnRate = 7,
|
|
25
|
+
Creatures = 8,
|
|
26
|
+
OtherCreatures = 9,
|
|
27
|
+
StartingBiome = 10,
|
|
28
|
+
NoTravelEffects = 11,
|
|
29
|
+
Luck = 12,
|
|
30
|
+
Strength = 13,
|
|
31
|
+
Health = 14,
|
|
32
|
+
Stamina = 15,
|
|
33
|
+
Hunger = 16,
|
|
34
|
+
Thirst = 17,
|
|
35
|
+
TileContainers = 18,
|
|
36
|
+
NoStartingItems = 19,
|
|
37
|
+
ItemDurability = 20,
|
|
38
|
+
ItemDecay = 21,
|
|
39
|
+
StartingSkills = 22,
|
|
40
|
+
GlobalInitialSkillsValue = 23,
|
|
41
|
+
GlobalSkillGainMultiplier = 24,
|
|
42
|
+
Skills = 25,
|
|
43
|
+
EternalDay = 26,
|
|
44
|
+
EternalNight = 27,
|
|
45
|
+
FrozenTime = 28,
|
|
46
|
+
InitialTime = 29,
|
|
47
|
+
DayLength = 30,
|
|
48
|
+
DayPercent = 31,
|
|
49
|
+
Bleeding = 32,
|
|
50
|
+
Poisoned = 33,
|
|
51
|
+
Burned = 34,
|
|
52
|
+
SpecificCreatureAlwaysSpawns = 35,
|
|
53
|
+
SpecificCreatureSpawningDisabled = 36,
|
|
54
|
+
SpecificCreatureSpawns = 37,
|
|
55
|
+
StatInitial = 38,
|
|
56
|
+
StatMax = 39,
|
|
57
|
+
StatMultiplier = 40,
|
|
58
|
+
SpecificSkillInitial = 41,
|
|
59
|
+
SpecificSkillGainMultiplier = 42,
|
|
60
|
+
StatusInitial = 43,
|
|
61
|
+
StatusUntreatable = 44,
|
|
62
|
+
StatusPassChanceMultiplier = 45
|
|
63
|
+
}
|
|
64
|
+
export interface CustomModifierTranslationGroup {
|
|
65
|
+
label: Translation;
|
|
66
|
+
group: Translation[];
|
|
67
|
+
}
|
|
68
|
+
export type CustomModifierTranslation = Translation | CustomModifierTranslationGroup;
|
|
69
|
+
export interface CustomModifierDefinition<ARGS extends any[] = []> {
|
|
70
|
+
parse?(options: IGameOptionsPartial): ARGS["length"] extends 1 ? ArrayOr<ARGS[0]> | undefined : ARGS | undefined;
|
|
71
|
+
options: SupplierOr<IGameOptionsPartial, [...ARGS, random: RandomInstance | RandomReference]>;
|
|
72
|
+
/** Incompatible with `translationArgs` */
|
|
73
|
+
translate?(options: IGameOptionsPartial): ArrayOr<CustomModifierTranslation> | undefined;
|
|
74
|
+
/** Incompatible with `translate` */
|
|
75
|
+
translationArgs?(options: IGameOptionsPartial): TranslationArg[] | undefined;
|
|
76
|
+
}
|
|
77
|
+
export declare function CustomModifierDefinition<ARGS extends any[] = []>(definition: CustomModifierDefinition<ARGS>): CustomModifierDefinition<ARGS>;
|
|
78
|
+
export declare function SimpleCustomModifierDefinition(options: IGameOptionsPartial): CustomModifierDefinition;
|
|
@@ -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 { CustomModifierDefinition } from "@wayward/game/game/options/modifiers/custom/ICustomModifier";
|
|
12
|
+
declare const _default: CustomModifierDefinition<[spawnLimit: number]>;
|
|
13
|
+
export default _default;
|
|
@@ -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 { CustomModifierDefinition } from "@wayward/game/game/options/modifiers/custom/ICustomModifier";
|
|
12
|
+
declare const _default: CustomModifierDefinition<[rateMultiplier: number]>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
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 { CreatureType } from "@wayward/game/game/entity/creature/ICreature";
|
|
12
|
+
import type { IGameOptionsCreature } from "@wayward/game/game/options/IGameOptions";
|
|
13
|
+
import { CustomModifierDefinition } from "@wayward/game/game/options/modifiers/custom/ICustomModifier";
|
|
14
|
+
declare const _default: CustomModifierDefinition<[creature: Map<CreatureType, IGameOptionsCreature>]>;
|
|
15
|
+
export default _default;
|
package/definitions/game/game/options/modifiers/custom/modifiers/CustomModifierCreaturesOther.d.ts
ADDED
|
@@ -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 { CustomModifierDefinition } from "@wayward/game/game/options/modifiers/custom/ICustomModifier";
|
|
12
|
+
declare const _default: CustomModifierDefinition<[aberrants: boolean]>;
|
|
13
|
+
export default _default;
|
|
@@ -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 { CustomModifierDefinition } from "@wayward/game/game/options/modifiers/custom/ICustomModifier";
|
|
12
|
+
declare const _default: CustomModifierDefinition<[multiplier: number]>;
|
|
13
|
+
export default _default;
|
package/definitions/game/game/options/modifiers/custom/modifiers/CustomModifierItemDurability.d.ts
ADDED
|
@@ -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 { CustomModifierDefinition } from "@wayward/game/game/options/modifiers/custom/ICustomModifier";
|
|
12
|
+
declare const _default: CustomModifierDefinition<[multiplier: number]>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
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 { SkillType } from "@wayward/game/game/entity/skill/ISkills";
|
|
12
|
+
import type { IGameOptionsSkill } from "@wayward/game/game/options/IGameOptions";
|
|
13
|
+
import { CustomModifierDefinition } from "@wayward/game/game/options/modifiers/custom/ICustomModifier";
|
|
14
|
+
declare const _default: CustomModifierDefinition<[skill: Map<SkillType, IGameOptionsSkill>]>;
|
|
15
|
+
export default _default;
|
|
@@ -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 { CustomModifierDefinition } from "@wayward/game/game/options/modifiers/custom/ICustomModifier";
|
|
12
|
+
declare const _default: CustomModifierDefinition<[multiplier: number]>;
|
|
13
|
+
export default _default;
|
|
@@ -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 { CustomModifierDefinition } from "@wayward/game/game/options/modifiers/custom/ICustomModifier";
|
|
12
|
+
declare const _default: CustomModifierDefinition<[initial: number]>;
|
|
13
|
+
export default _default;
|
package/definitions/game/game/options/modifiers/custom/modifiers/CustomModifierSkillsStartCount.d.ts
ADDED
|
@@ -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 { CustomModifierDefinition } from "@wayward/game/game/options/modifiers/custom/ICustomModifier";
|
|
12
|
+
declare const _default: CustomModifierDefinition<[count: number]>;
|
|
13
|
+
export default _default;
|
package/definitions/game/game/options/modifiers/custom/modifiers/CustomModifierStartingBiome.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
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 { BiomeType } from "@wayward/game/game/biome/IBiome";
|
|
12
|
+
import { CustomModifierDefinition } from "@wayward/game/game/options/modifiers/custom/ICustomModifier";
|
|
13
|
+
declare const _default: CustomModifierDefinition<[biome: BiomeType]>;
|
|
14
|
+
export default _default;
|
package/definitions/game/game/options/modifiers/custom/modifiers/CustomModifierStatGeneric.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
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 { Stat } from "@wayward/game/game/entity/IStats";
|
|
12
|
+
import type { IGameOptionsStat } from "@wayward/game/game/options/IGameOptions";
|
|
13
|
+
import { CustomModifierDefinition } from "@wayward/game/game/options/modifiers/custom/ICustomModifier";
|
|
14
|
+
declare const _default: (stat: Stat) => CustomModifierDefinition<[options: Partial<IGameOptionsStat>]>;
|
|
15
|
+
export default _default;
|
|
@@ -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 { CustomModifierDefinition } from "@wayward/game/game/options/modifiers/custom/ICustomModifier";
|
|
12
|
+
declare const _default: CustomModifierDefinition<[luckMultiplier: number]>;
|
|
13
|
+
export default _default;
|
package/definitions/game/game/options/modifiers/custom/modifiers/CustomModifierStatStrength.d.ts
ADDED
|
@@ -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 { CustomModifierDefinition } from "@wayward/game/game/options/modifiers/custom/ICustomModifier";
|
|
12
|
+
declare const _default: CustomModifierDefinition<[bonus: number]>;
|
|
13
|
+
export default _default;
|