@wayward/types 2.15.3-beta.dev.20260314.1 → 2.15.3-beta.dev.20260317.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/Human.d.ts +4 -3
- package/definitions/game/game/entity/IEntity.d.ts +1 -0
- package/definitions/game/game/entity/IHuman.d.ts +15 -2
- package/definitions/game/game/tile/ITileEvent.d.ts +1 -0
- package/definitions/game/utilities/trello/ITrello.d.ts +22 -0
- package/definitions/game/utilities/trello/Trello.d.ts +4 -7
- package/package.json +1 -1
|
@@ -408,6 +408,7 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
|
|
|
408
408
|
*/
|
|
409
409
|
stokeFire(stokeValue: number, human?: Human): boolean;
|
|
410
410
|
getDecayAtStartWithMagical(): number;
|
|
411
|
+
canCauseDamage(): boolean;
|
|
411
412
|
/**
|
|
412
413
|
* Decay over time
|
|
413
414
|
*/
|
|
@@ -17,7 +17,7 @@ import type Entity from "@wayward/game/game/entity/Entity";
|
|
|
17
17
|
import EntityWithStats from "@wayward/game/game/entity/EntityWithStats";
|
|
18
18
|
import type { IAttack, ICausesDamage, IEntityConstructorOptions, IMovingData, MoveFlag } from "@wayward/game/game/entity/IEntity";
|
|
19
19
|
import { AttackType, DamageType, IStatChangeInfo, StatusChangeReason } from "@wayward/game/game/entity/IEntity";
|
|
20
|
-
import type { HumanTag, ICheckUnderOptions as
|
|
20
|
+
import type { HumanTag, ICheckUnderOptions as ICheckInteractionOptions, ICrafted, ICustomizations, IHumanEvents, ILoadOnIslandOptions, IRestData, IVoyageInfo, WalkToChangeReason } from "@wayward/game/game/entity/IHuman";
|
|
21
21
|
import { EquipType, RestCancelReason } from "@wayward/game/game/entity/IHuman";
|
|
22
22
|
import { SkillType } from "@wayward/game/game/entity/skill/ISkills";
|
|
23
23
|
import type { IStat } from "@wayward/game/game/entity/IStats";
|
|
@@ -349,8 +349,9 @@ export default abstract class Human<DescriptionType = unknown, TypeType extends
|
|
|
349
349
|
getMovementIntent(): IMovementIntent;
|
|
350
350
|
updateMovementIntent(movementIntent: IMovementIntent): boolean;
|
|
351
351
|
protected onDie(): void;
|
|
352
|
-
checkUnder(inFacingDirection?: boolean, options?:
|
|
353
|
-
|
|
352
|
+
checkUnder(inFacingDirection?: boolean, options?: ICheckInteractionOptions): ICheckInteractionOptions;
|
|
353
|
+
doDoodadTileEventDamage(thing: Doodad | TileEvent, damageLocation: EquipType, onlyContinuousDamage?: boolean): void;
|
|
354
|
+
damageByInteractingWith(thing: Doodad | TileEvent, options: ICheckInteractionOptions | undefined, damageLocation: EquipType): ICheckInteractionOptions;
|
|
354
355
|
equip(item: Item, slot: EquipType, internal?: boolean, skipRevertItem?: boolean): boolean;
|
|
355
356
|
/**
|
|
356
357
|
* Unequips an item.
|
|
@@ -436,9 +436,22 @@ export interface ICrafted {
|
|
|
436
436
|
newUnlock: boolean;
|
|
437
437
|
}
|
|
438
438
|
export interface ICheckUnderOptions {
|
|
439
|
-
|
|
439
|
+
/**
|
|
440
|
+
* If true, the player will be damaged for doodads and tile events that continuously damage the player like acid, fire, etc.
|
|
441
|
+
*/
|
|
442
|
+
doContinousDamage?: boolean;
|
|
443
|
+
/**
|
|
444
|
+
* If true, the player will be damaged from static doodads that should just hurt "once" like cactus and will trample crops.
|
|
445
|
+
*/
|
|
446
|
+
doStaticDoodadsTileEvents?: boolean;
|
|
447
|
+
/**
|
|
448
|
+
* If true, the player will damage items on the ground via crushing.
|
|
449
|
+
*/
|
|
440
450
|
doItemCrushing?: boolean;
|
|
441
|
-
|
|
451
|
+
/**
|
|
452
|
+
* If true, the player will be damaged from lava, fires, etc.
|
|
453
|
+
*/
|
|
454
|
+
doBurnDamage?: boolean;
|
|
442
455
|
}
|
|
443
456
|
export declare const craftingChances: Descriptions<RecipeLevel, number>;
|
|
444
457
|
export interface IHumanOld extends Partial<Human> {
|
|
@@ -33,15 +33,25 @@ export interface ITrelloCard {
|
|
|
33
33
|
labels: ITrelloCardLabel[];
|
|
34
34
|
important: boolean;
|
|
35
35
|
desc?: string;
|
|
36
|
+
shortUrl?: string;
|
|
37
|
+
dateLastActivity?: string;
|
|
38
|
+
idMembers?: string[];
|
|
39
|
+
authors?: ITrelloMember[];
|
|
36
40
|
}
|
|
37
41
|
export interface ITrelloCardCover {
|
|
38
42
|
url: string;
|
|
43
|
+
sourceUrl?: string;
|
|
39
44
|
}
|
|
40
45
|
export interface ITrelloCardLabel {
|
|
41
46
|
id: string;
|
|
42
47
|
name: string;
|
|
43
48
|
color: string;
|
|
44
49
|
}
|
|
50
|
+
export interface ITrelloMember {
|
|
51
|
+
id: string;
|
|
52
|
+
fullName: string;
|
|
53
|
+
avatarUrl?: string;
|
|
54
|
+
}
|
|
45
55
|
export interface ITrelloChangelog {
|
|
46
56
|
version: IVersionInfo;
|
|
47
57
|
list: ITrelloList;
|
|
@@ -51,6 +61,18 @@ export interface IChangelog {
|
|
|
51
61
|
sections: Partial<Record<ChangeType, ITrelloCard[]>>;
|
|
52
62
|
changeCount: number;
|
|
53
63
|
}
|
|
64
|
+
export interface ISerializedVersionInfo extends Omit<IVersionInfo, "date"> {
|
|
65
|
+
date?: string;
|
|
66
|
+
strPretty?: string;
|
|
67
|
+
}
|
|
68
|
+
export interface ISerializedChangelog extends Omit<IChangelog, "version"> {
|
|
69
|
+
version: ISerializedVersionInfo;
|
|
70
|
+
}
|
|
71
|
+
export interface IGeneratedChangelog {
|
|
72
|
+
versions: ISerializedVersionInfo[];
|
|
73
|
+
changelogs: Record<string, ISerializedChangelog>;
|
|
74
|
+
generatedAt: string;
|
|
75
|
+
}
|
|
54
76
|
export declare enum ChangeType {
|
|
55
77
|
New = 0,
|
|
56
78
|
Improvement = 1,
|
|
@@ -9,15 +9,12 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import type { IVersionInfo } from "@wayward/utilities/Version";
|
|
12
|
-
import type { IChangelog, ITrello,
|
|
12
|
+
import type { IChangelog, ITrello, ITrelloCard } from "@wayward/game/utilities/trello/ITrello";
|
|
13
13
|
export default class Trello implements ITrello {
|
|
14
|
+
private generatedChangelog?;
|
|
14
15
|
getCard(id: string, ...fields: string[]): Promise<ITrelloCard>;
|
|
15
16
|
getChangelog(versionInfo: IVersionInfo): Promise<IChangelog | undefined>;
|
|
16
|
-
getVersions(maxVersion?: IVersionInfo
|
|
17
|
-
private
|
|
18
|
-
private getBoard;
|
|
19
|
-
private getListVersionInfo;
|
|
20
|
-
private findChangelogList;
|
|
21
|
-
private parseChangelog;
|
|
17
|
+
getVersions(maxVersion?: IVersionInfo): Promise<IVersionInfo[]>;
|
|
18
|
+
private getGeneratedChangelog;
|
|
22
19
|
}
|
|
23
20
|
export declare const trello: Trello;
|
package/package.json
CHANGED