@wayward/types 2.11.1-beta.dev.20220103.1 → 2.11.2-beta.dev.20220106.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.
@@ -218,6 +218,7 @@ export default class Doodad extends EventEmitter.Host<IDoodadEvents> implements
218
218
  * @param growthBonus The bonus that is applied (on top of a default of 10) to the plants decay (so it grows faster).
219
219
  */
220
220
  healOrHarmPlant(liquid: LiquidType, growthBonus?: number): void;
221
+ isLitAndCanRevert(): boolean;
221
222
  /**
222
223
  * Reverts lit doodads if they provide fire and have a revert doodad type set.
223
224
  */
@@ -49,11 +49,11 @@ export declare const ISLAND_TRAVEL_TIME_SEAFARING_SKILL_REDUCTION_MULTIPLIER = 0
49
49
  /**
50
50
  * Metabolic stat loss is `travelTime * this multiplier`
51
51
  */
52
- export declare const PLAYER_TRAVEL_METABOLIC_STAT_REDUCTION_MULTIPLIER = 0.075;
52
+ export declare const PLAYER_TRAVEL_METABOLIC_STAT_REDUCTION_MULTIPLIER = 0.2;
53
53
  /**
54
54
  * Stamina loss is `this reduction / Math.log2(boat tier)`
55
55
  */
56
- export declare const PLAYER_TRAVEL_BOAT_STAMINA_STAT_REDUCTION = 20;
56
+ export declare const PLAYER_TRAVEL_BOAT_STAMINA_STAT_REDUCTION = 40;
57
57
  /**
58
58
  * Stat loss is `this reduction / Math.log2(boat tier)`
59
59
  */
@@ -61,8 +61,8 @@ export declare const PLAYER_TRAVEL_CIVILIZATION_STAT_REDUCTION = 5;
61
61
  /**
62
62
  * Stamina loss is `lerp(this range, skill percentage)`
63
63
  * This works out to:
64
- * - 80% skill (required for swimming to another island) = ~54 stamina lost
65
- * - 100% skill = 30 stamina lost
64
+ * - 80% skill (required for swimming to another island) = ~108 stamina lost
65
+ * - 100% skill = 60 stamina lost
66
66
  * - 125% skill = 0 stamina lost
67
67
  */
68
68
  export declare const PLAYER_TRAVEL_SWIM_STAMINA_STAT_REDUCTION: IRange;
@@ -254,6 +254,14 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
254
254
  private updateEntityFov;
255
255
  private processTimers;
256
256
  private runRandomEvents;
257
+ /**
258
+ * Plants a random seed at the given coordinates based on what can grow on that tile naturally. This will replace any doodad that is there.
259
+ * @param x X coordinates.
260
+ * @param y Y coordinates.
261
+ * @param z Z coordinates.
262
+ * @returns True if a seed was planted.
263
+ */
264
+ plantRandomSeed(x: number, y: number, z: number): boolean;
257
265
  /**
258
266
  * Synchronizes player events
259
267
  * Usually called when a new player joins
@@ -228,6 +228,13 @@ export default class ItemManager extends ObjectManager<Item, IItemManagerEvents>
228
228
  checkMilestones(player: Player, item: Item): void;
229
229
  getDefaultDurability(human: Human | undefined, weight: number, itemType: ItemType, getMax?: boolean): number;
230
230
  updateItemOrder(container: IContainer, itemOrder: number[] | undefined): void;
231
+ /**
232
+ * Used in cases where we break items down from their base form like in dismantling or burning items.
233
+ * @param itemQuality Quality of the base item.
234
+ * @param bonusValue A number that we likely will be passing to getQualityBasedOnSkill and can be based on a skill or some arbitrary value.
235
+ * @returns number That is distributed from the quality/value.
236
+ */
237
+ getBreakingQualityBonus(itemQuality: Quality | undefined, bonusValue: number): number;
231
238
  getQualityBasedOnSkill(itemQuality: Quality | undefined, skillValue: number, allowIncreasedQuality?: boolean, bonusChance?: number): Quality | undefined;
232
239
  getNPCFromInventoryContainer(containable: IContainable): NPC | undefined;
233
240
  getItemsByWeight(a: number, b: number): number;
@@ -34,5 +34,5 @@ export declare module FireStage {
34
34
  export declare module IFire {
35
35
  function dissassemblyBurn(island: Island, item: Item, container: ITileContainer, disassembly: boolean): void;
36
36
  function harvestGatherBurn(step: number, resources: ILootItem[] | undefined, container: IContainer, quality: Quality | undefined, tileEvent: TileEvent): void;
37
- function burnsLike(burnsLikeItem: ItemType, tileEvent: TileEvent, tileContainer: IContainer, quality: Quality): void;
37
+ function burnsLike(burnsLikeItem: ItemType, tileEvent: TileEvent, tileContainer: IContainer, quality: Quality | undefined): void;
38
38
  }
@@ -141,6 +141,7 @@ export interface IMultiplayerNetworkingOptions {
141
141
  connectionTimeout: number;
142
142
  keepAliveInterval: number;
143
143
  keepAliveTimeout: number;
144
+ steamNetworkingConnectionWebRTCFallbackTimeout: number;
144
145
  }
145
146
  export declare type ServerInfo = string | IMatchmakingInfo;
146
147
  export declare enum PacketAcceptType {
@@ -200,6 +201,6 @@ export interface IJoinServerOptions {
200
201
  character: ICharacter;
201
202
  milestoneModifiers: Set<Milestone>;
202
203
  retryMatchmakingInfo: IMatchmakingInfo;
203
- joinServerTimeout?: number;
204
- automaticallyRetry?: boolean;
204
+ automaticallyRetry: boolean;
205
+ enableSteamNetworkConnections: boolean;
205
206
  }
@@ -32,6 +32,7 @@ export default class Multiplayer extends EventEmitter.Host<IMultiplayerEvents> {
32
32
  private readonly _clients;
33
33
  private readonly _steamIdToClientMapping;
34
34
  private _joinServerTimeoutId;
35
+ private _steamNetworkConnectionWebRTCFallbackTimeoutId;
35
36
  private _joinedMatchmakingInfo;
36
37
  private _connectedMatchmakingInfo;
37
38
  private _globalMatchmaking;
@@ -91,6 +92,7 @@ export default class Multiplayer extends EventEmitter.Host<IMultiplayerEvents> {
91
92
  rejoinServer(options?: {
92
93
  randomizeIdentifier?: boolean;
93
94
  automaticallyRetry?: boolean;
95
+ enableSteamNetworkConnections?: boolean;
94
96
  }): Promise<boolean>;
95
97
  /**
96
98
  * Disconnects from multiplayer
@@ -146,6 +148,7 @@ export default class Multiplayer extends EventEmitter.Host<IMultiplayerEvents> {
146
148
  private addDefaultSyncChecks;
147
149
  private getPacketSyncChecks;
148
150
  private clearJoinServerRetryTimeout;
151
+ clearSteamNetworkConnectionWebRTCFallbackTimer(): void;
149
152
  private startMatchmakingServer;
150
153
  private stopMatchmakingServer;
151
154
  private setupClientConnection;
@@ -29,6 +29,7 @@ export declare class SmartConnection extends Connection {
29
29
  private _steamNetworkTimeoutId;
30
30
  private _steamNetworkConnection;
31
31
  constructor(matchmakingInfo: IMatchmakingInfo, matchmakingIdentifier: string, config: RTCConfiguration, sendMatchmakingMessage: (message: MatchmakingMessageData) => void, onData: (data: ArrayBuffer) => void, onConnected: (matchmakingInfo: IMatchmakingInfo) => void, trySteamRelayNetwork: boolean, connectGlobalMatchmakingServer: () => void);
32
+ get isSteamNetworkConnection(): boolean;
32
33
  isConnected(): boolean;
33
34
  getState(): ConnectionState;
34
35
  setState(state: ConnectionState): void;
@@ -8,6 +8,6 @@
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
- export declare const gameVersionStage = "beta", gameVersionMajor = 2, gameVersionMinor = 11, gameVersionPatch = 1, gameVersionName = "Horizons";
11
+ export declare const gameVersionStage = "beta", gameVersionMajor = 2, gameVersionMinor = 11, gameVersionPatch = 2, gameVersionName = "Horizons";
12
12
  export declare const gameVersion: string;
13
13
  export declare function registerGlobals(globalObject: any): void;
@@ -8,13 +8,15 @@
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 ApplicationLogger from "./applicationLogger";
11
12
  export default class ChromeDriver {
12
13
  private readonly safeTestTile;
13
14
  private readonly appId;
15
+ private readonly logger;
14
16
  readonly port: number;
15
17
  private process;
16
18
  private exitHandler;
17
- constructor(safeTestTile: string, appId: string);
19
+ constructor(safeTestTile: string, appId: string, logger: ApplicationLogger);
18
20
  start(): Promise<void>;
19
21
  stop(): void;
20
22
  }
@@ -10,3 +10,4 @@
10
10
  */
11
11
  import { Random, SeededGenerator } from "../../game/utilities/random/Random";
12
12
  export declare function createRandom(): Random<SeededGenerator>;
13
+ export declare function getSeed(): number | undefined;
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.11.1-beta.dev.20220103.1",
4
+ "version": "2.11.2-beta.dev.20220106.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",