@wayward/types 2.14.4-beta.dev.20250421.1 → 2.14.4-beta.dev.20250422.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.
Files changed (25) hide show
  1. package/definitions/game/game/doodad/Doodad.d.ts +7 -2
  2. package/definitions/game/game/doodad/IDoodad.d.ts +24 -0
  3. package/definitions/game/game/entity/Entity.d.ts +1 -0
  4. package/definitions/game/game/entity/Human.d.ts +1 -0
  5. package/definitions/game/game/inspection/infoProviders/doodad/DoodadScareRadius.d.ts +20 -0
  6. package/definitions/game/game/inspection/infoProviders/item/use/ItemBuildInfo.d.ts +3 -0
  7. package/definitions/game/game/item/Item.d.ts +6 -1
  8. package/definitions/game/game/magic/MagicalPropertyType.d.ts +2 -1
  9. package/definitions/game/language/dictionary/UiTranslation.d.ts +770 -769
  10. package/definitions/game/save/upgrade/UpgradeVersion.d.ts +13 -2
  11. package/definitions/game/save/upgrade/versions/beta2.14.0/_beta.2.14.0-dev20240828.d.ts +1 -1
  12. package/definitions/game/save/upgrade/versions/beta2.14.0/beta2.14.0-dev00000001.d.ts +1 -1
  13. package/definitions/game/save/upgrade/versions/beta2.14.0/beta2.14.0-dev00000002.d.ts +1 -1
  14. package/definitions/game/save/upgrade/versions/beta2.14.0/beta2.14.0-dev20240827.d.ts +1 -1
  15. package/definitions/game/save/upgrade/versions/beta2.14.0/beta2.14.0-dev20240828.d.ts +1 -1
  16. package/definitions/game/save/upgrade/versions/beta2.14.0/beta2.14.0-dev20240829.d.ts +1 -1
  17. package/definitions/game/save/upgrade/versions/beta2.14.0/beta2.14.0-dev20240901.d.ts +1 -1
  18. package/definitions/game/save/upgrade/versions/beta2.14.0/beta2.14.0-dev20240905.d.ts +1 -1
  19. package/definitions/game/save/upgrade/versions/beta2.14.0/beta2.14.0-dev20241024.d.ts +1 -1
  20. package/definitions/game/save/upgrade/versions/beta2.14.0/beta2.14.0-dev20241129.d.ts +1 -1
  21. package/definitions/game/save/upgrade/versions/beta2.14.3/beta2.14.3-dev20241223.d.ts +1 -1
  22. package/definitions/game/save/upgrade/versions/beta2.14.4/beta.2.14.4-dev20250422.d.ts +12 -0
  23. package/definitions/game/save/upgrade/versions/beta2.14.4/beta2.14.4-dev20241231.d.ts +1 -1
  24. package/definitions/game/save/upgrade/versions/beta2.14.4/beta2.14.4-dev20250220.d.ts +1 -1
  25. package/package.json +1 -1
@@ -11,7 +11,7 @@
11
11
  import { TileUpdateType } from "@wayward/game/game/IGame";
12
12
  import type { IHasQuality, IObject, IQualityEvents } from "@wayward/game/game/IObject";
13
13
  import { Quality } from "@wayward/game/game/IObject";
14
- import type { DisplayableDoodadType, DoodadTypeExtra, DoorOrientation, IDoodadDescription, IDoodadOptions, IHasBuilder, IHasWater } from "@wayward/game/game/doodad/IDoodad";
14
+ import type { DisplayableDoodadType, DoodadTypeExtra, DoorOrientation, IDoodadDescription, IDoodadGetNameOptions, IDoodadOptions, IHasBuilder, IHasWater } from "@wayward/game/game/doodad/IDoodad";
15
15
  import { DoodadTag, DoodadType, DoodadTypeGroup, GrowingStage } from "@wayward/game/game/doodad/IDoodad";
16
16
  import type { IEntityMovableEvents } from "@wayward/game/game/entity/EntityMovable";
17
17
  import EntityMovable from "@wayward/game/game/entity/EntityMovable";
@@ -170,7 +170,7 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
170
170
  * - `doodad.getName(Article.None)` // "stone furnace"
171
171
  * - `doodad.getName(Article.None, 3)` // "stone furnaces"
172
172
  */
173
- getName(article?: Article, count?: number): TranslationImpl;
173
+ getName(article?: Article, options?: Partial<IDoodadGetNameOptions>): TranslationImpl;
174
174
  protected getDescription(): IDoodadDescription | undefined;
175
175
  protected updateTileWhenMoving(fromTile: Tile, toTile: Tile): boolean;
176
176
  changeType(doodadType: DoodadType): void;
@@ -375,6 +375,11 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
375
375
  * @returns number of score (or 0 if no civilization score is set).
376
376
  */
377
377
  getCivilizationScore(excludeMagic?: boolean): number;
378
+ /**
379
+ * Gets the scarecrow radius based on quality.
380
+ * This also exists on items.
381
+ */
382
+ getScareRadius(): number;
378
383
  /**
379
384
  * Gets a set of skill types and values from doodads that have "containedItemGroupProvidesSkill" set for items that provide adjacent skill bonuses.
380
385
  * @returns Map of skill type and number (skill value).
@@ -242,6 +242,10 @@ export interface IDoodadDescription extends IObjectDescription, IModdable, ICaus
242
242
  * The amount of turns it takes to purify the water.
243
243
  */
244
244
  waterPurificationTurns?: number;
245
+ /**
246
+ * Radius around scarecrow that will attempt to scare away creatures based on `chanceOfScarecrowScare` property in `creatureDescriptions`.
247
+ */
248
+ scareRadius?: number;
245
249
  }
246
250
  export interface IItemStackRegion {
247
251
  xMin: number;
@@ -541,4 +545,24 @@ export interface IHasWater {
541
545
  top?: true;
542
546
  bottom?: true;
543
547
  }
548
+ export interface IDoodadGetNameOptions {
549
+ count: number;
550
+ showCount: boolean;
551
+ /**
552
+ * Defaults to true
553
+ */
554
+ showQuality: boolean;
555
+ /**
556
+ * Defaults to true
557
+ */
558
+ showRenamedQuotes: boolean;
559
+ /**
560
+ * Defaults to true
561
+ */
562
+ showMagicalType: boolean;
563
+ /**
564
+ * Ignore discovery system when computing the name
565
+ */
566
+ ignoreDiscovery: boolean;
567
+ }
544
568
  export {};
@@ -49,6 +49,7 @@ export default abstract class Entity<DescriptionType = unknown, TypeType extends
49
49
  historicalActions?: PartialRecord<ActionType, number>;
50
50
  referenceId?: number;
51
51
  renamed?: string | ISerializedTranslation;
52
+ aestheticRandom: number;
52
53
  x: number;
53
54
  y: number;
54
55
  z: WorldZ;
@@ -189,6 +189,7 @@ export default abstract class Human<DescriptionType = unknown, TypeType extends
189
189
  * Luck is a multiplier applied to some random chance calculations.
190
190
  */
191
191
  get luck(): number;
192
+ protected get debug(): any;
192
193
  updateDirection(tile: Tile | Direction.Cardinal, updateVehicleDirection?: boolean): Direction.Cardinal;
193
194
  protected onMovementCompleted(movingData: IMovingData): void;
194
195
  moveTowardsIsland(direction: Direction.Cardinal | Direction.None, options?: Partial<IMoveToIslandOptions>): Promise<void>;
@@ -0,0 +1,20 @@
1
+ /*!
2
+ * Copyright 2011-2024 Unlok
3
+ * https://www.unlok.ca
4
+ *
5
+ * Credits & Thanks:
6
+ * https://www.unlok.ca/credits-thanks/
7
+ *
8
+ * Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
9
+ * https://github.com/WaywardGame/types/wiki
10
+ */
11
+ import type Doodad from "@wayward/game/game/doodad/Doodad";
12
+ import { InfoProvider } from "@wayward/game/game/inspection/InfoProvider";
13
+ import LabelledValue from "@wayward/game/game/inspection/infoProviders/LabelledValue";
14
+ export default class DoodadScareRadius extends InfoProvider {
15
+ private readonly doodad;
16
+ static get(doodad: Doodad): DoodadScareRadius | undefined;
17
+ constructor(doodad: Doodad);
18
+ getClass(): string[];
19
+ get(): LabelledValue | never[];
20
+ }
@@ -18,6 +18,7 @@ import { TempType } from "@wayward/game/game/temperature/ITemperature";
18
18
  declare const _default: UseInfo<{
19
19
  doodadContainer: import("../../../../doodad/IDoodad").IDoodadDescription | undefined;
20
20
  civilizationScore: number | undefined;
21
+ scareRadius: number;
21
22
  entityType: import("../../../../entity/IEntity").EntityType.Item;
22
23
  value?: Item | undefined;
23
24
  type: import("../../../../item/IItem").ItemType;
@@ -38,6 +39,8 @@ declare const _default: UseInfo<{
38
39
  getPreservationChance: () => LabelledValue | undefined;
39
40
  } & {
40
41
  getCivilizationScore: () => LabelledValue | undefined;
42
+ } & {
43
+ scareRadius: () => LabelledValue | undefined;
41
44
  } & {
42
45
  getMagicalBuildTypes: () => Set<MagicalPropertyType>;
43
46
  } & {
@@ -451,11 +451,16 @@ export default class Item extends EntityMovable<IItemDescription, ItemType, Refe
451
451
  willBreakOnDamage(actionType?: ActionType): boolean;
452
452
  onUnserialized(): void;
453
453
  /**
454
- * Gets civilization score based on item's quality and type (if it can be build/set down) but without the magical property values.
454
+ * Gets civilization score based on item's quality and type (if it can be build/set down) but without the magical property values. This also exists on doodads.
455
455
  * @param actionType Either Build or SetDown as they are the only types that can use civilization score.
456
456
  * @returns number of score (or 0 if no civilization score is set).
457
457
  */
458
458
  getCivilizationScore(actionType: ActionType.Build | ActionType.SetDown): number;
459
+ /**
460
+ * Gets the scarecrow radius based on doodad's definition and quality.
461
+ * This also exists on doodads.
462
+ */
463
+ getScareRadius(): number;
459
464
  getVehicle(): IItemVehicle | undefined;
460
465
  addCreature(creature: Creature, remainTamed?: boolean): void;
461
466
  /**
@@ -33,7 +33,8 @@ declare enum MagicalPropertyType {
33
33
  Skill = 6,
34
34
  /** Improves invoking and sacrifice chances */
35
35
  Fanaticism_Deity = 7,
36
- Unused = 8,// TODO: Remove this on 1.0 or if you put a different property in this position update Milestones.ts
36
+ /** Increased the scare radius of the scarecrow */
37
+ Terror_ScareRadius = 8,
37
38
  /** Increases the range in which a weapon can shoot a projectile or fishing pole/net can be thrown */
38
39
  Range = 9,
39
40
  /** Increases the stats normally gained when consuming/using an item */