@wayward/types 2.11.2-beta.dev.20220104.1 → 2.11.2-beta.dev.20220107.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/doodad/Doodad.d.ts +1 -0
- package/definitions/game/game/entity/action/actions/SailToIsland.d.ts +4 -4
- package/definitions/game/game/island/Island.d.ts +8 -0
- package/definitions/game/game/tile/ITerrain.d.ts +2 -5
- package/definitions/game/multiplayer/networking/SmartConnection.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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.
|
|
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 =
|
|
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) = ~
|
|
65
|
-
* - 100% skill =
|
|
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
|
|
@@ -27,7 +27,7 @@ import type { ILeftOverTile } from "game/tile/Terrains";
|
|
|
27
27
|
import type TileEvent from "game/tile/TileEvent";
|
|
28
28
|
import type { ISerializedTranslation } from "language/ITranslation";
|
|
29
29
|
import type { IModdable } from "mod/ModRegistry";
|
|
30
|
-
import type { IRGB } from "utilities/Color";
|
|
30
|
+
import type { IColorFul, IRGB } from "utilities/Color";
|
|
31
31
|
import type { IVector3 } from "utilities/math/IVector";
|
|
32
32
|
export interface ITerrainDescription extends IModdable {
|
|
33
33
|
passable?: boolean;
|
|
@@ -201,16 +201,13 @@ export interface ITemplateDoodad {
|
|
|
201
201
|
type: DoodadType;
|
|
202
202
|
growingStages: GrowingStage[];
|
|
203
203
|
}
|
|
204
|
-
export interface IOverlayInfo {
|
|
204
|
+
export interface IOverlayInfo extends Partial<IColorFul> {
|
|
205
205
|
type: OverlayType;
|
|
206
206
|
size?: number;
|
|
207
207
|
offsetX?: number;
|
|
208
208
|
offsetY?: number;
|
|
209
209
|
spriteOffsetX?: number;
|
|
210
210
|
spriteOffsetY?: number;
|
|
211
|
-
red?: number;
|
|
212
|
-
green?: number;
|
|
213
|
-
blue?: number;
|
|
214
211
|
alpha?: number;
|
|
215
212
|
}
|
|
216
213
|
export declare enum OverlayType {
|
|
@@ -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;
|
package/package.json
CHANGED