@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.
@@ -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 ICheckUnderOptions, ICrafted, ICustomizations, IHumanEvents, ILoadOnIslandOptions, IRestData, IVoyageInfo, WalkToChangeReason } from "@wayward/game/game/entity/IHuman";
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?: ICheckUnderOptions): ICheckUnderOptions;
353
- damageByInteractingWith(thing: Doodad | TileEvent, options: ICheckUnderOptions | undefined, damageLocation: EquipType): ICheckUnderOptions;
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.
@@ -118,6 +118,7 @@ export interface ICausesStatus {
118
118
  }
119
119
  export interface ICausesDamage {
120
120
  damage?: number;
121
+ continuousDamage?: number;
121
122
  }
122
123
  export declare enum EntityType {
123
124
  Player = 0,
@@ -436,9 +436,22 @@ export interface ICrafted {
436
436
  newUnlock: boolean;
437
437
  }
438
438
  export interface ICheckUnderOptions {
439
- skipDoodadsAndTileEvents?: boolean;
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
- burned?: boolean;
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> {
@@ -32,6 +32,7 @@ export interface ITileEventDescription extends IObjectDescription, IModdable, IC
32
32
  lightSource?: boolean;
33
33
  lightColor?: IRGB;
34
34
  damage?: number;
35
+ continuousDamage?: number;
35
36
  durability?: number;
36
37
  isWaste?: boolean;
37
38
  renderBelowItems?: boolean;
@@ -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, ITrelloBoard, ITrelloCard } from "@wayward/game/utilities/trello/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, board?: ITrelloBoard): Promise<IVersionInfo[]>;
17
- private getCards;
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wayward/types",
3
3
  "description": "TypeScript declarations for Wayward, used for modding.",
4
- "version": "2.15.3-beta.dev.20260314.1",
4
+ "version": "2.15.3-beta.dev.20260317.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",