@wayward/types 2.11.2-beta.dev.20220105.1 → 2.11.2-beta.dev.20220108.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.
|
|
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;
|
|
@@ -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 {
|
package/package.json
CHANGED