@wayward/types 2.14.0-beta.dev.20240325.1 → 2.14.0-beta.dev.20240326.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.
@@ -1,3 +1,13 @@
1
+ /*!
2
+ * Copyright 2011-2023 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
+ */
1
11
  import type Human from "@wayward/game/game/entity/Human";
2
12
  import { SkillType } from "@wayward/game/game/entity/IHuman";
3
13
  export declare enum CurseComponent {
@@ -54,7 +54,8 @@ export declare enum Stat {
54
54
  Happiness = 14,
55
55
  Tamed = 15,
56
56
  Petting = 16,
57
- Waste = 17
57
+ Waste = 17,
58
+ Petted = 18
58
59
  }
59
60
  export type IStats = {
60
61
  [key in keyof typeof Stat]: IStat;
@@ -94,6 +94,10 @@ export default class Creature extends EntityWithStats<ICreatureDescription, Crea
94
94
  private setOwner;
95
95
  tame(human: Human, bonus?: number): boolean;
96
96
  increaseTamedCount(): void;
97
+ /**
98
+ * Increases the number of times the creature has been petted.
99
+ */
100
+ increasePettedCount(): void;
97
101
  release(remainTamed?: boolean): boolean;
98
102
  unhitch(): void;
99
103
  animateSpawn(): void;
@@ -163,6 +167,11 @@ export default class Creature extends EntityWithStats<ICreatureDescription, Crea
163
167
  * @returns number if the creature has been tamed (0 if it has never been tamed).
164
168
  */
165
169
  get timesTamed(): number;
170
+ /**
171
+ * Returns the times a creature has been petted.
172
+ * @returns number if the creature has been petted (0 if it has never been petted).
173
+ */
174
+ get timesPetted(): number;
166
175
  private findHumansWithinRadius;
167
176
  private shouldSpecialAttack;
168
177
  private specialAttack;
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.14.0-beta.dev.20240325.1",
4
+ "version": "2.14.0-beta.dev.20240326.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",