@wayward/types 2.11.2-beta.dev.20220106.1 → 2.11.2-beta.dev.20220109.2
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.
|
@@ -228,7 +228,7 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
|
|
|
228
228
|
calculateTileLightLevel(tile: ITile, x: number, y: number, z: number): number;
|
|
229
229
|
getLightSourceAt(x: number, y: number, z: number): number;
|
|
230
230
|
fireBreath(x: number, y: number, z: number, facingDirection: Direction, itemName?: Translation, player?: boolean): void;
|
|
231
|
-
coolFires(requirements: IRequirementInfo): void;
|
|
231
|
+
coolFires(requirements: IRequirementInfo, human: Human): void;
|
|
232
232
|
isFlammable(x: number, y: number, z: number): boolean;
|
|
233
233
|
/**
|
|
234
234
|
* Converts shallow single bodies of fresh water into seawater.
|
|
@@ -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 {
|
|
@@ -17,7 +17,8 @@ import type Item from "game/item/Item";
|
|
|
17
17
|
import type { ITileContainer } from "game/tile/ITerrain";
|
|
18
18
|
import type TileEvent from "game/tile/TileEvent";
|
|
19
19
|
export declare enum FireStage {
|
|
20
|
-
|
|
20
|
+
Extinguished = 0,
|
|
21
|
+
Embers = 1,
|
|
21
22
|
AlmostExtinguished = 150,
|
|
22
23
|
Struggling = 300,
|
|
23
24
|
Thriving = 450,
|
package/package.json
CHANGED