@wayward/types 2.13.0-beta.dev.20230428.1 → 2.13.0-beta.dev.20230428.2
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.
|
@@ -12,11 +12,12 @@ import { Action } from "game/entity/action/Action";
|
|
|
12
12
|
import type { IActionUsable } from "game/entity/action/IAction";
|
|
13
13
|
import { ActionArgument } from "game/entity/action/IAction";
|
|
14
14
|
import type Creature from "game/entity/creature/Creature";
|
|
15
|
+
import type { ICreatureDescription } from "game/entity/creature/ICreature";
|
|
15
16
|
import type Human from "game/entity/Human";
|
|
16
17
|
import { AiType } from "game/entity/IEntity";
|
|
17
18
|
export interface ISetCreatureAiCanUse extends IActionUsable {
|
|
18
19
|
creature: Creature;
|
|
19
20
|
}
|
|
20
|
-
export declare function hasSkillToSetCreatureAi(human: Human, ai: AiType): boolean;
|
|
21
|
+
export declare function hasSkillToSetCreatureAi(human: Human, creatureDescription: ICreatureDescription | undefined, ai: AiType): boolean;
|
|
21
22
|
declare const _default: Action<[ActionArgument.Integer32], Human<number>, void, ISetCreatureAiCanUse, [number]>;
|
|
22
23
|
export default _default;
|
|
@@ -157,6 +157,10 @@ export interface ICreatureDescription extends IModdable, ITemperatureDescription
|
|
|
157
157
|
* Prevents the creature from spawning for the provided WorldZ's
|
|
158
158
|
*/
|
|
159
159
|
preventSpawnZs?: Set<WorldZ>;
|
|
160
|
+
/**
|
|
161
|
+
* Prevents release the creature from its tamed state
|
|
162
|
+
*/
|
|
163
|
+
preventRelease?: boolean;
|
|
160
164
|
fishable?: boolean;
|
|
161
165
|
blood?: IRGB;
|
|
162
166
|
aberrantBlood?: IRGB;
|
|
@@ -249,6 +253,10 @@ export interface ICreatureDescription extends IModdable, ITemperatureDescription
|
|
|
249
253
|
* If set, creature will only listen to certain commands.
|
|
250
254
|
*/
|
|
251
255
|
allowedCommands?: AiType[];
|
|
256
|
+
/**
|
|
257
|
+
* When true, the player will always be able to command the creature, regardless of their taming skill.
|
|
258
|
+
*/
|
|
259
|
+
alwaysAllowCommands?: boolean;
|
|
252
260
|
/**
|
|
253
261
|
* Called when a stat changes
|
|
254
262
|
*/
|
package/package.json
CHANGED