@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 {
|
|
@@ -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