@wayward/types 2.14.0-beta.dev.20240323.1 → 2.14.0-beta.dev.20240325.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.
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type Human from "@wayward/game/game/entity/Human";
|
|
2
|
+
import { SkillType } from "@wayward/game/game/entity/IHuman";
|
|
3
|
+
export declare enum CurseComponent {
|
|
4
|
+
Skill = 0,
|
|
5
|
+
HighestAttack = 1,
|
|
6
|
+
HighestDefense = 2,
|
|
7
|
+
CumulativeEvilCrafting = 3,
|
|
8
|
+
Equipment = 4
|
|
9
|
+
}
|
|
10
|
+
export declare const CURSE_WEIGHTS: Record<CurseComponent, number>;
|
|
11
|
+
export declare const CURSE_ATTACK_MAX = 50;
|
|
12
|
+
export declare const CURSE_DEFENSE_MAX = 100;
|
|
13
|
+
export declare const CURSE_CRAFTING_MAX = 100;
|
|
14
|
+
export declare const CURSE_SKILL_MAX = 100;
|
|
15
|
+
export declare const CURSE_COMPONENTS: Record<CurseComponent, (human: Human) => number>;
|
|
16
|
+
/**
|
|
17
|
+
* Gets the highest value of either current or max skill multiplied by the "evilness" of each skill (from rune chance)
|
|
18
|
+
* (Basically, high values in any of the evil-er skills make curse go brrrr)
|
|
19
|
+
*/
|
|
20
|
+
declare function getSkillValue(human: Human): {
|
|
21
|
+
value: number;
|
|
22
|
+
skill: SkillType;
|
|
23
|
+
};
|
|
24
|
+
declare namespace Curse {
|
|
25
|
+
const getSkill: typeof getSkillValue;
|
|
26
|
+
function getValue(human: Human): number;
|
|
27
|
+
}
|
|
28
|
+
export default Curse;
|
|
@@ -118,6 +118,9 @@ export default abstract class Human<TypeType extends number = number, EntityRefe
|
|
|
118
118
|
quests: IQuestManager;
|
|
119
119
|
messages: IMessageManager;
|
|
120
120
|
notes: INoteManager;
|
|
121
|
+
highestAttack?: number;
|
|
122
|
+
highestDefense?: number;
|
|
123
|
+
cumulativeEvilCrafting: number;
|
|
121
124
|
/** @deprecated (use the entity itself) */
|
|
122
125
|
readonly inventory: IContainer;
|
|
123
126
|
private readonly privateStore;
|
|
@@ -215,6 +218,7 @@ export default abstract class Human<TypeType extends number = number, EntityRefe
|
|
|
215
218
|
isDualWielding(): boolean;
|
|
216
219
|
getAttack(attack?: AttackType, weapon?: Item): IAttack;
|
|
217
220
|
getSimplifiedCumulativeAttack(): number;
|
|
221
|
+
getSimplifiedCumulativeDefense(): number;
|
|
218
222
|
getCombatStrength(): number;
|
|
219
223
|
private getAttackType;
|
|
220
224
|
private getAttackSkillBonus;
|
|
@@ -230,6 +234,7 @@ export default abstract class Human<TypeType extends number = number, EntityRefe
|
|
|
230
234
|
getEquippedItem(slot: EquipType, includeDisabled?: true): Item | undefined;
|
|
231
235
|
isOffHandDisabled(): boolean;
|
|
232
236
|
getEquipSlotForItem(item: Item, includeDisabled?: true): EquipType | undefined;
|
|
237
|
+
getCurse(): number;
|
|
233
238
|
canSeePosition(type: CanASeeBType, islandId: IslandId, x: number, y: number, z: number, fieldOfView?: FieldOfView, customRadius?: number): boolean;
|
|
234
239
|
/**
|
|
235
240
|
* Gets the max health of the player.
|
package/package.json
CHANGED