@wayward/types 2.13.0-beta.dev.20230425.1 → 2.13.0-beta.dev.20230427.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.
@@ -71,8 +71,10 @@ export interface IUntilSubscriber<H, E> {
71
71
  }
72
72
  declare class EventEmitter<H, E> {
73
73
  private readonly host;
74
+ static RECORD_MODE: boolean;
74
75
  private readonly hostClass;
75
76
  private readonly subscriptions;
77
+ private readonly subscriptionsRecord;
76
78
  private readonly cachedEmitSelfHandlers;
77
79
  constructor(host: H);
78
80
  raw(): IEventEmitter<H, E>;
@@ -38,11 +38,11 @@ export interface IObjectDescription extends IHasImagePath {
38
38
  preservationChance?: number;
39
39
  spawnOnWorldGen?: OptionalDescriptions<BiomeType, OptionalDescriptions<WorldZ, OptionalDescriptions<TerrainType, number>>>;
40
40
  }
41
- export interface IHasImagePath {
41
+ export interface IHasImagePath<ImagePathType = string> {
42
42
  /**
43
43
  * A replacement image to use. Used in modding.
44
44
  */
45
- imagePath?: string;
45
+ imagePath?: ImagePathType;
46
46
  /**
47
47
  * The number of alternate textures that this image has. Not supported for most things.
48
48
  */
@@ -26,6 +26,7 @@ import { PlayerState, TurnTypeFlag, WeightStatus } from "game/entity/player/IPla
26
26
  import type { INoteManager } from "game/entity/player/note/NoteManager";
27
27
  import PlayerDefense from "game/entity/player/PlayerDefense";
28
28
  import type { IQuestManager } from "game/entity/player/quest/QuestManager";
29
+ import type { ISkillAttribute } from "game/entity/skill/ISkills";
29
30
  import SkillManager from "game/entity/skill/SkillManager";
30
31
  import type { StatChangeTimerFactory } from "game/entity/StatFactory";
31
32
  import { StatChangeCurrentTimerStrategy } from "game/entity/StatFactory";
@@ -350,7 +351,7 @@ export default abstract class Human<TypeType extends number = number> extends En
350
351
  /**
351
352
  * Improve one of the core player stats
352
353
  */
353
- protected statGain(stat: Stat, bypass: boolean): void;
354
+ protected statGain(stat: Stat | ISkillAttribute, bypass: boolean): void;
354
355
  protected calculateStats(): void;
355
356
  kill(): void;
356
357
  protected resetDefense(skipStatChangedEvent?: boolean): void;
@@ -15,6 +15,7 @@ import type Human from "game/entity/Human";
15
15
  import { AttackType } from "game/entity/IEntity";
16
16
  import { SkillType } from "game/entity/IHuman";
17
17
  import type { IItemDescription, IRanged } from "game/item/IItem";
18
+ import { ItemType, ItemTypeGroup } from "game/item/IItem";
18
19
  import type Item from "game/item/Item";
19
20
  import type Tile from "game/tile/Tile";
20
21
  export interface IBaseCanUse extends IActionUsable {
@@ -38,8 +39,9 @@ export interface IAttackRangedWeaponCanUse extends IBaseCanUse {
38
39
  attackType: AttackType.RangedWeapon;
39
40
  weapon: Item;
40
41
  ranged: IRanged;
41
- rangedRequiredWeapon?: Item;
42
- ammoItem: Item;
42
+ rangedRequiredWeapon: Item | undefined;
43
+ ammoItem: Item | undefined;
44
+ ammunitionType: ItemType | ItemTypeGroup | undefined;
43
45
  }
44
46
  export type IAttackCanUse = IAttackCloseUpCanUse | IAttackThrowItemCanUse | IAttackRangedWeaponCanUse;
45
47
  declare const _default: Action<[[ActionArgument.ItemInventory, ActionArgument.Undefined], [ActionArgument.AttackType, ActionArgument.Undefined], [ActionArgument.ItemInventory, ActionArgument.Undefined]], Human<number>, void, IAttackCanUse, [(Item | undefined)?, (AttackType | undefined)?, (Item | undefined)?]>;
@@ -17,8 +17,13 @@ export interface ISkillLevel {
17
17
  core: number;
18
18
  }
19
19
  export interface ISkillDescription extends IModdable {
20
- attribute?: Stat;
20
+ attribute?: Stat | ISkillAttribute;
21
21
  reputation?: number;
22
22
  defaultDamageType?: DamageType;
23
23
  }
24
+ export interface ISkillAttribute {
25
+ stat: Stat;
26
+ gainChanceOffset?: number;
27
+ gainMultiplier?: number;
28
+ }
24
29
  export declare const skillDescriptions: OptionalDescriptions<SkillType, ISkillDescription>;
@@ -43,6 +43,10 @@ export interface IInfoProviderEvents {
43
43
  /**
44
44
  * Should be emitted when the info provider should be removed.
45
45
  */
46
+ requestRemove(): any;
47
+ /**
48
+ * Emitted when the info provider has been removed.
49
+ */
46
50
  remove(): any;
47
51
  /**
48
52
  * Should be emitted when the info provider's display level changes.
@@ -16,6 +16,7 @@ export default class HealthInfoProvider<E extends EntityWithStats> extends InfoP
16
16
  protected readonly entity: E;
17
17
  constructor(entity: E);
18
18
  getClass(): string[];
19
+ protected onInitContent(): void;
19
20
  hasContent(): boolean;
20
21
  get(context: InfoProviderContext): InfoProvider;
21
22
  private getValue;
@@ -16,6 +16,7 @@ export default class SkillBonusMagicalItemsInfoProvider extends InfoProvider {
16
16
  private readonly human?;
17
17
  constructor(skill: SkillType, human?: Human<number> | undefined);
18
18
  getClass(): string[];
19
+ protected onInitContent(): void;
19
20
  hasContent(): boolean;
20
21
  get(): (0 | import("../../../../language/impl/TranslationImpl").default | import("game/inspection/InfoProvider").SimpleInfoProvider)[];
21
22
  private getMagicalItems;
@@ -73,8 +73,8 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
73
73
  readonly temperature: TemperatureManager;
74
74
  readonly tileEvents: TileEventManager;
75
75
  readonly time: TimeManager;
76
- saveVersion: string;
77
76
  saveBuildTime?: number;
77
+ saveVersion: string;
78
78
  biomeType: BiomeTypes;
79
79
  civilizationScore: number;
80
80
  civilizationScoreTiles: Record<number, number>;
@@ -11,6 +11,7 @@
11
11
  import type { SfxType } from "audio/IAudio";
12
12
  import type { BiomeType } from "game/biome/IBiome";
13
13
  import type { DoodadType, DoodadTypeGroup } from "game/doodad/IDoodad";
14
+ import type { IActionApi } from "game/entity/action/IAction";
14
15
  import { ActionType } from "game/entity/action/IAction";
15
16
  import type Creature from "game/entity/creature/Creature";
16
17
  import type { CreatureType, TileGroup } from "game/entity/creature/ICreature";
@@ -199,6 +200,8 @@ export interface IItemDescription extends IObjectDescription, IModdable, ITemper
199
200
  plural?: string;
200
201
  hideHelmet?: boolean;
201
202
  worth?: number;
203
+ lightSource?: boolean;
204
+ lightColor?: IRGB;
202
205
  /**
203
206
  * Array of items that the item is "made from" in cases where we can't use the disassembly items to burn into.
204
207
  * All items in array are required to have onBurn set in their description to function properly.
@@ -299,7 +302,10 @@ export interface IItemDescription extends IObjectDescription, IModdable, ITemper
299
302
  onCreate?(item: Item): void;
300
303
  onChangeInto?(item: Item, fromItemType: ItemType): void;
301
304
  }
302
- export type ConsumeItemStatsTuple = [health: number, stamina: number, hunger: number, thirst: number];
305
+ export type ConsumeItemStatsTuple = [health: number, stamina: number, hunger: number, thirst: number, otherStats?: Array<{
306
+ stat: Stat;
307
+ amount: number;
308
+ }>];
303
309
  export interface IItemOnUse {
304
310
  [ActionType.Apply]?: ConsumeItemStatsTuple;
305
311
  [ActionType.Build]?: IItemBuild;
@@ -505,9 +511,12 @@ export interface IItemChangeIntoOptions {
505
511
  export interface IRanged {
506
512
  range: number;
507
513
  attack: number;
508
- ammunitionType?: ItemTypeGroup;
514
+ ammunitionType?: ItemType | ItemTypeGroup | ((action: IActionApi) => ItemType | ItemTypeGroup | undefined);
509
515
  requiredToFire?: ItemType;
510
516
  skillType?: SkillType;
517
+ unlimitedAmmunition?: boolean;
518
+ attackMessage?: Message;
519
+ particles?: IRGB | ((action: IActionApi) => IRGB | undefined);
511
520
  }
512
521
  export interface IMagicalPropertyInfo {
513
522
  /**
@@ -1576,7 +1585,22 @@ export declare enum ItemTypeGroup {
1576
1585
  Boat = 916,
1577
1586
  Text = 917,
1578
1587
  ContainerWithLiquid = 918,
1579
- All = 919,
1580
- Last = 920
1588
+ CraftingMaterial = 919,
1589
+ MagicalComponent = 920,
1590
+ Scarecrow = 921,
1591
+ Well = 922,
1592
+ Mapping = 923,
1593
+ Terrain = 924,
1594
+ Lighthouse = 925,
1595
+ SeedBearer = 926,
1596
+ Mushroom = 927,
1597
+ Lockpick = 928,
1598
+ WaterPurification = 929,
1599
+ CreatureContainment = 930,
1600
+ Gem = 931,
1601
+ Golem = 932,
1602
+ CreatureResource = 933,
1603
+ All = 934,
1604
+ Last = 935
1581
1605
  }
1582
1606
  export {};
@@ -98,27 +98,27 @@ declare enum Dictionary {
98
98
  Quest = 86,
99
99
  QuestRequirement = 87,
100
100
  RecipeLevel = 88,
101
- Riddle = 89,
102
- SaveImportErrorReason = 90,
103
- SaveSlotSort = 91,
104
- Skill = 92,
105
- SkillsSort = 93,
106
- Source = 94,
107
- Stat = 95,
108
- StatusEffect = 96,
109
- TeamMemberResponsibility = 97,
110
- TemperatureType = 98,
111
- Terrain = 99,
112
- TileEvent = 100,
113
- TooltipVisibilityOption = 101,
114
- Ui = 102,
115
- UiQuadrant = 103,
116
- UnableToJoinReason = 104,
117
- UnlockedRecipesStrategy = 105,
118
- UsableActionType = 106,
119
- Website = 107,
120
- WeightStatus = 108,
121
- WorldLayer = 109,
122
- Region = 110
101
+ Region = 89,
102
+ Riddle = 90,
103
+ SaveImportErrorReason = 91,
104
+ SaveSlotSort = 92,
105
+ Skill = 93,
106
+ SkillsSort = 94,
107
+ Source = 95,
108
+ Stat = 96,
109
+ StatusEffect = 97,
110
+ TeamMemberResponsibility = 98,
111
+ TemperatureType = 99,
112
+ Terrain = 100,
113
+ TileEvent = 101,
114
+ TooltipVisibilityOption = 102,
115
+ Ui = 103,
116
+ UiQuadrant = 104,
117
+ UnableToJoinReason = 105,
118
+ UnlockedRecipesStrategy = 106,
119
+ UsableActionType = 107,
120
+ Website = 108,
121
+ WeightStatus = 109,
122
+ WorldLayer = 110
123
123
  }
124
124
  export default Dictionary;
@@ -112,7 +112,6 @@ declare const dictionaryMap: {
112
112
  19: typeof DamageType;
113
113
  20: typeof DialogId;
114
114
  21: typeof Direction;
115
- 110: typeof Direction;
116
115
  22: typeof InfoDisplayLevel;
117
116
  23: typeof DoodadType;
118
117
  24: typeof DoodadTypeExtra;
@@ -180,27 +179,28 @@ declare const dictionaryMap: {
180
179
  86: typeof QuestType;
181
180
  87: typeof QuestRequirementType;
182
181
  88: typeof RecipeLevel;
183
- 89: typeof Riddle;
184
- 90: typeof SaveImportErrorReason;
185
- 91: typeof SaveSort;
186
- 92: typeof SkillType;
187
- 93: typeof SkillSort;
188
- 94: typeof Source;
189
- 95: typeof Stat;
190
- 96: typeof StatusType;
191
- 97: typeof Responsibility;
192
- 98: typeof TempType;
193
- 99: typeof TerrainType;
194
- 100: typeof TileEventType;
195
- 101: typeof TooltipVisibilityOption;
196
- 102: typeof UiTranslation;
197
- 103: typeof Quadrant;
198
- 104: typeof UnableToJoinReason;
199
- 105: typeof UnlockedRecipesStrategy;
200
- 106: typeof UsableActionType;
201
- 107: typeof Website;
202
- 108: typeof WeightStatus;
203
- 109: typeof WorldZ;
182
+ 89: typeof Direction;
183
+ 90: typeof Riddle;
184
+ 91: typeof SaveImportErrorReason;
185
+ 92: typeof SaveSort;
186
+ 93: typeof SkillType;
187
+ 94: typeof SkillSort;
188
+ 95: typeof Source;
189
+ 96: typeof Stat;
190
+ 97: typeof StatusType;
191
+ 98: typeof Responsibility;
192
+ 99: typeof TempType;
193
+ 100: typeof TerrainType;
194
+ 101: typeof TileEventType;
195
+ 102: typeof TooltipVisibilityOption;
196
+ 103: typeof UiTranslation;
197
+ 104: typeof Quadrant;
198
+ 105: typeof UnableToJoinReason;
199
+ 106: typeof UnlockedRecipesStrategy;
200
+ 107: typeof UsableActionType;
201
+ 108: typeof Website;
202
+ 109: typeof WeightStatus;
203
+ 110: typeof WorldZ;
204
204
  };
205
205
  export declare const strictDictionaries: {
206
206
  0: typeof ActionType;
@@ -225,7 +225,6 @@ export declare const strictDictionaries: {
225
225
  19: typeof DamageType;
226
226
  20: typeof DialogId;
227
227
  21: typeof Direction;
228
- 110: typeof Direction;
229
228
  22: typeof InfoDisplayLevel;
230
229
  23: typeof DoodadType;
231
230
  24: typeof DoodadTypeExtra;
@@ -293,27 +292,28 @@ export declare const strictDictionaries: {
293
292
  86: typeof QuestType;
294
293
  87: typeof QuestRequirementType;
295
294
  88: typeof RecipeLevel;
296
- 89: typeof Riddle;
297
- 90: typeof SaveImportErrorReason;
298
- 91: typeof SaveSort;
299
- 92: typeof SkillType;
300
- 93: typeof SkillSort;
301
- 94: typeof Source;
302
- 95: typeof Stat;
303
- 96: typeof StatusType;
304
- 97: typeof Responsibility;
305
- 98: typeof TempType;
306
- 99: typeof TerrainType;
307
- 100: typeof TileEventType;
308
- 101: typeof TooltipVisibilityOption;
309
- 102: typeof UiTranslation;
310
- 103: typeof Quadrant;
311
- 104: typeof UnableToJoinReason;
312
- 105: typeof UnlockedRecipesStrategy;
313
- 106: typeof UsableActionType;
314
- 107: typeof Website;
315
- 108: typeof WeightStatus;
316
- 109: typeof WorldZ;
295
+ 89: typeof Direction;
296
+ 90: typeof Riddle;
297
+ 91: typeof SaveImportErrorReason;
298
+ 92: typeof SaveSort;
299
+ 93: typeof SkillType;
300
+ 94: typeof SkillSort;
301
+ 95: typeof Source;
302
+ 96: typeof Stat;
303
+ 97: typeof StatusType;
304
+ 98: typeof Responsibility;
305
+ 99: typeof TempType;
306
+ 100: typeof TerrainType;
307
+ 101: typeof TileEventType;
308
+ 102: typeof TooltipVisibilityOption;
309
+ 103: typeof UiTranslation;
310
+ 104: typeof Quadrant;
311
+ 105: typeof UnableToJoinReason;
312
+ 106: typeof UnlockedRecipesStrategy;
313
+ 107: typeof UsableActionType;
314
+ 108: typeof Website;
315
+ 109: typeof WeightStatus;
316
+ 110: typeof WorldZ;
317
317
  };
318
318
  export type DictionaryEnum = (typeof dictionaryMap)[Dictionary];
319
319
  export type DictionaryEntryEnums = {
@@ -446,15 +446,15 @@ declare enum Message {
446
446
  NoTinderToStartFire = 434,
447
447
  NotSuitableToPlant = 435,
448
448
  NoWaterInStill = 436,
449
- NPCMerchantStartingDialog1 = 437,
450
- NPCMerchantStartingDialog2 = 438,
451
- NPCMerchantStartingDialog3 = 439,
452
- NPCMerchantStartingDialog4 = 440,
453
- NPCMerchantWelcomeCredit = 441,
454
- NPCMerchantNewInventoryDialog1 = 442,
455
- NPCMerchantNewInventoryDialog2 = 443,
456
- NPCMerchantNewInventoryDialog3 = 444,
457
- NPCMerchantNewInventoryDialog4 = 445,
449
+ NPCMerchantNewInventoryDialog1 = 437,
450
+ NPCMerchantNewInventoryDialog2 = 438,
451
+ NPCMerchantNewInventoryDialog3 = 439,
452
+ NPCMerchantNewInventoryDialog4 = 440,
453
+ NPCMerchantStartingDialog1 = 441,
454
+ NPCMerchantStartingDialog2 = 442,
455
+ NPCMerchantStartingDialog3 = 443,
456
+ NPCMerchantStartingDialog4 = 444,
457
+ NPCMerchantWelcomeCredit = 445,
458
458
  NPCShipperShipToIsland = 446,
459
459
  NPCShipperStartingDialog1 = 447,
460
460
  NPCShipperStartingDialog2 = 448,
@@ -126,20 +126,20 @@ export declare enum MiscTranslation {
126
126
  ExpressionSeparator = 24,
127
127
  ItemMagicalProperty = 25,
128
128
  ListItemSeparator = 26,
129
- Multiply = 27,
130
- NPCName = 28,
131
- NPCNameUnmet = 29,
132
- NumberSingleDecimal = 30,
133
- OwnName = 31,
134
- Percent = 32,
135
- PercentRaw = 33,
136
- PlayerName = 34,
137
- Possession = 35,
138
- Range = 36,
139
- ReformatSingularNoun = 37,
140
- Renamed = 38,
141
- Merge = 39,
142
- MergeSpaced = 40,
129
+ Merge = 27,
130
+ MergeSpaced = 28,
131
+ Multiply = 29,
132
+ NPCName = 30,
133
+ NPCNameUnmet = 31,
134
+ NumberSingleDecimal = 32,
135
+ OwnName = 33,
136
+ Percent = 34,
137
+ PercentRaw = 35,
138
+ PlayerName = 36,
139
+ Possession = 37,
140
+ Range = 38,
141
+ ReformatSingularNoun = 39,
142
+ Renamed = 40,
143
143
  Tilled = 41,
144
144
  Unknown = 42,
145
145
  UnknownItem = 43
@@ -13,7 +13,7 @@ import type { IModdable } from "mod/ModRegistry";
13
13
  import { PathType } from "resource/IResourceLoader";
14
14
  interface IResourceData {
15
15
  enumObject: any;
16
- descriptions?: Map<number, IModdable & IHasImagePath> | OptionalDescriptions<number, IModdable & IHasImagePath> | ((key: number) => (IModdable & IHasImagePath) | undefined);
16
+ descriptions?: Map<number, IModdable & IHasImagePath<string | any>> | OptionalDescriptions<number, IModdable & IHasImagePath> | ((key: number) => (IModdable & IHasImagePath) | undefined);
17
17
  referencedType?: PathType;
18
18
  }
19
19
  declare module IResourceData {
@@ -92,6 +92,7 @@ export declare class BasicText extends Component {
92
92
  currentTooltip?: (tooltip: Tooltip) => any;
93
93
  constructor(elementType?: string);
94
94
  setText(text: IStringSection & Partial<IColorSection> & Partial<ILinkSection> & Partial<IHeadingSection> & Partial<ITooltipSection> & Partial<IReferenceSection> & Partial<IListItemSection> & Partial<IBindingsSection>, data?: IEntireTextData): this;
95
+ protected onRemove(): void;
95
96
  private setTooltipLocation;
96
97
  private onClick;
97
98
  }
@@ -8,6 +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 { IHasImagePath } from "game/IObject";
11
12
  import type EntityWithStats from "game/entity/EntityWithStats";
12
13
  import type { IStat, StatDisplayType } from "game/entity/IStats";
13
14
  import type { Reference } from "game/reference/IReferenceManager";
@@ -15,7 +16,7 @@ import type { IModdable } from "mod/ModRegistry";
15
16
  import type Component from "ui/component/Component";
16
17
  import type Tooltip from "ui/tooltip/Tooltip";
17
18
  import type { IStringSection } from "utilities/string/Interpolator";
18
- export interface IStatDisplayDescription extends IModdable {
19
+ export interface IStatDisplayDescription extends IModdable, IHasImagePath<string | ((entity: EntityWithStats, stat: IStat) => string)> {
19
20
  imagePath?: string | ((entity: EntityWithStats, stat: IStat) => string);
20
21
  /**
21
22
  * The CSS variable to use for the stat bar color
@@ -15,12 +15,13 @@ import type { MenuId } from "../../game/ui/screen/screens/menu/component/IMenu";
15
15
  import type { Random } from "../../game/utilities/random/Random";
16
16
  import type { IAppPaths } from "../interfaces";
17
17
  import type { TestRunContext } from "../testRunner";
18
- import type { Apps } from "./applicationManager";
19
18
  import ApplicationInteractions from "./applicationInteractions";
19
+ import type { Apps } from "./applicationManager";
20
20
  export interface IApplicationOptions {
21
21
  additionalArgs?: string[];
22
22
  mods?: string[];
23
23
  nodeJsMode?: boolean;
24
+ random?: Random;
24
25
  }
25
26
  export interface ITestState {
26
27
  seed: number;
@@ -52,7 +53,7 @@ export default class Application extends ApplicationInteractions {
52
53
  private videoPath;
53
54
  private videoTimerId;
54
55
  private readonly videoFrames;
55
- constructor(testContext: TestRunContext, appId: string, paths: IAppPaths, random: Random, options?: IApplicationOptions);
56
+ constructor(testContext: TestRunContext, appId: string, paths: IAppPaths, options?: IApplicationOptions);
56
57
  get waywardLogFilePath(): string;
57
58
  reportResults(): Promise<void>;
58
59
  start(expectedInitialScreen?: "title" | "mp_gameplay_modifiers"): Promise<void>;
@@ -27,5 +27,8 @@ export default class ApplicationDom {
27
27
  waitForVisibleThenClick(selector: string, timeout?: number, indent?: boolean, clickOnce?: boolean): Promise<void>;
28
28
  waitForVisibleElements(selector: string, timeout?: number, scrollIntoView?: boolean): Promise<WebdriverIO.Element[]>;
29
29
  waitForNotVisible(selector: string, timeout?: number): Promise<void>;
30
- waitUntil(executor: () => Promise<boolean>, options: webdriverio.WaitUntilOptions): Promise<true | void>;
30
+ waitUntil(executor: () => Promise<boolean>, options: WaitUntilOptions): Promise<true | void>;
31
+ }
32
+ export interface WaitUntilOptions extends Omit<webdriverio.WaitUntilOptions, "timeoutMsg"> {
33
+ timeoutMsg?: string | (() => string);
31
34
  }
@@ -75,7 +75,7 @@ export declare class Apps {
75
75
  sailToCivilization(winnerApp: Application): Promise<void>;
76
76
  executeJavascript<T2 extends any[], T = void>(app: Application, executor: (player: Player, ...extraArgs: T2) => T, ...extraArgs: T2): Promise<T[]>;
77
77
  executeOnPlayingClients<T>(runnable: (app: Application) => Promise<T>): Promise<T[]>;
78
- executeOnApps<T>(apps: Application[], runnable: (app: Application) => Promise<T>): Promise<T[]>;
78
+ executeOnApps<T>(apps: Application[], runnable: (app: Application) => Promise<T>, requiresDeterminism: boolean): Promise<T[]>;
79
79
  runWhilePaused(blockId: string, runnable: () => Promise<void>): Promise<void>;
80
80
  private bindApp;
81
81
  private log;
@@ -9,5 +9,5 @@
9
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
11
  import type { Random } from "../../game/utilities/random/Random";
12
- export declare function createRandom(): Random;
12
+ export declare function createRandom(appId: string): Random;
13
13
  export declare function getSeed(): number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wayward/types",
3
3
  "description": "TypeScript declarations for Wayward, used for modding.",
4
- "version": "2.13.0-beta.dev.20230425.1",
4
+ "version": "2.13.0-beta.dev.20230427.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",