@paintswap/estfor-definitions 0.1.3 → 0.1.5
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.
- package/.eslintrc.json +28 -0
- package/.prettierrc +7 -0
- package/README.md +3 -3
- package/index.ts +4 -0
- package/package.json +11 -10
- package/src/lib/estforConstants.ts +739 -0
- package/src/lib/estforTypes.ts +180 -0
- package/tsconfig.json +4 -0
- package/dist/estforConstants.d.ts +0 -644
- package/dist/estforConstants.js +0 -706
- package/dist/estforTypes.d.ts +0 -127
- package/dist/estforTypes.js +0 -82
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -33
package/dist/estforTypes.d.ts
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
export declare enum BoostType {
|
|
2
|
-
NONE = 0,
|
|
3
|
-
ANY_XP = 1,
|
|
4
|
-
COMBAT_XP = 2,
|
|
5
|
-
NON_COMBAT_XP = 3,
|
|
6
|
-
GATHERING = 4,
|
|
7
|
-
ABSENCE = 5
|
|
8
|
-
}
|
|
9
|
-
export declare enum Skill {
|
|
10
|
-
NONE = 0,
|
|
11
|
-
COMBAT = 1,
|
|
12
|
-
ATTACK = 2,
|
|
13
|
-
RANGE = 3,
|
|
14
|
-
MAGIC = 4,
|
|
15
|
-
DEFENCE = 5,
|
|
16
|
-
HEALTH = 6,
|
|
17
|
-
MINING = 7,
|
|
18
|
-
WOODCUTTING = 8,
|
|
19
|
-
FISHING = 9,
|
|
20
|
-
SMITHING = 10,
|
|
21
|
-
THIEVING = 11,
|
|
22
|
-
CRAFTING = 12,
|
|
23
|
-
COOKING = 13,
|
|
24
|
-
FIREMAKING = 14
|
|
25
|
-
}
|
|
26
|
-
export declare enum EquipPosition {
|
|
27
|
-
NONE = 0,
|
|
28
|
-
HEAD = 1,
|
|
29
|
-
NECK = 2,
|
|
30
|
-
BODY = 3,
|
|
31
|
-
ARMS = 4,
|
|
32
|
-
LEGS = 5,
|
|
33
|
-
BOOTS = 6,
|
|
34
|
-
SPARE1 = 7,
|
|
35
|
-
SPARE2 = 8,
|
|
36
|
-
LEFT_HAND = 9,
|
|
37
|
-
RIGHT_HAND = 10,
|
|
38
|
-
BOTH_HANDS = 11,
|
|
39
|
-
ARROW_SATCHEL = 12,
|
|
40
|
-
MAGIC_BAG = 13,
|
|
41
|
-
FOOD = 14,
|
|
42
|
-
AUX = 15,
|
|
43
|
-
BOOST_VIAL = 16,
|
|
44
|
-
NO_POSITION = 17
|
|
45
|
-
}
|
|
46
|
-
export type Attire = {
|
|
47
|
-
helmet: number;
|
|
48
|
-
amulet: number;
|
|
49
|
-
armor: number;
|
|
50
|
-
gauntlets: number;
|
|
51
|
-
tassets: number;
|
|
52
|
-
boots: number;
|
|
53
|
-
ring: number;
|
|
54
|
-
reserved1: number;
|
|
55
|
-
queueId: number;
|
|
56
|
-
};
|
|
57
|
-
export type ActionInfo = {
|
|
58
|
-
skill: Skill;
|
|
59
|
-
isAvailable: boolean;
|
|
60
|
-
isDynamic: boolean;
|
|
61
|
-
actionChoiceRequired: boolean;
|
|
62
|
-
xpPerHour: number;
|
|
63
|
-
numSpawn: number;
|
|
64
|
-
minSkillPoints: number;
|
|
65
|
-
handItemTokenIdRangeMin: number;
|
|
66
|
-
handItemTokenIdRangeMax: number;
|
|
67
|
-
};
|
|
68
|
-
export type ActionReward = {
|
|
69
|
-
itemTokenId: number;
|
|
70
|
-
rate: number;
|
|
71
|
-
};
|
|
72
|
-
export type Action = {
|
|
73
|
-
info: ActionInfo;
|
|
74
|
-
guaranteedRewards: ActionReward[];
|
|
75
|
-
randomRewards: ActionReward[];
|
|
76
|
-
combatStats: CombatStats;
|
|
77
|
-
};
|
|
78
|
-
export type InputItem = {
|
|
79
|
-
combatStats: CombatStats;
|
|
80
|
-
nonCombatStats: NonCombatStat[];
|
|
81
|
-
tokenId: number;
|
|
82
|
-
equipPosition: EquipPosition;
|
|
83
|
-
isTransferable: boolean;
|
|
84
|
-
skill: Skill;
|
|
85
|
-
minSkillPoints: number;
|
|
86
|
-
healthRestored: number;
|
|
87
|
-
boostType: BoostType;
|
|
88
|
-
boostValue: number;
|
|
89
|
-
boostDuration: number;
|
|
90
|
-
metadataURI: string;
|
|
91
|
-
};
|
|
92
|
-
export type CombatStats = {
|
|
93
|
-
melee: number;
|
|
94
|
-
magic: number;
|
|
95
|
-
range: number;
|
|
96
|
-
meleeDefence: number;
|
|
97
|
-
magicDefence: number;
|
|
98
|
-
rangeDefence: number;
|
|
99
|
-
health: number;
|
|
100
|
-
};
|
|
101
|
-
export type NonCombatStat = {
|
|
102
|
-
skill: Skill;
|
|
103
|
-
diff: number;
|
|
104
|
-
};
|
|
105
|
-
export declare const emptyStats: CombatStats;
|
|
106
|
-
export declare const defaultInputItem: {
|
|
107
|
-
combatStats: CombatStats;
|
|
108
|
-
nonCombatStats: any[];
|
|
109
|
-
isTransferable: boolean;
|
|
110
|
-
skill: Skill;
|
|
111
|
-
minSkillPoints: number;
|
|
112
|
-
healthRestored: number;
|
|
113
|
-
boostType: BoostType;
|
|
114
|
-
boostValue: number;
|
|
115
|
-
boostDuration: number;
|
|
116
|
-
};
|
|
117
|
-
export declare const noAttire: {
|
|
118
|
-
helmet: number;
|
|
119
|
-
amulet: number;
|
|
120
|
-
armor: number;
|
|
121
|
-
gauntlets: number;
|
|
122
|
-
tassets: number;
|
|
123
|
-
boots: number;
|
|
124
|
-
ring: number;
|
|
125
|
-
reserved1: number;
|
|
126
|
-
queueId: number;
|
|
127
|
-
};
|
package/dist/estforTypes.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.noAttire = exports.defaultInputItem = exports.emptyStats = exports.EquipPosition = exports.Skill = exports.BoostType = void 0;
|
|
4
|
-
var BoostType;
|
|
5
|
-
(function (BoostType) {
|
|
6
|
-
BoostType[BoostType["NONE"] = 0] = "NONE";
|
|
7
|
-
BoostType[BoostType["ANY_XP"] = 1] = "ANY_XP";
|
|
8
|
-
BoostType[BoostType["COMBAT_XP"] = 2] = "COMBAT_XP";
|
|
9
|
-
BoostType[BoostType["NON_COMBAT_XP"] = 3] = "NON_COMBAT_XP";
|
|
10
|
-
BoostType[BoostType["GATHERING"] = 4] = "GATHERING";
|
|
11
|
-
BoostType[BoostType["ABSENCE"] = 5] = "ABSENCE";
|
|
12
|
-
})(BoostType = exports.BoostType || (exports.BoostType = {}));
|
|
13
|
-
var Skill;
|
|
14
|
-
(function (Skill) {
|
|
15
|
-
Skill[Skill["NONE"] = 0] = "NONE";
|
|
16
|
-
Skill[Skill["COMBAT"] = 1] = "COMBAT";
|
|
17
|
-
Skill[Skill["ATTACK"] = 2] = "ATTACK";
|
|
18
|
-
Skill[Skill["RANGE"] = 3] = "RANGE";
|
|
19
|
-
Skill[Skill["MAGIC"] = 4] = "MAGIC";
|
|
20
|
-
Skill[Skill["DEFENCE"] = 5] = "DEFENCE";
|
|
21
|
-
Skill[Skill["HEALTH"] = 6] = "HEALTH";
|
|
22
|
-
Skill[Skill["MINING"] = 7] = "MINING";
|
|
23
|
-
Skill[Skill["WOODCUTTING"] = 8] = "WOODCUTTING";
|
|
24
|
-
Skill[Skill["FISHING"] = 9] = "FISHING";
|
|
25
|
-
Skill[Skill["SMITHING"] = 10] = "SMITHING";
|
|
26
|
-
Skill[Skill["THIEVING"] = 11] = "THIEVING";
|
|
27
|
-
Skill[Skill["CRAFTING"] = 12] = "CRAFTING";
|
|
28
|
-
Skill[Skill["COOKING"] = 13] = "COOKING";
|
|
29
|
-
Skill[Skill["FIREMAKING"] = 14] = "FIREMAKING";
|
|
30
|
-
})(Skill = exports.Skill || (exports.Skill = {}));
|
|
31
|
-
var EquipPosition;
|
|
32
|
-
(function (EquipPosition) {
|
|
33
|
-
EquipPosition[EquipPosition["NONE"] = 0] = "NONE";
|
|
34
|
-
EquipPosition[EquipPosition["HEAD"] = 1] = "HEAD";
|
|
35
|
-
EquipPosition[EquipPosition["NECK"] = 2] = "NECK";
|
|
36
|
-
EquipPosition[EquipPosition["BODY"] = 3] = "BODY";
|
|
37
|
-
EquipPosition[EquipPosition["ARMS"] = 4] = "ARMS";
|
|
38
|
-
EquipPosition[EquipPosition["LEGS"] = 5] = "LEGS";
|
|
39
|
-
EquipPosition[EquipPosition["BOOTS"] = 6] = "BOOTS";
|
|
40
|
-
EquipPosition[EquipPosition["SPARE1"] = 7] = "SPARE1";
|
|
41
|
-
EquipPosition[EquipPosition["SPARE2"] = 8] = "SPARE2";
|
|
42
|
-
EquipPosition[EquipPosition["LEFT_HAND"] = 9] = "LEFT_HAND";
|
|
43
|
-
EquipPosition[EquipPosition["RIGHT_HAND"] = 10] = "RIGHT_HAND";
|
|
44
|
-
EquipPosition[EquipPosition["BOTH_HANDS"] = 11] = "BOTH_HANDS";
|
|
45
|
-
EquipPosition[EquipPosition["ARROW_SATCHEL"] = 12] = "ARROW_SATCHEL";
|
|
46
|
-
EquipPosition[EquipPosition["MAGIC_BAG"] = 13] = "MAGIC_BAG";
|
|
47
|
-
EquipPosition[EquipPosition["FOOD"] = 14] = "FOOD";
|
|
48
|
-
EquipPosition[EquipPosition["AUX"] = 15] = "AUX";
|
|
49
|
-
EquipPosition[EquipPosition["BOOST_VIAL"] = 16] = "BOOST_VIAL";
|
|
50
|
-
EquipPosition[EquipPosition["NO_POSITION"] = 17] = "NO_POSITION";
|
|
51
|
-
})(EquipPosition = exports.EquipPosition || (exports.EquipPosition = {}));
|
|
52
|
-
exports.emptyStats = {
|
|
53
|
-
melee: 0,
|
|
54
|
-
magic: 0,
|
|
55
|
-
range: 0,
|
|
56
|
-
meleeDefence: 0,
|
|
57
|
-
magicDefence: 0,
|
|
58
|
-
rangeDefence: 0,
|
|
59
|
-
health: 0,
|
|
60
|
-
};
|
|
61
|
-
exports.defaultInputItem = {
|
|
62
|
-
combatStats: exports.emptyStats,
|
|
63
|
-
nonCombatStats: [],
|
|
64
|
-
isTransferable: true,
|
|
65
|
-
skill: Skill.NONE,
|
|
66
|
-
minSkillPoints: 0,
|
|
67
|
-
healthRestored: 0,
|
|
68
|
-
boostType: BoostType.NONE,
|
|
69
|
-
boostValue: 0,
|
|
70
|
-
boostDuration: 0,
|
|
71
|
-
};
|
|
72
|
-
exports.noAttire = {
|
|
73
|
-
helmet: 0,
|
|
74
|
-
amulet: 0,
|
|
75
|
-
armor: 0,
|
|
76
|
-
gauntlets: 0,
|
|
77
|
-
tassets: 0,
|
|
78
|
-
boots: 0,
|
|
79
|
-
ring: 0,
|
|
80
|
-
reserved1: 0,
|
|
81
|
-
queueId: 0, // Doesn't matter
|
|
82
|
-
};
|
package/dist/index.d.ts
DELETED
package/dist/index.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.EstforConstants = exports.EstforTypes = exports.NONE = void 0;
|
|
30
|
-
var estforConstants_1 = require("./estforConstants");
|
|
31
|
-
Object.defineProperty(exports, "NONE", { enumerable: true, get: function () { return __importDefault(estforConstants_1).default; } });
|
|
32
|
-
exports.EstforTypes = __importStar(require("./estforTypes"));
|
|
33
|
-
exports.EstforConstants = __importStar(require("./estforConstants"));
|