@malib/gear 0.0.1 → 0.1.0
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/index.cjs +2 -2
- package/index.d.ts +3 -1
- package/index.js +412 -816
- package/lib/gear.d.ts +26 -57
- package/lib/gearoption.d.ts +19 -0
- package/lib/gearproptype.d.ts +80 -105
- package/lib/gearreq.d.ts +19 -0
- package/lib/logic/enhancement.d.ts +10 -10
- package/lib/logic/scroll.d.ts +8 -2
- package/lib/logic/soul.d.ts +41 -0
- package/lib/logic/upgrade.d.ts +12 -11
- package/lib/potentialgrade.d.ts +18 -0
- package/lib/soul.d.ts +18 -261
- package/package.json +1 -1
- package/lib/soultype.d.ts +0 -22
package/lib/gear.d.ts
CHANGED
|
@@ -1,46 +1,10 @@
|
|
|
1
|
+
import { GearOption } from "./gearoption";
|
|
1
2
|
import { GearPropType } from "./gearproptype";
|
|
3
|
+
import { GearReq } from "./gearreq";
|
|
2
4
|
import { GearType } from "./geartype";
|
|
3
5
|
import { Potential } from "./potential";
|
|
4
6
|
import { PotentialGrade } from "./potentialgrade";
|
|
5
|
-
import {
|
|
6
|
-
/**
|
|
7
|
-
* 장비 착용 제한
|
|
8
|
-
*/
|
|
9
|
-
export declare class GearReq {
|
|
10
|
-
/** 착용 가능 레벨 */
|
|
11
|
-
level: number;
|
|
12
|
-
/** REQ STR */
|
|
13
|
-
str: number;
|
|
14
|
-
/** REQ LUK */
|
|
15
|
-
luk: number;
|
|
16
|
-
/** REQ DEX */
|
|
17
|
-
dex: number;
|
|
18
|
-
/** REQ INT */
|
|
19
|
-
int: number;
|
|
20
|
-
/** 착용 가능 직업 분류 */
|
|
21
|
-
job: number;
|
|
22
|
-
/** 착용 가능 직업 */
|
|
23
|
-
specJob: number;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* 장비 옵션
|
|
27
|
-
*/
|
|
28
|
-
export declare class GearOption {
|
|
29
|
-
/** 기본 수치 */
|
|
30
|
-
base: number;
|
|
31
|
-
/** 추가옵션 수치 */
|
|
32
|
-
bonus: number;
|
|
33
|
-
/** 주문서 강화 수치 */
|
|
34
|
-
upgrade: number;
|
|
35
|
-
/** 장비 강화 수치 */
|
|
36
|
-
enchant: number;
|
|
37
|
-
/** 모든 수치가 0일 경우 `true`; 아닐 경우 `false` */
|
|
38
|
-
get empty(): boolean;
|
|
39
|
-
/** 모든 수치의 합; 합이 음수일 경우 `0` */
|
|
40
|
-
get sum(): number;
|
|
41
|
-
/** 기본 수치 대비 변화량 */
|
|
42
|
-
get diff(): number;
|
|
43
|
-
}
|
|
7
|
+
import { SoulSlot } from "./soul";
|
|
44
8
|
/**
|
|
45
9
|
* 장비
|
|
46
10
|
*/
|
|
@@ -61,14 +25,18 @@ export declare class Gear {
|
|
|
61
25
|
req: GearReq;
|
|
62
26
|
/** 장비 속성 */
|
|
63
27
|
props: Map<GearPropType, number>;
|
|
64
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* 장비 옵션
|
|
30
|
+
*
|
|
31
|
+
* 접근할 때는 `options` 대신 `option`을 사용하는 것이 권장됩니다.
|
|
32
|
+
*/
|
|
65
33
|
options: Map<GearPropType, GearOption>;
|
|
66
34
|
/** 최대 업그레이드 가능 횟수 */
|
|
67
35
|
totalUpgradeCount: number;
|
|
68
36
|
/** 업그레이드 횟수 */
|
|
69
37
|
upgradeCount: number;
|
|
70
38
|
/** 복구 가능 횟수 */
|
|
71
|
-
|
|
39
|
+
upgradeFailCount: number;
|
|
72
40
|
/** 황금망치 횟수 */
|
|
73
41
|
hammerCount: number;
|
|
74
42
|
/** 최대 장비 강화 수치 */
|
|
@@ -88,7 +56,16 @@ export declare class Gear {
|
|
|
88
56
|
/** 에디셔널 잠재옵션 목록 */
|
|
89
57
|
additionalPotentials: Potential[];
|
|
90
58
|
/** 소울 */
|
|
91
|
-
|
|
59
|
+
soulSlot: SoulSlot;
|
|
60
|
+
/**
|
|
61
|
+
* 업그레이드 가능 횟수
|
|
62
|
+
*/
|
|
63
|
+
get upgradeCountLeft(): number;
|
|
64
|
+
/**
|
|
65
|
+
* 현재 옵션과 기본 옵션의 차이를 가중치를 포함하여 계산합니다.
|
|
66
|
+
* @returns 가중치가 적용된 옵션 차이의 합
|
|
67
|
+
*/
|
|
68
|
+
get diff(): number;
|
|
92
69
|
/**
|
|
93
70
|
* 장비 옵션을 반환합니다. 존재하지 않는 옵션은 장비에 추가됩니다.
|
|
94
71
|
* @param type 장비 옵션 종류
|
|
@@ -107,21 +84,6 @@ export declare class Gear {
|
|
|
107
84
|
* @returns 속성이 존재하고 값이 `0` 이상일 경우 `true`; 아닐 경우 `false`
|
|
108
85
|
*/
|
|
109
86
|
getBooleanValue(type: GearPropType): boolean;
|
|
110
|
-
/**
|
|
111
|
-
* 장비의 최대 강화 수치를 계산합니다.
|
|
112
|
-
* @returns 최대 장비 강화 수치
|
|
113
|
-
*/
|
|
114
|
-
getMaxStar(): number;
|
|
115
|
-
private static readonly starData;
|
|
116
|
-
/**
|
|
117
|
-
* 현재 옵션과 기본 옵션의 차이를 가중치를 포함하여 계산합니다.
|
|
118
|
-
* @returns 가중치가 적용된 옵션 차이의 합
|
|
119
|
-
*/
|
|
120
|
-
get diff(): number;
|
|
121
|
-
/**
|
|
122
|
-
* 업그레이드 가능 횟수
|
|
123
|
-
*/
|
|
124
|
-
get upgradeLeft(): number;
|
|
125
87
|
/**
|
|
126
88
|
* 장비가 주무기인지 여부를 나타내는 `boolean`값을 반환합니다. 블레이드(katara)는 포함되지 않습니다.
|
|
127
89
|
* @param type 장비 분류
|
|
@@ -184,5 +146,12 @@ export declare class Gear {
|
|
|
184
146
|
*/
|
|
185
147
|
static getGearType(gearID: number): GearType;
|
|
186
148
|
static GetGender(gearID: number): number;
|
|
149
|
+
/**
|
|
150
|
+
* 장비의 최대 강화 수치를 계산합니다.
|
|
151
|
+
* @param gear 장비
|
|
152
|
+
* @returns 최대 장비 강화 수치
|
|
153
|
+
*/
|
|
154
|
+
static getMaxStar(gear: Gear): number;
|
|
155
|
+
private static readonly starData;
|
|
187
156
|
private static getPropTypeWeight;
|
|
188
157
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 장비 옵션
|
|
3
|
+
*/
|
|
4
|
+
export declare class GearOption {
|
|
5
|
+
/** 기본 수치 */
|
|
6
|
+
base: number;
|
|
7
|
+
/** 추가옵션 수치 */
|
|
8
|
+
bonus: number;
|
|
9
|
+
/** 주문서 강화 수치 */
|
|
10
|
+
upgrade: number;
|
|
11
|
+
/** 장비 강화 수치 */
|
|
12
|
+
enchant: number;
|
|
13
|
+
/** 모든 수치가 0일 경우 `true`; 아닐 경우 `false` */
|
|
14
|
+
get empty(): boolean;
|
|
15
|
+
/** 모든 수치의 합; 합이 음수일 경우 `0` */
|
|
16
|
+
get sum(): number;
|
|
17
|
+
/** 기본 수치 대비 변화량 */
|
|
18
|
+
get diff(): number;
|
|
19
|
+
}
|
package/lib/gearproptype.d.ts
CHANGED
|
@@ -10,119 +10,94 @@ export declare enum GearPropType {
|
|
|
10
10
|
incINTr = 6,
|
|
11
11
|
incLUK = 7,
|
|
12
12
|
incLUKr = 8,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
incIMDR = 32,
|
|
37
|
-
damR = 33,
|
|
38
|
-
nbdR = 34,
|
|
39
|
-
statR = 35,
|
|
40
|
-
incCHUC = 36,
|
|
13
|
+
incAllStat = 9,
|
|
14
|
+
incMHP = 10,
|
|
15
|
+
incMMP = 11,
|
|
16
|
+
incMHPr = 12,
|
|
17
|
+
incMMPr = 13,
|
|
18
|
+
incMDF = 14,
|
|
19
|
+
incARC = 15,
|
|
20
|
+
incAUT = 16,
|
|
21
|
+
incPAD = 17,
|
|
22
|
+
incMAD = 18,
|
|
23
|
+
incAD = 19,
|
|
24
|
+
incPDD = 20,
|
|
25
|
+
incSpeed = 21,
|
|
26
|
+
incJump = 22,
|
|
27
|
+
knockback = 23,
|
|
28
|
+
bdR = 24,
|
|
29
|
+
incBDR = 25,
|
|
30
|
+
imdR = 26,
|
|
31
|
+
incIMDR = 27,
|
|
32
|
+
damR = 28,
|
|
33
|
+
nbdR = 29,
|
|
34
|
+
statR = 30,
|
|
35
|
+
incCHUC = 31,
|
|
41
36
|
incPADr = 100,
|
|
42
37
|
incMADr = 101,
|
|
43
38
|
incPDDr = 102,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
incINTlv = 136,
|
|
78
|
-
incLUKlv = 137,
|
|
79
|
-
incMaxDamage = 138,
|
|
80
|
-
incMHPlv = 139,
|
|
81
|
-
incPADlv = 140,
|
|
82
|
-
incMADlv = 141,
|
|
83
|
-
incCriticaldamage = 142,
|
|
39
|
+
incCr = 103,
|
|
40
|
+
incDAMr = 104,
|
|
41
|
+
RecoveryHP = 105,
|
|
42
|
+
RecoveryMP = 106,
|
|
43
|
+
face = 107,
|
|
44
|
+
prop = 108,
|
|
45
|
+
time = 109,
|
|
46
|
+
HP = 110,
|
|
47
|
+
MP = 111,
|
|
48
|
+
attackType = 112,
|
|
49
|
+
ignoreTargetDEF = 113,
|
|
50
|
+
ignoreDAM = 114,
|
|
51
|
+
ignoreDAMr = 115,
|
|
52
|
+
DAMreflect = 116,
|
|
53
|
+
mpconReduce = 117,
|
|
54
|
+
incMesoProp = 118,
|
|
55
|
+
incRewardProp = 119,
|
|
56
|
+
incAllskill = 120,
|
|
57
|
+
RecoveryUP = 121,
|
|
58
|
+
boss = 122,
|
|
59
|
+
level = 123,
|
|
60
|
+
incTerR = 124,
|
|
61
|
+
incAsrR = 125,
|
|
62
|
+
incEXPr = 126,
|
|
63
|
+
reduceCooltime = 127,
|
|
64
|
+
incSTRlv = 128,
|
|
65
|
+
incDEXlv = 129,
|
|
66
|
+
incINTlv = 130,
|
|
67
|
+
incLUKlv = 131,
|
|
68
|
+
incMHPlv = 132,
|
|
69
|
+
incPADlv = 133,
|
|
70
|
+
incMADlv = 134,
|
|
71
|
+
incCriticaldamage = 135,
|
|
84
72
|
attackSpeed = 200,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
reduceReq = 204,
|
|
89
|
-
growthLevel = 205,
|
|
90
|
-
growthExp = 206,
|
|
91
|
-
mastery = 300,
|
|
92
|
-
reqLevel = 1000,
|
|
93
|
-
reqSTR = 1001,
|
|
94
|
-
reqDEX = 1002,
|
|
95
|
-
reqINT = 1003,
|
|
96
|
-
reqLUK = 1004,
|
|
97
|
-
reqJob = 1005,
|
|
98
|
-
reqPOP = 1006,
|
|
99
|
-
reqSpecJob = 1007,
|
|
73
|
+
setItemID = 201,
|
|
74
|
+
durability = 202,
|
|
75
|
+
reduceReq = 203,
|
|
100
76
|
only = 1100,
|
|
101
77
|
tradeBlock = 1101,
|
|
102
78
|
accountSharable = 1102,
|
|
103
79
|
onlyEquip = 1103,
|
|
104
80
|
tradeAvailable = 1104,
|
|
105
81
|
equipTradeBlock = 1105,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
tucIgnoreForPotential = 1127
|
|
82
|
+
sharableOnce = 1106,
|
|
83
|
+
charismaEXP = 1107,
|
|
84
|
+
senseEXP = 1108,
|
|
85
|
+
insightEXP = 1109,
|
|
86
|
+
willEXP = 1110,
|
|
87
|
+
craftEXP = 1111,
|
|
88
|
+
charmEXP = 1112,
|
|
89
|
+
accountShareTag = 1113,
|
|
90
|
+
bossReward = 1114,
|
|
91
|
+
noPotential = 1115,
|
|
92
|
+
fixedPotential = 1116,
|
|
93
|
+
specialGrade = 1117,
|
|
94
|
+
fixedGrade = 1118,
|
|
95
|
+
superiorEqp = 1119,
|
|
96
|
+
incPQEXPr = 1120,
|
|
97
|
+
jokerToSetItem = 1121,
|
|
98
|
+
blockGoldHammer = 1122,
|
|
99
|
+
exceptUpgrade = 1123,
|
|
100
|
+
onlyUpgrade = 1124,
|
|
101
|
+
noLookChange = 1125,
|
|
102
|
+
tucIgnoreForPotential = 1126
|
|
128
103
|
}
|
package/lib/gearreq.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 장비 착용 제한
|
|
3
|
+
*/
|
|
4
|
+
export declare class GearReq {
|
|
5
|
+
/** 착용 가능 레벨 */
|
|
6
|
+
level: number;
|
|
7
|
+
/** REQ STR */
|
|
8
|
+
str: number;
|
|
9
|
+
/** REQ LUK */
|
|
10
|
+
luk: number;
|
|
11
|
+
/** REQ DEX */
|
|
12
|
+
dex: number;
|
|
13
|
+
/** REQ INT */
|
|
14
|
+
int: number;
|
|
15
|
+
/** 착용 가능 직업 분류 */
|
|
16
|
+
job: number;
|
|
17
|
+
/** 착용 가능 직업 */
|
|
18
|
+
specJob: number;
|
|
19
|
+
}
|
|
@@ -49,14 +49,14 @@ export declare class EnhancementLogic {
|
|
|
49
49
|
*/
|
|
50
50
|
recalculate(gear: Gear): boolean;
|
|
51
51
|
private static getStatData;
|
|
52
|
-
private static superiorAttData;
|
|
53
|
-
private static superiorStatData;
|
|
54
|
-
private static starforceWeaponAttData;
|
|
55
|
-
private static starforceAttData;
|
|
56
|
-
private static starforceStatData;
|
|
57
|
-
private static amazingAttData;
|
|
58
|
-
private static amazingStatData;
|
|
59
|
-
private static starforceGloveBonusAttData;
|
|
60
|
-
private static starforceMhpData;
|
|
61
|
-
private static starforceSpeedJumpData;
|
|
52
|
+
private static readonly superiorAttData;
|
|
53
|
+
private static readonly superiorStatData;
|
|
54
|
+
private static readonly starforceWeaponAttData;
|
|
55
|
+
private static readonly starforceAttData;
|
|
56
|
+
private static readonly starforceStatData;
|
|
57
|
+
private static readonly amazingAttData;
|
|
58
|
+
private static readonly amazingStatData;
|
|
59
|
+
private static readonly starforceGloveBonusAttData;
|
|
60
|
+
private static readonly starforceMhpData;
|
|
61
|
+
private static readonly starforceSpeedJumpData;
|
|
62
62
|
}
|
package/lib/logic/scroll.d.ts
CHANGED
|
@@ -14,8 +14,14 @@ export declare class Scroll {
|
|
|
14
14
|
/**
|
|
15
15
|
* 주문의 흔적 `Scroll`을 반환합니다.
|
|
16
16
|
* @param gear 적용할 장비
|
|
17
|
-
* @param type 주문의 흔적 스탯
|
|
18
|
-
*
|
|
17
|
+
* @param type 주문의 흔적 스탯 종류; 다음 값 중 하나입니다:
|
|
18
|
+
*
|
|
19
|
+
* `GearPropType.incSTR` / `GearPropType.incDEX` /
|
|
20
|
+
* `GearPropType.incINT` / `GearPropType.incLUK` /
|
|
21
|
+
* `GearPropType.incAllStat` / `GearPropType.incMHP`
|
|
22
|
+
* @param probability 주문의 흔적 성공 확률 %; 다음 값 중 하나입니다:
|
|
23
|
+
*
|
|
24
|
+
* `100` / `70` / `30` / `15`
|
|
19
25
|
* @returns 주문의 흔적 `Scroll`; 존재하지 않을 경우 `undefined`
|
|
20
26
|
*/
|
|
21
27
|
static getSpellTraceScroll(gear: Gear, type: SpellTraceStatType, probability: SpellTraceProbability): Scroll | undefined;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Gear } from "../gear";
|
|
2
|
+
import { Soul } from "../soul";
|
|
3
|
+
/**
|
|
4
|
+
* 소울웨폰 관련 기능을 제공합니다.
|
|
5
|
+
*/
|
|
6
|
+
export declare class SoulLogic {
|
|
7
|
+
/**
|
|
8
|
+
* 무기를 소울웨폰으로 변환합니다.
|
|
9
|
+
* @param gear 적용할 장비
|
|
10
|
+
* @returns 소울웨폰으로 변환되었을 경우 `true`; 아닐 경우 `false`
|
|
11
|
+
*/
|
|
12
|
+
enchant(gear: Gear): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* 소울웨폰을 원래의 무기로 되돌립니다.
|
|
15
|
+
* @param gear 되돌릴 장비
|
|
16
|
+
* @returns 되돌렸을 경우 `true`; 아닐 경우 `false`
|
|
17
|
+
*/
|
|
18
|
+
disenchant(gear: Gear): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* 소울웨폰에 소울을 장착합니다.
|
|
21
|
+
* @param gear 소울을 장착할 장비
|
|
22
|
+
* @param soul 장착할 소울
|
|
23
|
+
* @returns 장착했을 경우 `true`; 아닐 경우 `false`
|
|
24
|
+
*/
|
|
25
|
+
setSoul(gear: Gear, soul: Soul): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* 소울이 장착된 소울웨폰에서 소울을 제거합니다.
|
|
28
|
+
* @param gear 소울을 제거할 장비
|
|
29
|
+
* @returns 제거했을 경우 `true`; 아닐 경우 `false`
|
|
30
|
+
*/
|
|
31
|
+
removeSoul(gear: Gear): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* 소울웨폰의 소울 충전량을 설정하고 옵션을 적용합니다.
|
|
34
|
+
* 0부터 1000까지의 값으로 설정할 수 있습니다.
|
|
35
|
+
* @param gear 소울 충전량을 설정할 장비
|
|
36
|
+
* @param charge 소울 충전량
|
|
37
|
+
* @returns 적용했을 경우 `true`; 아닐 경우 `false`
|
|
38
|
+
*/
|
|
39
|
+
setCharge(gear: Gear, charge: number): boolean;
|
|
40
|
+
private getChargeAD;
|
|
41
|
+
}
|
package/lib/logic/upgrade.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ export declare class UpgradeLogic {
|
|
|
12
12
|
applyGoldHammer(gear: Gear): boolean;
|
|
13
13
|
/**
|
|
14
14
|
* 장비에 주문서를 1회 적용합니다.
|
|
15
|
-
*
|
|
16
15
|
* @param gear 주문서를 적용할 장비
|
|
17
16
|
* @param scroll 적용할 주문서
|
|
18
17
|
* @returns 주문서가 적용됐을 경우 `true`; 아닐 경우 `false`
|
|
@@ -21,27 +20,29 @@ export declare class UpgradeLogic {
|
|
|
21
20
|
/**
|
|
22
21
|
* 장비에 주문의 흔적 강화를 1회 적용합니다.
|
|
23
22
|
* @param gear 강화를 적용할 장비
|
|
24
|
-
* @param type 주문의 흔적 스탯
|
|
25
|
-
*
|
|
23
|
+
* @param type 주문의 흔적 스탯 종류; 다음 값 중 하나입니다:
|
|
24
|
+
*
|
|
25
|
+
* `GearPropType.incSTR` / `GearPropType.incDEX` /
|
|
26
|
+
* `GearPropType.incINT` / `GearPropType.incLUK` /
|
|
27
|
+
* `GearPropType.incAllStat` / `GearPropType.incMHP`
|
|
28
|
+
* @param probability 주문의 흔적 성공 확률 %; 다음 값 중 하나입니다:
|
|
29
|
+
*
|
|
30
|
+
* `100` / `70` / `30` / `15`
|
|
26
31
|
* @returns 주문서가 적용됐을 경우 `true`; 아닐 경우 `false`
|
|
27
32
|
*/
|
|
28
33
|
applySpellTrace(gear: Gear, type: SpellTraceStatType, probability: SpellTraceProbability): boolean;
|
|
29
34
|
/**
|
|
30
|
-
* 장비의 업그레이드 가능 횟수를 1회 감소합니다.
|
|
31
|
-
*
|
|
32
|
-
* 주문서가 실패한 것과 동일한 효과입니다.
|
|
35
|
+
* 장비의 업그레이드 가능 횟수를 실패로 1회 감소합니다.
|
|
33
36
|
* @param gear 감소할 장비
|
|
34
37
|
* @returns 감소됐을 경우 `true`; 아닐 경우 `false`
|
|
35
38
|
*/
|
|
36
|
-
|
|
39
|
+
addUpgradeFailCount(gear: Gear): boolean;
|
|
37
40
|
/**
|
|
38
|
-
* 장비의 업그레이드 가능 횟수를 1회 복구합니다.
|
|
39
|
-
*
|
|
40
|
-
* 장비의 최대 업그레이드 가능 횟수를 초과하지 않습니다.
|
|
41
|
+
* 장비의 실패한 업그레이드 가능 횟수를 1회 복구합니다.
|
|
41
42
|
* @param gear 복구할 장비
|
|
42
43
|
* @returns 복구했을 경우 `true`; 아닐 경우 `false`
|
|
43
44
|
*/
|
|
44
|
-
|
|
45
|
+
restoreUpgradeCount(gear: Gear): boolean;
|
|
45
46
|
/**
|
|
46
47
|
* 장비의 주문서, 황금망치 관련 속성을 초기화합니다.
|
|
47
48
|
*
|
package/lib/potentialgrade.d.ts
CHANGED
|
@@ -2,10 +2,28 @@
|
|
|
2
2
|
* 잠재능력 등급
|
|
3
3
|
*/
|
|
4
4
|
export declare enum PotentialGrade {
|
|
5
|
+
/**
|
|
6
|
+
* 노멀
|
|
7
|
+
*/
|
|
5
8
|
normal = 0,
|
|
9
|
+
/**
|
|
10
|
+
* 레어
|
|
11
|
+
*/
|
|
6
12
|
rare = 1,
|
|
13
|
+
/**
|
|
14
|
+
* 에픽
|
|
15
|
+
*/
|
|
7
16
|
epic = 2,
|
|
17
|
+
/**
|
|
18
|
+
* 유니크
|
|
19
|
+
*/
|
|
8
20
|
unique = 3,
|
|
21
|
+
/**
|
|
22
|
+
* 레전드리
|
|
23
|
+
*/
|
|
9
24
|
legendary = 4,
|
|
25
|
+
/**
|
|
26
|
+
* 스페셜
|
|
27
|
+
*/
|
|
10
28
|
special = 5
|
|
11
29
|
}
|