@wayward/types 2.15.3-beta.dev.20260321.1 → 2.15.4-beta
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/curse/Curse.d.ts +10 -0
- package/definitions/game/game/curse/CurseEvent.d.ts +6 -1
- package/definitions/game/game/curse/event/CurseEventSuffusedWithMagic.d.ts +13 -0
- package/definitions/game/game/doodad/Doodad.d.ts +20 -2
- package/definitions/game/game/doodad/DoodadManager.d.ts +6 -1
- package/definitions/game/game/doodad/DoodadUtilities.d.ts +7 -2
- package/definitions/game/game/doodad/IDoodad.d.ts +13 -3
- package/definitions/game/game/doodad/IScarecrows.d.ts +12 -0
- package/definitions/game/game/entity/Entity.d.ts +1 -0
- package/definitions/game/game/entity/Human.d.ts +8 -0
- package/definitions/game/game/entity/action/actions/SetTitle.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ToggleProtectItem.d.ts +2 -2
- package/definitions/game/game/entity/action/usable/IUsableAction.d.ts +4 -2
- package/definitions/game/game/entity/action/usable/UsableAction.d.ts +1 -0
- package/definitions/game/game/entity/action/usable/actions/UsableActionsDynamic.d.ts +3 -1
- package/definitions/game/game/entity/creature/CreatureManager.d.ts +3 -0
- package/definitions/game/game/entity/skill/SkillManager.d.ts +1 -0
- package/definitions/game/game/entity/status/handler/BadTemperatureEffect.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/Uses.d.ts +1 -0
- package/definitions/game/game/inspection/infoProviders/doodad/DoodadFireSource.d.ts +20 -0
- package/definitions/game/game/inspection/infoProviders/doodad/DoodadLightSource.d.ts +19 -0
- package/definitions/game/game/inspection/infoProviders/doodad/DoodadUses.d.ts +5 -5
- package/definitions/game/game/inspection/infoProviders/doodad/use/DoodadAttachContainerInfo.d.ts +15 -0
- package/definitions/game/game/inspection/infoProviders/doodad/use/DoodadDisplayItemsInfo.d.ts +15 -0
- package/definitions/game/game/inspection/infoProviders/doodad/use/DoodadGatherInfo.d.ts +15 -0
- package/definitions/game/game/inspection/infoProviders/doodad/use/DoodadHitchInfo.d.ts +15 -0
- package/definitions/game/game/inspection/infoProviders/doodad/use/DoodadLockpickInfo.d.ts +15 -0
- package/definitions/game/game/inspection/infoProviders/doodad/use/DoodadPourInfo.d.ts +15 -0
- package/definitions/game/game/inspection/infoProviders/doodad/use/DoodadTestDepthInfo.d.ts +15 -0
- package/definitions/game/game/inspection/infoProviders/item/ItemUses.d.ts +1 -0
- package/definitions/game/game/inspection/infoProviders/item/use/ItemBuildInfo.d.ts +2 -2
- package/definitions/game/game/inspection/infoProviders/item/use/ItemCraftingIngredientInfo.d.ts +2 -2
- package/definitions/game/game/inspection/infoProviders/item/use/ItemEquipInfo.d.ts +1 -3
- package/definitions/game/game/inspection/infoProviders/item/use/ItemSleepInfo.d.ts +26 -0
- package/definitions/game/game/inspection/infoProviders/shared/SharedLightSourceInfo.d.ts +7 -23
- package/definitions/game/game/inspection/infoProviders/shared/SharedLitAndEquipmentUseInfo.d.ts +38 -0
- package/definitions/game/game/inspection/infoProviders/shared/SharedRequirementInfo.d.ts +28 -0
- package/definitions/game/game/inspection/infoProviders/shared/SharedScareRadiusInfo.d.ts +19 -0
- package/definitions/game/game/inspection/inspections/DoodadInspection.d.ts +1 -0
- package/definitions/game/game/inspection/inspections/ItemInspection.d.ts +1 -0
- package/definitions/game/game/item/IItem.d.ts +2 -0
- package/definitions/game/game/item/Item.d.ts +39 -9
- package/definitions/game/game/item/ItemManager.d.ts +5 -0
- package/definitions/game/game/magic/Endurance.d.ts +24 -0
- package/definitions/game/game/magic/IMagicalProperty.d.ts +3 -0
- package/definitions/game/game/magic/Perpetuity.d.ts +13 -0
- package/definitions/game/game/milestones/IMilestone.d.ts +3 -1
- package/definitions/game/game/milestones/MilestoneManager.d.ts +3 -0
- package/definitions/game/game/options/IGameOptions.d.ts +10 -0
- package/definitions/game/game/options/modifiers/milestone/MilestoneModifiersManager.d.ts +4 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Defiled.d.ts +17 -0
- package/definitions/game/game/options/modifiers/milestone/modifiers/Warded.d.ts +17 -0
- package/definitions/game/game/temperature/ITemperature.d.ts +1 -0
- package/definitions/game/game/tile/TileEventManager.d.ts +1 -0
- package/definitions/game/language/Dictionary.d.ts +112 -110
- package/definitions/game/language/DictionaryMap.d.ts +224 -220
- package/definitions/game/language/Translation.d.ts +4 -1
- package/definitions/game/language/dictionary/Message.d.ts +699 -693
- package/definitions/game/language/dictionary/UiTranslation.d.ts +807 -803
- package/definitions/game/language/english/item/CursePropertyAffixes.d.ts +13 -0
- package/definitions/game/language/english/item/CurseSubPropertyAffixes.d.ts +13 -0
- package/definitions/game/mod/ModInformation.d.ts +2 -0
- package/definitions/game/mod/ModManager.d.ts +2 -0
- package/definitions/game/multiplayer/packets/server/UpdateCurseVisualStatePacket.d.ts +10 -0
- package/definitions/game/renderer/platform/webgl/WorldLayerRendererWebGl.d.ts +3 -0
- package/definitions/game/renderer/platform/webgpu/WorldLayerRendererWebGpu.d.ts +2 -0
- package/definitions/game/renderer/world/IWorldLayerRendererPlatform.d.ts +2 -0
- package/definitions/game/renderer/world/WorldLayerRenderer.d.ts +3 -0
- package/definitions/game/renderer/world/WorldRenderer.d.ts +0 -2
- package/definitions/game/save/SaveMetadata.d.ts +2 -4
- package/definitions/game/save/data/SaveData.d.ts +6 -4
- package/definitions/game/save/upgrade/versions/beta2.15.4/beta2.15.4-dev20260409.d.ts +12 -0
- package/definitions/game/save/upgrade/versions/beta2.15.4/beta2.15.4.d.ts +12 -0
- package/definitions/game/ui/Ui.d.ts +0 -1
- package/definitions/game/ui/input/Bindable.d.ts +7 -8
- package/definitions/game/ui/screen/screens/game/component/container/ContainerBucketItemList.d.ts +7 -0
- package/definitions/game/ui/screen/screens/game/static/Stats.d.ts +1 -0
- package/definitions/game/ui/screen/screens/game/static/stats/component/StatComponent.d.ts +1 -0
- package/definitions/game/ui/screen/screens/menu/component/RealTimeTickSpeedRow.d.ts +18 -0
- package/definitions/game/ui/screen/screens/menu/menus/mods/ModRow.d.ts +2 -0
- package/definitions/game/ui/screen/screens/menu/menus/newgame/TabMultiplayer.d.ts +3 -1
- package/definitions/game/ui/screen/screens/menu/menus/pause/GameSettingsMenu.d.ts +2 -2
- package/definitions/hosts/shared/globals.d.ts +2 -2
- package/definitions/test/suite/unitTests/game/ContainerBucketItemList.spec.d.ts +13 -0
- package/definitions/test/suite/unitTests/game/Curse.spec.d.ts +13 -0
- package/definitions/test/suite/unitTests/game/IslandTestUtilities.d.ts +1 -1
- package/definitions/test/suite/unitTests/game/SaveLoad.spec.d.ts +13 -0
- package/definitions/test/suite/unitTests/game/game/milestones/MilestoneManager.spec.d.ts +13 -0
- package/definitions/test/suite/unitTests/game/mod/ModInformation.spec.d.ts +13 -0
- package/definitions/test/suite/unitTests/game/mod/ModManager.spec.d.ts +13 -0
- package/definitions/test/suite/unitTests/game/ui/screen/screens/game/component/ItemComponent.spec.d.ts +13 -0
- package/definitions/test/suite/unitTests/game/ui/screen/screens/menu/menus/mods/ModRow.spec.d.ts +13 -0
- package/definitions/utilities/random/SeededGenerator.d.ts +1 -0
- package/definitions/utilities/string/TextFileFormatting.d.ts +8 -0
- package/package.json +1 -1
|
@@ -80,6 +80,7 @@ export declare const CURSE_EVENTS_DEFAULT_RADIUS = 25;
|
|
|
80
80
|
*/
|
|
81
81
|
export declare const CURSE_EVENTS_COOLDOWN_RANGE: IRangeRange;
|
|
82
82
|
export declare const CURSE_EVENTS_FIRST_NIGHT = 3;
|
|
83
|
+
export declare const CURSE_EVENTS_DEFAULT_EVENT_COOLDOWN = 3;
|
|
83
84
|
/**
|
|
84
85
|
* Each tick after a curse event ends, one entity of each type spawned by the event has this chance to despawn.
|
|
85
86
|
* If the entity is on a tile that can be seen by a player, it will not despawn.
|
|
@@ -103,11 +104,13 @@ export declare const CURSE_EVENTS_RUNE_CHANCE_MULTIPLIER_LUCKY: IRange<number>;
|
|
|
103
104
|
*/
|
|
104
105
|
export declare const CURSE_EVENTS_RUNES_KILL_TAME: Array<WeightedOption<IRange>>;
|
|
105
106
|
export declare const CURSE_EVENTS_RUNES_SURVIVED: IRange<number>;
|
|
107
|
+
export declare const CURSE_SCRIPT_REPEAT_INFINITE_ITERATIONS = 99999999;
|
|
106
108
|
export declare const CURSE_EVENTS_CREATURE_WANDER_CURSEBEARER_PRIORITY: IRange<number>;
|
|
107
109
|
export declare const CURSE_EVENTS_VISUAL_EXPLORED_FADE_TURNS = 30;
|
|
108
110
|
export declare const CURSE_EVENTS_VISUAL_EXPLORED_FAST_PHASE_TURNS = 50;
|
|
109
111
|
export declare const CURSE_EVENTS_VISUAL_EXPLORED_MAIN_ALGORITHM_RADIUS = 150;
|
|
110
112
|
export declare const CURSE_EVENTS_VISUAL_EXPLORED_ALPHA_BATCH_SIZE = 4096;
|
|
113
|
+
export declare const CURSE_EVENTS_VISUAL_EXPLORED_WEIGHTED_HIDE_DISTANCE_BAND = 60;
|
|
111
114
|
export declare const CURSE_EVENTS_VISUAL_EXPLORED_VISIBLE_BUFFER_RADIUS = 1;
|
|
112
115
|
declare namespace Curse {
|
|
113
116
|
interface Helper {
|
|
@@ -127,6 +130,9 @@ declare namespace Curse {
|
|
|
127
130
|
function resetCooldown(island: Island): void;
|
|
128
131
|
function updateRuneItemsDisplay(island: Island): void;
|
|
129
132
|
function tickCurse(island: Island, humans: Human[]): void;
|
|
133
|
+
function executeScriptAction(island: Island, event: CurseEventInstance, path: Array<string | number>): boolean;
|
|
134
|
+
function skipScriptWait(event: CurseEventInstance, path: Array<string | number>): boolean;
|
|
135
|
+
function restartScriptBranch(event: CurseEventInstance, path: Array<string | number>): boolean;
|
|
130
136
|
function reload(island: Island, isNew?: boolean): void;
|
|
131
137
|
function spawnCurseEvents(island: Island, humans: Human[], requiresEvents: boolean): void;
|
|
132
138
|
function attemptCurseEventSpawn(category: CurseCategory | null, human: Human, curse: number, humans: Human[], events: CurseEventInstance[], allowDependents?: boolean): CurseEventInstance | undefined;
|
|
@@ -146,6 +152,7 @@ declare const SYMBOL_CURSE_EVENT_ACTIVE_SUBSCRIBER_INSTANCE: unique symbol;
|
|
|
146
152
|
type CurseVisualHiddenExploredTilesByZ = Partial<Record<number, number[]>>;
|
|
147
153
|
type CurseVisualFastStepsByZ = Partial<Record<number, number>>;
|
|
148
154
|
type CurseVisualOriginsByZ = Partial<Record<number, IVector2>>;
|
|
155
|
+
type CurseEventCooldowns = Partial<Record<CurseEventType, number>>;
|
|
149
156
|
interface Curse {
|
|
150
157
|
night?: true;
|
|
151
158
|
globalCurse?: number;
|
|
@@ -157,6 +164,7 @@ interface Curse {
|
|
|
157
164
|
visualStateRestoreOriginsByZ?: CurseVisualOriginsByZ;
|
|
158
165
|
visualStateWeightedRestoreStepsByZ?: CurseVisualFastStepsByZ;
|
|
159
166
|
cooldown?: number;
|
|
167
|
+
eventCooldowns?: CurseEventCooldowns;
|
|
160
168
|
ephemeralCreatures?: number[];
|
|
161
169
|
[SYMBOL_CURSE_EVENT_GLOBAL_SUBSCRIBER_INSTANCE]?: CurseEventSubscriber;
|
|
162
170
|
[SYMBOL_CURSE_EVENT_ACTIVE_SUBSCRIBER_INSTANCE]?: CurseEventSubscriber;
|
|
@@ -179,6 +187,8 @@ interface ScriptProcessState {
|
|
|
179
187
|
path: Array<string | number>;
|
|
180
188
|
/** Iterations remaining for a Repeat block, or ticks remaining for an EndCondition. */
|
|
181
189
|
iterationsRemaining?: number;
|
|
190
|
+
/** The original iteration count when the current step or branch was initialized. */
|
|
191
|
+
iterationsTotal?: number;
|
|
182
192
|
/** The state of any child processes started by a Simultaneously or Repeat block. */
|
|
183
193
|
childProcesses?: ScriptProcessState[];
|
|
184
194
|
}
|
|
@@ -124,6 +124,11 @@ export interface CurseEvent {
|
|
|
124
124
|
* All curse events default to a weight of 1, so setting this to 0.5 would make it half as likely as any other event.
|
|
125
125
|
*/
|
|
126
126
|
weight?: number;
|
|
127
|
+
/**
|
|
128
|
+
* The number of eligible curse event nights that must pass before this event can appear again.
|
|
129
|
+
* Defaults to 1.
|
|
130
|
+
*/
|
|
131
|
+
cooldown?: number;
|
|
127
132
|
revealOn: ArrayOr<CurseEventRevealCondition>;
|
|
128
133
|
discoverOn: ArrayOr<CurseEventRevealCondition>;
|
|
129
134
|
effects?(context: CurseEventContext, effects: StatusEffectList): StatusEffectList;
|
|
@@ -146,7 +151,7 @@ export interface CurseEvent {
|
|
|
146
151
|
/**
|
|
147
152
|
* Creature types that this event can spawn by default.
|
|
148
153
|
*/
|
|
149
|
-
creatureTypes?: SupplierOr<CreatureType[] | undefined, [CurseEventContext]>;
|
|
154
|
+
creatureTypes?: SupplierOr<Array<CreatureType | [CreatureType, aberrant: boolean]> | undefined, [CurseEventContext]>;
|
|
150
155
|
/**
|
|
151
156
|
* Custom game options to apply during the curse event. Note that this only runs once, right at the start of the event.
|
|
152
157
|
*/
|
|
@@ -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 { CurseEvent } from "@wayward/game/game/curse/CurseEvent";
|
|
12
|
+
declare const _default: CurseEvent;
|
|
13
|
+
export default _default;
|
|
@@ -28,11 +28,13 @@ import type NPC from "@wayward/game/game/entity/npc/NPC";
|
|
|
28
28
|
import type Player from "@wayward/game/game/entity/player/Player";
|
|
29
29
|
import type { IWell } from "@wayward/game/game/island/IIsland";
|
|
30
30
|
import { LiquidType } from "@wayward/game/game/island/IIsland";
|
|
31
|
-
import type { ContainerSort, DisplayableItemType, IContainer, IItemVehicle, ILiquidGather, IUncastableContainer, ItemTypeExtra } from "@wayward/game/game/item/IItem";
|
|
31
|
+
import type { ContainerSort, DisplayableItemType, IContainer, IItemDescription, IItemVehicle, ILiquidGather, IUncastableContainer, ItemTypeExtra } from "@wayward/game/game/item/IItem";
|
|
32
32
|
import { ItemType } from "@wayward/game/game/item/IItem";
|
|
33
33
|
import type Item from "@wayward/game/game/item/Item";
|
|
34
34
|
import type { IHasMagic } from "@wayward/game/game/magic/IMagicalProperty";
|
|
35
|
+
import type { IMagicalPropertyManagerEvents } from "@wayward/game/game/magic/MagicalPropertyManager";
|
|
35
36
|
import MagicalPropertyManager from "@wayward/game/game/magic/MagicalPropertyManager";
|
|
37
|
+
import MagicalPropertyType from "@wayward/game/game/magic/MagicalPropertyType";
|
|
36
38
|
import type { Reference, ReferenceType } from "@wayward/game/game/reference/IReferenceManager";
|
|
37
39
|
import type { IHasInsulation, IInsulationResult, TempType } from "@wayward/game/game/temperature/ITemperature";
|
|
38
40
|
import type Tile from "@wayward/game/game/tile/Tile";
|
|
@@ -45,7 +47,10 @@ import type { IUnserializedCallback } from "@wayward/game/save/serializer/ISeria
|
|
|
45
47
|
import type { IVector3 } from "@wayward/game/utilities/math/IVector";
|
|
46
48
|
import type { IRGB } from "@wayward/utilities/Color";
|
|
47
49
|
import type { IEventEmitter } from "@wayward/utilities/event/EventEmitter";
|
|
48
|
-
|
|
50
|
+
type DoodadMagicEvents = {
|
|
51
|
+
[EVENT in keyof IMagicalPropertyManagerEvents as `magic${Capitalize<EVENT>}`]: IMagicalPropertyManagerEvents[EVENT];
|
|
52
|
+
};
|
|
53
|
+
export interface IDoodadEvents extends IEntityMovableEvents, IQualityEvents, DoodadMagicEvents {
|
|
49
54
|
/**
|
|
50
55
|
* Called when an doodad is being updated
|
|
51
56
|
* @param tile The tile the doodad is on
|
|
@@ -112,6 +117,7 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
|
|
|
112
117
|
hitchedCreature?: number;
|
|
113
118
|
magic?: MagicalPropertyManager;
|
|
114
119
|
meltDecay?: number;
|
|
120
|
+
note?: string;
|
|
115
121
|
orientation?: DoorOrientation;
|
|
116
122
|
quality?: Quality;
|
|
117
123
|
sort?: ContainerSort;
|
|
@@ -158,6 +164,8 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
|
|
|
158
164
|
isContainer(): this is IUncastableContainer;
|
|
159
165
|
toString(): string;
|
|
160
166
|
getRegistrarId(): number;
|
|
167
|
+
get litDescription(): IDoodadDescription | undefined;
|
|
168
|
+
get itemDescription(): IItemDescription | undefined;
|
|
161
169
|
/**
|
|
162
170
|
* Entity controlling this doodad (for wheel barrows)
|
|
163
171
|
*/
|
|
@@ -195,6 +203,8 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
|
|
|
195
203
|
canPickUp(human: Human): boolean;
|
|
196
204
|
getPickUpTypes(): ItemType[] | undefined;
|
|
197
205
|
getAssociatedItem(): ItemType | ItemTypeExtra;
|
|
206
|
+
static getAvailableActions(type: DoodadType, description: IDoodadDescription): ActionType[];
|
|
207
|
+
private static canCraft;
|
|
198
208
|
getActions(): ActionType[] | undefined;
|
|
199
209
|
/**
|
|
200
210
|
* Can the doodad be gathered from in its current form?
|
|
@@ -231,6 +241,10 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
|
|
|
231
241
|
*/
|
|
232
242
|
getBuilder(): Player | undefined;
|
|
233
243
|
removeMagic(): void;
|
|
244
|
+
private pipingMagic;
|
|
245
|
+
protected pipeMagicalPropertyManagerEvents(magic: MagicalPropertyManager): void;
|
|
246
|
+
protected onMagicSet(type: MagicalPropertyType, _subType?: number, value?: number, previousValue?: number, curse?: true): void;
|
|
247
|
+
protected onMagicRemove(type: MagicalPropertyType): void;
|
|
234
248
|
unhitch(): void;
|
|
235
249
|
damage(forceBreak?: boolean, skipDropAsItem?: boolean, skipSound?: boolean, skipResources?: boolean, damage?: number): void;
|
|
236
250
|
getDefaultDurability(random?: import("@wayward/utilities/random/Random").Random<import("@wayward/utilities/random/generators/LegacySeededGenerator").LegacySeededGenerator | import("@wayward/utilities/random/generators/PCGSeededGenerator").PCGSeededGenerator>): number;
|
|
@@ -408,6 +422,9 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
|
|
|
408
422
|
*/
|
|
409
423
|
stokeFire(stokeValue: number, human?: Human): boolean;
|
|
410
424
|
getDecayAtStartWithMagical(): number;
|
|
425
|
+
protected clampDecayToMax(type: MagicalPropertyType): void;
|
|
426
|
+
protected clampDurabilityToMax(type: MagicalPropertyType): void;
|
|
427
|
+
protected updateDurabilityForPersistence(type: MagicalPropertyType, value?: number, previousValue?: number, curse?: true): void;
|
|
411
428
|
canCauseDamage(): boolean;
|
|
412
429
|
/**
|
|
413
430
|
* Decay over time
|
|
@@ -424,3 +441,4 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
|
|
|
424
441
|
private postProcessDecay;
|
|
425
442
|
private randomAshSpawn;
|
|
426
443
|
}
|
|
444
|
+
export {};
|
|
@@ -62,7 +62,8 @@ export default class DoodadManager extends EntityManager<Doodad> {
|
|
|
62
62
|
loadEntity(doodad: Doodad): void;
|
|
63
63
|
isGroup(doodadType: DoodadType | DoodadTypeGroup): doodadType is DoodadTypeGroup;
|
|
64
64
|
isInGroup(doodadType: DoodadType, doodadGroup: DoodadTypeGroup | DoodadType): boolean;
|
|
65
|
-
getGroups(doodad
|
|
65
|
+
getGroups(doodad?: DoodadType): DoodadTypeGroup[];
|
|
66
|
+
getVisibleGroups(doodad: Doodad): DoodadTypeGroup[];
|
|
66
67
|
/**
|
|
67
68
|
* Checks if a number is a DoodadType or DoodadTypeExtra.
|
|
68
69
|
* @param type a number (DoodadType/DoodadTypeExtra enum).
|
|
@@ -86,8 +87,12 @@ export default class DoodadManager extends EntityManager<Doodad> {
|
|
|
86
87
|
*/
|
|
87
88
|
updateAllAsync(ticks: number, playingHumans: Human[], playerHumanTiles: Set<Tile>, onProgress: (progess: number) => Promise<void>): Promise<void>;
|
|
88
89
|
verifyAndFixItemWeights(): void;
|
|
90
|
+
/**
|
|
91
|
+
* Gets the nearest affective scarecrow in the given group, or, if no group is provided, gets the nearest scarecrow that isn't in a specialized group
|
|
92
|
+
*/
|
|
89
93
|
getScarecrowInRange(tile: Tile, group?: DoodadTypeGroup): Doodad | undefined;
|
|
90
94
|
getScarecrowInLineOfSight(creature: Creature, isClientside: boolean): Doodad | undefined;
|
|
95
|
+
getCursedScarecrowSpawnChance(tile: Tile, curseEvent?: boolean): number;
|
|
91
96
|
addScarecrow(doodad: Doodad): void;
|
|
92
97
|
removeScarecrow(doodad: Doodad): void;
|
|
93
98
|
/**
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import type Doodad from "@wayward/game/game/doodad/Doodad";
|
|
12
|
-
import type { DoodadType, IScareRadius } from "@wayward/game/game/doodad/IDoodad";
|
|
12
|
+
import type { DoodadType, IDoodadDescription, IScareRadius } from "@wayward/game/game/doodad/IDoodad";
|
|
13
13
|
import { GrowingStage } from "@wayward/game/game/doodad/IDoodad";
|
|
14
14
|
import type Human from "@wayward/game/game/entity/Human";
|
|
15
15
|
import type Item from "@wayward/game/game/item/Item";
|
|
@@ -21,7 +21,12 @@ declare namespace DoodadUtilities {
|
|
|
21
21
|
export function wouldWalkingOnDealNormalDamage(doodad: DoodadIn, human?: Human): boolean;
|
|
22
22
|
export function isDangerous(doodad: DoodadIn, human?: Human): boolean;
|
|
23
23
|
export function canCauseStatus(doodad: DoodadIn): boolean;
|
|
24
|
-
export function getScareRadius(doodad: Doodad | Item): IScareRadius;
|
|
24
|
+
export function getScareRadius(doodad: Doodad | Item, description?: IDoodadDescription | undefined): IScareRadius | undefined;
|
|
25
|
+
export function getCursedScarecrowSpawnBonus(doodad: Doodad | Item): {
|
|
26
|
+
radius: number;
|
|
27
|
+
naturalSpawnChance: number;
|
|
28
|
+
curseEventSpawnChance: number;
|
|
29
|
+
} | undefined;
|
|
25
30
|
export {};
|
|
26
31
|
}
|
|
27
32
|
export default DoodadUtilities;
|
|
@@ -545,7 +545,10 @@ export declare enum DoodadTypeGroup {
|
|
|
545
545
|
Anvil = -9994,
|
|
546
546
|
Well = -9993,
|
|
547
547
|
Hitch = -9992,
|
|
548
|
-
|
|
548
|
+
/**
|
|
549
|
+
* Special case for plants that need to be gathered to get the "main resource"
|
|
550
|
+
*/
|
|
551
|
+
GatheredPlant = -9991,
|
|
549
552
|
FireSource = -9990,
|
|
550
553
|
LitTorch = -9989,
|
|
551
554
|
LightDevice = -9988,
|
|
@@ -553,7 +556,10 @@ export declare enum DoodadTypeGroup {
|
|
|
553
556
|
* This is set for lit torches, candles, and jack-o'-lanterns specifically
|
|
554
557
|
*/
|
|
555
558
|
LightSource = -9987,
|
|
556
|
-
|
|
559
|
+
/**
|
|
560
|
+
* Prevents pick up while lit
|
|
561
|
+
*/
|
|
562
|
+
LitStructure = -9986,
|
|
557
563
|
LockedChest = -9985,
|
|
558
564
|
Scarecrow = -9984,
|
|
559
565
|
Lighthouse = -9983,
|
|
@@ -563,9 +569,12 @@ export declare enum DoodadTypeGroup {
|
|
|
563
569
|
Wheelbarrow = -9979,
|
|
564
570
|
Altar = -9978,
|
|
565
571
|
OpenFireSource = -9977,
|
|
566
|
-
|
|
572
|
+
ResetsDecayWhenLit = -9976,
|
|
567
573
|
ContainsFuelSource = -9975,
|
|
568
574
|
CurseWard = -9974,
|
|
575
|
+
/**
|
|
576
|
+
* Used for plants with snow (so they don't spawn/spread/generate with snow already on them)
|
|
577
|
+
*/
|
|
569
578
|
CannotBeSpread = -9973
|
|
570
579
|
}
|
|
571
580
|
export declare enum DoorOrientation {
|
|
@@ -619,4 +628,5 @@ export interface IDoodadGetNameOptions {
|
|
|
619
628
|
*/
|
|
620
629
|
ignoreDiscovery: boolean;
|
|
621
630
|
}
|
|
631
|
+
export declare const DOODAD_GROUP_HIDE_CONDITIONS: Array<(doodad: Doodad, group: DoodadTypeGroup) => boolean>;
|
|
622
632
|
export {};
|
|
@@ -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
|
+
import { DoodadTypeGroup } from "@wayward/game/game/doodad/IDoodad";
|
|
12
|
+
export declare const SPECIALIZED_SCARECROW_GROUPS: DoodadTypeGroup[];
|
|
@@ -126,6 +126,7 @@ export default abstract class Entity<DescriptionType = unknown, TypeType extends
|
|
|
126
126
|
* This is called clientside the first time the renderer seens the entity
|
|
127
127
|
*/
|
|
128
128
|
onFirstRender(renderer: Renderer): void;
|
|
129
|
+
computeLights(): void;
|
|
129
130
|
getCurrentMarker(): Readonly<MarkerDescription> | undefined;
|
|
130
131
|
setMarkerIconHidden(hidden: boolean): void;
|
|
131
132
|
/**
|
|
@@ -75,6 +75,10 @@ interface IEquip {
|
|
|
75
75
|
item: Item;
|
|
76
76
|
equipType: EquipType;
|
|
77
77
|
}
|
|
78
|
+
interface IThrowDamageBreakdown extends IAttack {
|
|
79
|
+
baseDamage: number;
|
|
80
|
+
magicalBonus: number;
|
|
81
|
+
}
|
|
78
82
|
export default abstract class Human<DescriptionType = unknown, TypeType extends number = number, EntityReferenceType extends ReferenceType.Player | ReferenceType.NPC = ReferenceType.Player | ReferenceType.NPC, TagType = unknown> extends EntityWithStats<DescriptionType, TypeType, EntityReferenceType, TagType> implements IHasInsulation, IContainer {
|
|
79
83
|
static getNameTranslation(): TranslationImpl;
|
|
80
84
|
event: IEventEmitter<this, IHumanEvents>;
|
|
@@ -162,7 +166,10 @@ export default abstract class Human<DescriptionType = unknown, TypeType extends
|
|
|
162
166
|
createSkillManager(): SkillManager;
|
|
163
167
|
get isLocalPlayer(): boolean;
|
|
164
168
|
get isResting(): boolean;
|
|
169
|
+
get isRestingAndNotSleeping(): boolean;
|
|
170
|
+
get isSleeping(): boolean;
|
|
165
171
|
get isRestingCancelled(): boolean;
|
|
172
|
+
get restDoodad(): Doodad | undefined;
|
|
166
173
|
get isGhost(): boolean;
|
|
167
174
|
get isDead(): boolean;
|
|
168
175
|
/**
|
|
@@ -242,6 +249,7 @@ export default abstract class Human<DescriptionType = unknown, TypeType extends
|
|
|
242
249
|
*/
|
|
243
250
|
damageRandomEquipment(amount?: number): void;
|
|
244
251
|
getDamageModifier(): number;
|
|
252
|
+
getThrowDamageBreakdown(weapon?: Item): IThrowDamageBreakdown;
|
|
245
253
|
calculateDamageAmount(attackType: AttackType, weapon?: Item, ammoItem?: Item): number;
|
|
246
254
|
isDualWielding(): boolean;
|
|
247
255
|
getAttack(attack?: AttackType, weapon?: Item, offHandWeapon?: Item): IAttack;
|
|
@@ -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, "Skill" | "Milestone">], [arg1: ActionArgument.Undefined, import("../argument/ActionArgumentEnum").default<Milestone, "Abnormalizer" | "Chef" | "Exterminator" | "Crafter" | "Gardener" | "Gatherer" | "Hunter" | "Locksmith" | "ReaperOfSouls" | "Survivor" | "Pitcher" | "Trapsetter" | "TreasureHunter" | "Collector" | "Explorer" | "Grandmaster" | "Prepared" | "Doctor" | "Artificer" | "Returned" | "Navigator" | "DragonSlayer" | "Treasurer" | "Pulchritudinous" | "Friendly" | "Malevolent" | "Benevolent" | "Boundless" | "Talented" | "Weathered" | "Seasoned" | "Pacifier" | "Merchant" | "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" | "Cursed" | "Cursebreaker" | "Oblivious">, import("../argument/ActionArgumentEnum").default<SkillType, "None" | "Chemistry" | "Anatomy" | "Marksmanship" | "Blacksmithing" | "Botany" | "Camping" | "Cartography" | "Claythrowing" | "Cooking" | "Fishing" | "Fletching" | "Glassblowing" | "Leatherworking" | "Lockpicking" | "Lumberjacking" | "Mining" | "Mycology" | "Parrying" | "Stonecrafting" | "Swimming" | "Tactics" | "Tailoring" | "Throwing" | "Tinkering" | "Trapping" | "Woodworking" | "Taming" | "Horticulture" | "Bartering" | "Seafaring" | "Thaumaturgy" | "DualWielding" | "Theurgy">]], ActionType.SetTitle, import("../../player/Player").default, void, import("@wayward/game/game/entity/action/IAction").IActionUsable, [(TitleType | undefined)?, (SkillType | Milestone | undefined)?]>;
|
|
19
|
+
declare const _default: Action<[[ActionArgument.Undefined, import("../argument/ActionArgumentEnum").default<TitleType, "Skill" | "Milestone">], [arg1: ActionArgument.Undefined, import("../argument/ActionArgumentEnum").default<Milestone, "Abnormalizer" | "Chef" | "Exterminator" | "Crafter" | "Gardener" | "Gatherer" | "Hunter" | "Locksmith" | "ReaperOfSouls" | "Survivor" | "Pitcher" | "Trapsetter" | "TreasureHunter" | "Collector" | "Explorer" | "Grandmaster" | "Prepared" | "Doctor" | "Artificer" | "Returned" | "Navigator" | "DragonSlayer" | "Treasurer" | "Pulchritudinous" | "Friendly" | "Malevolent" | "Benevolent" | "Boundless" | "Talented" | "Weathered" | "Seasoned" | "Pacifier" | "Merchant" | "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" | "Cursed" | "Cursebreaker" | "Oblivious" | "Warded" | "Defiled">, import("../argument/ActionArgumentEnum").default<SkillType, "None" | "Chemistry" | "Anatomy" | "Marksmanship" | "Blacksmithing" | "Botany" | "Camping" | "Cartography" | "Claythrowing" | "Cooking" | "Fishing" | "Fletching" | "Glassblowing" | "Leatherworking" | "Lockpicking" | "Lumberjacking" | "Mining" | "Mycology" | "Parrying" | "Stonecrafting" | "Swimming" | "Tactics" | "Tailoring" | "Throwing" | "Tinkering" | "Trapping" | "Woodworking" | "Taming" | "Horticulture" | "Bartering" | "Seafaring" | "Thaumaturgy" | "DualWielding" | "Theurgy">]], ActionType.SetTitle, import("../../player/Player").default, void, import("@wayward/game/game/entity/action/IAction").IActionUsable, [(TitleType | undefined)?, (SkillType | Milestone | undefined)?]>;
|
|
20
20
|
export default _default;
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { Action } from "@wayward/game/game/entity/action/Action";
|
|
12
|
-
import { ActionArgument } from "@wayward/game/game/entity/action/IAction";
|
|
13
|
-
declare const _default: Action<[ActionArgument.ItemNearby, ActionArgument.Boolean],
|
|
12
|
+
import { ActionArgument, ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
13
|
+
declare const _default: Action<[ActionArgument.ItemNearby, ActionArgument.Boolean], ActionType, import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, void, import("@wayward/game/game/entity/action/IAction").IActionUsable, [import("../../../item/Item").default, boolean]>;
|
|
14
14
|
export default _default;
|
|
@@ -228,7 +228,7 @@ export interface IUsableActionDefinitionBase<REQUIREMENTS extends IUsableActionR
|
|
|
228
228
|
*
|
|
229
229
|
* If set to an `ActionId`, the `ActionId` will be attempted to be slotted instead.
|
|
230
230
|
*/
|
|
231
|
-
slottable?: boolean | ActionId;
|
|
231
|
+
slottable?: boolean | ActionId | (() => boolean);
|
|
232
232
|
/**
|
|
233
233
|
* Whether this action is "applicable" given this player and these "provided" objects.
|
|
234
234
|
* @param player The player executing this action. This isn't always the local player!
|
|
@@ -370,8 +370,10 @@ export interface IUsableActionDefinitionSubmenu<REQUIREMENTS extends IUsableActi
|
|
|
370
370
|
forceDisplayWhenEmpty?: true;
|
|
371
371
|
}
|
|
372
372
|
export interface IUsableActionDefinitionExecutable<REQUIREMENTS extends IUsableActionRequirements = IUsableActionRequirements> extends IUsableActionDefinitionBase<REQUIREMENTS> {
|
|
373
|
-
slottable?: boolean | ActionId;
|
|
373
|
+
slottable?: boolean | ActionId | (() => boolean);
|
|
374
374
|
discoveredByDefault?: true | (() => boolean);
|
|
375
|
+
discoveryNotRequired?: true | (() => boolean);
|
|
376
|
+
discoveryId?: ActionId;
|
|
375
377
|
submenu?: undefined;
|
|
376
378
|
forceDisplayWhenEmpty?: undefined;
|
|
377
379
|
execute(player: Player, using: IUsableActionUsing<REQUIREMENTS>, context: IUsableActionExecutionContext): any;
|
|
@@ -113,6 +113,7 @@ declare class UsableAction<REQUIREMENTS extends IUsableActionRequirements = IUsa
|
|
|
113
113
|
getContextualLevel(using: IUsableActionPossibleUsing | undefined, parentMenuId: string, actionExecutionContext: IUsableActionExecutionContext): number;
|
|
114
114
|
private getOwnContextualLevel;
|
|
115
115
|
canUseOnMoveWhenDiscovered(): boolean;
|
|
116
|
+
getDiscoveryId(): string;
|
|
116
117
|
isDiscovered(): boolean;
|
|
117
118
|
canUseOnMove(): boolean;
|
|
118
119
|
getInternalActionType(): ActionType | undefined;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type { ActionDisplayLevel } from "@wayward/game/game/entity/action/IAction";
|
|
12
12
|
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
13
|
-
import type { IUsableActionDefinitionBase, IUsableActionPossibleUsing, IUsableActionRequirements, IUsableActionUsing, ReturnableUsableActionUsability, UsableActionIconReference } from "@wayward/game/game/entity/action/usable/IUsableAction";
|
|
13
|
+
import type { ActionId, IUsableActionDefinitionBase, IUsableActionPossibleUsing, IUsableActionRequirements, IUsableActionUsing, ReturnableUsableActionUsability, UsableActionIconReference } from "@wayward/game/game/entity/action/usable/IUsableAction";
|
|
14
14
|
import { UsableActionGenerator } from "@wayward/game/game/entity/action/usable/UsableActionRegistrar";
|
|
15
15
|
import type { UsableActionTranslator } from "@wayward/game/game/entity/action/usable/UsableActionTranslator";
|
|
16
16
|
import type Player from "@wayward/game/game/entity/player/Player";
|
|
@@ -24,6 +24,8 @@ export interface IUsableActionDynamicDefinition {
|
|
|
24
24
|
* Whether the action is visible in the action drawer by default (without using it normally first).
|
|
25
25
|
*/
|
|
26
26
|
discoveredByDefault?: true | (() => boolean);
|
|
27
|
+
discoveryNotRequired?: true | (() => boolean);
|
|
28
|
+
discoveryId?: ActionId;
|
|
27
29
|
translate?: (translator: UsableActionTranslator) => UsableActionTranslator;
|
|
28
30
|
/**
|
|
29
31
|
* By default, actions are assumed to be interacting with the tile in front of them.
|
|
@@ -44,12 +44,15 @@ export default class CreatureManager extends EntityManager<Creature, IEntityRemo
|
|
|
44
44
|
static getName(creature: Creature | CreatureType, aberrant?: boolean, count?: number, article?: Article): TranslationImpl;
|
|
45
45
|
getName(creature: Creature | CreatureType, aberrant?: boolean, count?: number, article?: Article): TranslationImpl;
|
|
46
46
|
calculateHappinessTameTime(human: Human, creature: Creature, bonusTime?: number): number;
|
|
47
|
+
getAberrantOfferRefusalPenalty(offeringBonus?: number): number;
|
|
48
|
+
shouldAberrantOfferFail(human: Human, creature: Creature, tamingSkillDivisor: number, offeringBonus?: number): boolean;
|
|
47
49
|
/**
|
|
48
50
|
* Spawns a creature.
|
|
49
51
|
* @param type The type of creature to spawn.
|
|
50
52
|
* @param tile The tile
|
|
51
53
|
*/
|
|
52
54
|
spawn(type: CreatureType, tile: Tile, options: ICreatureSpawnOptions): Creature | undefined;
|
|
55
|
+
spawnAdditionalNearCursedScarecrow(creature: Creature, originTile: Tile, curseEvent?: boolean): Creature[];
|
|
53
56
|
spawnFromZone(tile: Tile, bypassCreatureLimit?: boolean, checkTerrainType?: boolean): Creature | undefined;
|
|
54
57
|
getAberrantChance(tile: Tile): number;
|
|
55
58
|
createFake(type: CreatureType, aberrant: boolean, tile?: Tile, id?: number): Creature;
|
|
@@ -86,6 +86,7 @@ export default class SkillManager {
|
|
|
86
86
|
setCore(skill: SkillType, value: number): this;
|
|
87
87
|
setBonus(skill: SkillType, bonus: number): this;
|
|
88
88
|
setBonuses(bonuses: Map<SkillType, number>): this;
|
|
89
|
+
reset(): this;
|
|
89
90
|
/**
|
|
90
91
|
* @returns Whether the skill of this human is more than or equal to a random number between `0` and the value of `check`.
|
|
91
92
|
*/
|
|
@@ -16,7 +16,7 @@ import type Island from "@wayward/game/game/island/Island";
|
|
|
16
16
|
import { Temperature, TempType } from "@wayward/game/game/temperature/ITemperature";
|
|
17
17
|
export declare const CHANCE_TEMP_CONSEQUENCE_EFFECT = 0.3;
|
|
18
18
|
export declare const CHANCE_TEMP_CONSEQUENCE_STAT = 0.5;
|
|
19
|
-
export declare const CHANCE_TEMP_WAKEUP
|
|
19
|
+
export declare const CHANCE_TEMP_WAKEUP: number;
|
|
20
20
|
export default abstract class BadTemperatureEffect extends Status {
|
|
21
21
|
protected effectiveTemperature: Temperature;
|
|
22
22
|
register(): void;
|
|
@@ -44,5 +44,6 @@ export default abstract class Uses<T extends IDescribed> extends InfoProvider {
|
|
|
44
44
|
protected getUseDisplayLevel(action: ActionType, context: InfoProviderContext): InfoDisplayLevel;
|
|
45
45
|
private getDetailsHandlerResolver;
|
|
46
46
|
protected getUse(description: DescribedDescription<T>, action: ActionType): TranslationImpl;
|
|
47
|
+
protected getActionTier(description: DescribedDescription<T>, action: ActionType): number | undefined;
|
|
47
48
|
private getUseName;
|
|
48
49
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 Doodad from "@wayward/game/game/doodad/Doodad";
|
|
12
|
+
import { InfoProvider } from "@wayward/game/game/inspection/InfoProvider";
|
|
13
|
+
import type TranslationImpl from "@wayward/game/language/impl/TranslationImpl";
|
|
14
|
+
export default class DoodadFireSource extends InfoProvider {
|
|
15
|
+
private readonly doodad;
|
|
16
|
+
static get(doodad: Doodad): DoodadFireSource | undefined;
|
|
17
|
+
constructor(doodad: Doodad);
|
|
18
|
+
getClass(): string[];
|
|
19
|
+
get(): TranslationImpl;
|
|
20
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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 Doodad from "@wayward/game/game/doodad/Doodad";
|
|
12
|
+
import { InfoProvider } from "@wayward/game/game/inspection/InfoProvider";
|
|
13
|
+
export default class DoodadLightSource extends InfoProvider {
|
|
14
|
+
private readonly doodad;
|
|
15
|
+
static get(doodad: Doodad): DoodadLightSource | undefined;
|
|
16
|
+
constructor(doodad: Doodad);
|
|
17
|
+
getClass(): string[];
|
|
18
|
+
get(): never[] | import("../LabelledValue").default;
|
|
19
|
+
}
|
|
@@ -8,16 +8,16 @@
|
|
|
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
|
|
12
|
-
import type
|
|
13
|
-
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
11
|
+
import Doodad from "@wayward/game/game/doodad/Doodad";
|
|
12
|
+
import { type DoodadType, type IDoodadDescription } from "@wayward/game/game/doodad/IDoodad";
|
|
13
|
+
import type { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
14
14
|
import { EntityType } from "@wayward/game/game/entity/IEntity";
|
|
15
|
-
import type { IUseInfoBase } from "@wayward/game/game/inspection/infoProviders/UseInfo";
|
|
16
15
|
import type UseInfo from "@wayward/game/game/inspection/infoProviders/UseInfo";
|
|
17
16
|
import Uses from "@wayward/game/game/inspection/infoProviders/Uses";
|
|
18
17
|
export default class DoodadUses extends Uses<Doodad> {
|
|
19
18
|
protected getEntityType(): EntityType.Doodad;
|
|
20
19
|
protected getDescription(type: DoodadType): IDoodadDescription | undefined;
|
|
21
20
|
protected getUses(description: IDoodadDescription): ActionType[];
|
|
22
|
-
protected getUseInfoHandlers(): Array<UseInfo<
|
|
21
|
+
protected getUseInfoHandlers(): Array<UseInfo<any, any, any, Doodad>>;
|
|
22
|
+
private getDescriptionActions;
|
|
23
23
|
}
|
package/definitions/game/game/inspection/infoProviders/doodad/use/DoodadAttachContainerInfo.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 Doodad from "@wayward/game/game/doodad/Doodad";
|
|
12
|
+
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
13
|
+
import UseInfo from "@wayward/game/game/inspection/infoProviders/UseInfo";
|
|
14
|
+
declare const _default: UseInfo<import("@wayward/game/game/inspection/infoProviders/UseInfo").IUseInfoBase<Doodad, ActionType.AttachContainer>, ActionType.AttachContainer, {}, Doodad>;
|
|
15
|
+
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 Doodad from "@wayward/game/game/doodad/Doodad";
|
|
12
|
+
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
13
|
+
import UseInfo from "@wayward/game/game/inspection/infoProviders/UseInfo";
|
|
14
|
+
declare const _default: UseInfo<import("@wayward/game/game/inspection/infoProviders/UseInfo").IUseInfoBase<Doodad, ActionType.DisplayItem>, ActionType.DisplayItem, {}, Doodad>;
|
|
15
|
+
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 Doodad from "@wayward/game/game/doodad/Doodad";
|
|
12
|
+
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
13
|
+
import UseInfo from "@wayward/game/game/inspection/infoProviders/UseInfo";
|
|
14
|
+
declare const _default: UseInfo<import("@wayward/game/game/inspection/infoProviders/UseInfo").IUseInfoBase<Doodad, ActionType.Gather>, ActionType.Gather, {}, Doodad>;
|
|
15
|
+
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 Doodad from "@wayward/game/game/doodad/Doodad";
|
|
12
|
+
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
13
|
+
import UseInfo from "@wayward/game/game/inspection/infoProviders/UseInfo";
|
|
14
|
+
declare const _default: UseInfo<import("@wayward/game/game/inspection/infoProviders/UseInfo").IUseInfoBase<Doodad, ActionType.Hitch>, ActionType.Hitch, {}, Doodad>;
|
|
15
|
+
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 Doodad from "@wayward/game/game/doodad/Doodad";
|
|
12
|
+
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
13
|
+
import UseInfo from "@wayward/game/game/inspection/infoProviders/UseInfo";
|
|
14
|
+
declare const _default: UseInfo<import("@wayward/game/game/inspection/infoProviders/UseInfo").IUseInfoBase<Doodad, ActionType.Lockpick>, ActionType.Lockpick, {}, Doodad>;
|
|
15
|
+
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 Doodad from "@wayward/game/game/doodad/Doodad";
|
|
12
|
+
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
13
|
+
import UseInfo from "@wayward/game/game/inspection/infoProviders/UseInfo";
|
|
14
|
+
declare const _default: UseInfo<import("@wayward/game/game/inspection/infoProviders/UseInfo").IUseInfoBase<Doodad, ActionType.Pour>, ActionType.Pour, {}, Doodad>;
|
|
15
|
+
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 Doodad from "@wayward/game/game/doodad/Doodad";
|
|
12
|
+
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
13
|
+
import UseInfo from "@wayward/game/game/inspection/infoProviders/UseInfo";
|
|
14
|
+
declare const _default: UseInfo<import("@wayward/game/game/inspection/infoProviders/UseInfo").IUseInfoBase<Doodad, ActionType.TestDepth>, ActionType.TestDepth, {}, Doodad>;
|
|
15
|
+
export default _default;
|