@malib/gear 0.12.2 → 0.13.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 +1 -1
- package/index.js +383 -369
- package/internal.d.ts +2 -0
- package/lib/gear.d.ts +12 -7
- package/lib/logic/exceptional.d.ts +16 -0
- package/lib/logic/exceptionalparts.d.ts +5 -0
- package/lib/serialize/interface.d.ts +3 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -15,10 +15,10 @@ class k {
|
|
|
15
15
|
return this.bonus + this.upgrade + this.enchant;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
var
|
|
18
|
+
var i = /* @__PURE__ */ ((t) => (t[t.incSTR = 1] = "incSTR", t[t.incSTRr = 2] = "incSTRr", t[t.incDEX = 3] = "incDEX", t[t.incDEXr = 4] = "incDEXr", t[t.incINT = 5] = "incINT", t[t.incINTr = 6] = "incINTr", t[t.incLUK = 7] = "incLUK", t[t.incLUKr = 8] = "incLUKr", t[t.incAllStat = 9] = "incAllStat", t[t.incMHP = 10] = "incMHP", t[t.incMMP = 11] = "incMMP", t[t.incMHPr = 12] = "incMHPr", t[t.incMMPr = 13] = "incMMPr", t[t.incMDF = 14] = "incMDF", t[t.incARC = 15] = "incARC", t[t.incAUT = 16] = "incAUT", t[t.incPAD = 17] = "incPAD", t[t.incMAD = 18] = "incMAD", t[t.incAD = 19] = "incAD", t[t.incPDD = 20] = "incPDD", t[t.incSpeed = 21] = "incSpeed", t[t.incJump = 22] = "incJump", t[t.knockback = 23] = "knockback", t[t.bdR = 24] = "bdR", t[t.incBDR = 25] = "incBDR", t[t.imdR = 26] = "imdR", t[t.incIMDR = 27] = "incIMDR", t[t.damR = 28] = "damR", t[t.nbdR = 29] = "nbdR", t[t.statR = 30] = "statR", t[t.incCHUC = 31] = "incCHUC", t[t.incPADr = 100] = "incPADr", t[t.incMADr = 101] = "incMADr", t[t.incPDDr = 102] = "incPDDr", t[t.incCr = 103] = "incCr", t[t.incDAMr = 104] = "incDAMr", t[t.RecoveryHP = 105] = "RecoveryHP", t[t.RecoveryMP = 106] = "RecoveryMP", t[t.face = 107] = "face", t[t.prop = 108] = "prop", t[t.time = 109] = "time", t[t.HP = 110] = "HP", t[t.MP = 111] = "MP", t[t.attackType = 112] = "attackType", t[t.ignoreTargetDEF = 113] = "ignoreTargetDEF", t[t.ignoreDAM = 114] = "ignoreDAM", t[t.ignoreDAMr = 115] = "ignoreDAMr", t[t.DAMreflect = 116] = "DAMreflect", t[t.mpconReduce = 117] = "mpconReduce", t[t.incMesoProp = 118] = "incMesoProp", t[t.incRewardProp = 119] = "incRewardProp", t[t.incAllskill = 120] = "incAllskill", t[t.RecoveryUP = 121] = "RecoveryUP", t[t.boss = 122] = "boss", t[t.level = 123] = "level", t[t.incTerR = 124] = "incTerR", t[t.incAsrR = 125] = "incAsrR", t[t.incEXPr = 126] = "incEXPr", t[t.reduceCooltime = 127] = "reduceCooltime", t[t.incSTRlv = 128] = "incSTRlv", t[t.incDEXlv = 129] = "incDEXlv", t[t.incINTlv = 130] = "incINTlv", t[t.incLUKlv = 131] = "incLUKlv", t[t.incMHPlv = 132] = "incMHPlv", t[t.incPADlv = 133] = "incPADlv", t[t.incMADlv = 134] = "incMADlv", t[t.incCriticaldamage = 135] = "incCriticaldamage", t[t.attackSpeed = 200] = "attackSpeed", t[t.setItemID = 201] = "setItemID", t[t.durability = 202] = "durability", t[t.reduceReq = 203] = "reduceReq", t[t.only = 1100] = "only", t[t.tradeBlock = 1101] = "tradeBlock", t[t.accountSharable = 1102] = "accountSharable", t[t.onlyEquip = 1103] = "onlyEquip", t[t.tradeAvailable = 1104] = "tradeAvailable", t[t.equipTradeBlock = 1105] = "equipTradeBlock", t[t.sharableOnce = 1106] = "sharableOnce", t[t.charismaEXP = 1107] = "charismaEXP", t[t.senseEXP = 1108] = "senseEXP", t[t.insightEXP = 1109] = "insightEXP", t[t.willEXP = 1110] = "willEXP", t[t.craftEXP = 1111] = "craftEXP", t[t.charmEXP = 1112] = "charmEXP", t[t.accountShareTag = 1113] = "accountShareTag", t[t.bossReward = 1114] = "bossReward", t[t.noPotential = 1115] = "noPotential", t[t.fixedPotential = 1116] = "fixedPotential", t[t.specialGrade = 1117] = "specialGrade", t[t.fixedGrade = 1118] = "fixedGrade", t[t.superiorEqp = 1119] = "superiorEqp", t[t.incPQEXPr = 1120] = "incPQEXPr", t[t.jokerToSetItem = 1121] = "jokerToSetItem", t[t.blockGoldHammer = 1122] = "blockGoldHammer", t[t.exceptUpgrade = 1123] = "exceptUpgrade", t[t.onlyUpgrade = 1124] = "onlyUpgrade", t[t.noLookChange = 1125] = "noLookChange", t[t.tucIgnoreForPotential = 1126] = "tucIgnoreForPotential", t))(i || {}), f = /* @__PURE__ */ ((t) => (t[t.cap = 100] = "cap", t[t.faceAccessory = 101] = "faceAccessory", t[t.eyeAccessory = 102] = "eyeAccessory", t[t.earrings = 103] = "earrings", t[t.coat = 104] = "coat", t[t.longcoat = 105] = "longcoat", t[t.pants = 106] = "pants", t[t.shoes = 107] = "shoes", t[t.glove = 108] = "glove", t[t.cape = 110] = "cape", t[t.ring = 111] = "ring", t[t.pendant = 112] = "pendant", t[t.belt = 113] = "belt", t[t.medal = 114] = "medal", t[t.shoulder = 115] = "shoulder", t[t.pocket = 116] = "pocket", t[t.badge = 118] = "badge", t[t.android = 166] = "android", t[t.machineHeart = 167] = "machineHeart", t[t.shield = 109] = "shield", t[t.emblem = 119] = "emblem", t[t.powerSource = 119020] = "powerSource", t[t.shiningRod = 1212] = "shiningRod", t[t.tuner = 1213] = "tuner", t[t.breathShooter = 1214] = "breathShooter", t[t.soulShooter = 122] = "soulShooter", t[t.desperado = 123] = "desperado", t[t.energySword = 124] = "energySword", t[t.espLimiter = 126] = "espLimiter", t[t.chain = 127] = "chain", t[t.magicGauntlet = 128] = "magicGauntlet", t[t.ritualFan = 129] = "ritualFan", t[t.ohSword = 130] = "ohSword", t[t.ohAxe = 131] = "ohAxe", t[t.ohBlunt = 132] = "ohBlunt", t[t.dagger = 133] = "dagger", t[t.katara = 134] = "katara", t[t.cane = 136] = "cane", t[t.wand = 137] = "wand", t[t.staff = 138] = "staff", t[t.thSword = 140] = "thSword", t[t.chakram = 1404] = "chakram", t[t.thAxe = 141] = "thAxe", t[t.thBlunt = 142] = "thBlunt", t[t.spear = 143] = "spear", t[t.polearm = 144] = "polearm", t[t.bow = 145] = "bow", t[t.crossbow = 146] = "crossbow", t[t.claw = 147] = "claw", t[t.knuckle = 148] = "knuckle", t[t.gun = 149] = "gun", t[t.shovel = 150] = "shovel", t[t.pickaxe = 151] = "pickaxe", t[t.dualBowguns = 152] = "dualBowguns", t[t.handCannon = 153] = "handCannon", t[t.heavySword = 156] = "heavySword", t[t.longSword = 157] = "longSword", t[t.gauntletRevolver = 158] = "gauntletRevolver", t[t.ancientBow = 159] = "ancientBow", t[t.soulShield = 1098] = "soulShield", t[t.demonShield = 1099] = "demonShield", t[t.magicArrow = 135200] = "magicArrow", t[t.card = 135210] = "card", t[t.medallion = 135220] = "medallion", t[t.rosary = 135221] = "rosary", t[t.ironChain = 135222] = "ironChain", t[t.magicBook1 = 135223] = "magicBook1", t[t.magicBook2 = 135224] = "magicBook2", t[t.magicBook3 = 135225] = "magicBook3", t[t.arrowFletching = 135226] = "arrowFletching", t[t.bowThimble = 135227] = "bowThimble", t[t.daggerScabbard = 135228] = "daggerScabbard", t[t.charm = 135229] = "charm", t[t.orb = 135240] = "orb", t[t.dragonEssence = 135250] = "dragonEssence", t[t.soulRing = 135260] = "soulRing", t[t.magnum = 135270] = "magnum", t[t.wristBand = 135290] = "wristBand", t[t.farSight = 135291] = "farSight", t[t.powderKeg = 135292] = "powderKeg", t[t.mass = 135293] = "mass", t[t.document = 135294] = "document", t[t.magicMarble = 135295] = "magicMarble", t[t.arrowhead = 135296] = "arrowhead", t[t.jewel = 135297] = "jewel", t[t.powderKeg2 = 135298] = "powderKeg2", t[t.controller = 135300] = "controller", t[t.foxMarble = 135310] = "foxMarble", t[t.chessPiece = 135320] = "chessPiece", t[t.transmitter = 135330] = "transmitter", t[t.charge = 135340] = "charge", t[t.magicWing = 135350] = "magicWing", t[t.pathOfAbyss = 135360] = "pathOfAbyss", t[t.relic = 135370] = "relic", t[t.fanTassel = 135380] = "fanTassel", t[t.bracelet = 135400] = "bracelet", t[t.weaponBelt = 135401] = "weaponBelt", t[t.ornament = 135402] = "ornament", t[t.hexSeeker = 135403] = "hexSeeker", t[t.petEquip = 180] = "petEquip", t[t.machineEngine = 161] = "machineEngine", t[t.machineArms = 162] = "machineArms", t[t.machineLegs = 163] = "machineLegs", t[t.machineBody = 164] = "machineBody", t[t.machineTransistors = 165] = "machineTransistors", t[t.dragonMask = 194] = "dragonMask", t[t.dragonPendant = 195] = "dragonPendant", t[t.dragonWings = 196] = "dragonWings", t[t.dragonTail = 197] = "dragonTail", t))(f || {}), x = /* @__PURE__ */ ((t) => (t[t.normal = 0] = "normal", t[t.rare = 1] = "rare", t[t.epic = 2] = "epic", t[t.unique = 3] = "unique", t[t.legendary = 4] = "legendary", t[t.special = 5] = "special", t))(x || {});
|
|
19
19
|
class B {
|
|
20
|
-
constructor(
|
|
21
|
-
this.enchanted = !1, this._charge = 0, this.chargeOption = /* @__PURE__ */ new Map(), this.gear =
|
|
20
|
+
constructor(o) {
|
|
21
|
+
this.enchanted = !1, this._charge = 0, this.chargeOption = /* @__PURE__ */ new Map(), this.gear = o;
|
|
22
22
|
}
|
|
23
23
|
/** 소울 충전량 */
|
|
24
24
|
get charge() {
|
|
@@ -29,8 +29,8 @@ class B {
|
|
|
29
29
|
*
|
|
30
30
|
* `0`부터 `1000`까지의 값으로 설정할 수 있습니다.
|
|
31
31
|
*/
|
|
32
|
-
set charge(
|
|
33
|
-
this.enchanted && (
|
|
32
|
+
set charge(o) {
|
|
33
|
+
this.enchanted && (o < 0 || o > 1e3 || (this._charge = o, this.updateChargeOption()));
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
36
|
* 소울 인챈트를 적용합니다.
|
|
@@ -56,8 +56,8 @@ class B {
|
|
|
56
56
|
* @returns 장착했을 경우 `true`; 아닐 경우 `false`.
|
|
57
57
|
* 소울 인챈트 상태가 아닐 경우 `false`를 반환합니다.
|
|
58
58
|
*/
|
|
59
|
-
setSoul(
|
|
60
|
-
return this.enchanted ? (this.soul =
|
|
59
|
+
setSoul(o) {
|
|
60
|
+
return this.enchanted ? (this.soul = o, this.updateChargeOption(), !0) : !1;
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
63
|
* 장착된 소울을 제거합니다.
|
|
@@ -72,25 +72,24 @@ class B {
|
|
|
72
72
|
* @returns 적용했을 경우 `true`; 아닐 경우 `false`.
|
|
73
73
|
*/
|
|
74
74
|
updateChargeOption() {
|
|
75
|
-
const s = this.gear.option(
|
|
75
|
+
const s = this.gear.option(i.incPAD).base < this.gear.option(i.incMAD).base ? i.incMAD : i.incPAD;
|
|
76
76
|
return this.chargeOption.clear(), this.chargeOption.set(s, this.getChargeAD()), !0;
|
|
77
77
|
}
|
|
78
78
|
getChargeAD() {
|
|
79
79
|
if (!this.enchanted || this.charge === 0)
|
|
80
80
|
return 0;
|
|
81
|
-
const
|
|
81
|
+
const o = Math.min(Math.ceil(this.charge / 100) - 1, 5);
|
|
82
82
|
if (this.soul) {
|
|
83
83
|
const s = this.soul.multiplier;
|
|
84
|
-
return 10 +
|
|
84
|
+
return 10 + o * s;
|
|
85
85
|
}
|
|
86
|
-
return 5 +
|
|
86
|
+
return 5 + o;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
const C = class {
|
|
90
90
|
constructor() {
|
|
91
|
-
this.itemID = 0, this.name = "", this.desc = "", this.type = 0, this.props = /* @__PURE__ */ new Map(), this.options = /* @__PURE__ */ new Map(), this.exceptionalOptions = /* @__PURE__ */ new Map(), this.totalUpgradeCount = 0, this.upgradeCount = 0, this.upgradeFailCount = 0, this.hammerCount = 0, this.exceptionalTotalUpgradeCount = 0, this.exceptionalUpgradeCount = 0, this.maxStar = 0, this.star = 0, this.amazing = !1, this.canPotential = !1, this.grade =
|
|
92
|
-
id: 0
|
|
93
|
-
origin: [0, 0]
|
|
91
|
+
this.itemID = 0, this.name = "", this.desc = "", this.type = 0, this.props = /* @__PURE__ */ new Map(), this.options = /* @__PURE__ */ new Map(), this.exceptionalOptions = /* @__PURE__ */ new Map(), this.totalUpgradeCount = 0, this.upgradeCount = 0, this.upgradeFailCount = 0, this.hammerCount = 0, this.exceptionalTotalUpgradeCount = 0, this.exceptionalUpgradeCount = 0, this.maxStar = 0, this.star = 0, this.amazing = !1, this.canPotential = !1, this.grade = x.normal, this.potentials = [], this.additionalGrade = x.normal, this.additionalPotentials = [], this.soulWeapon = new B(this), this.icon = {
|
|
92
|
+
id: 0
|
|
94
93
|
}, this.req = {
|
|
95
94
|
level: 0,
|
|
96
95
|
str: 0,
|
|
@@ -118,8 +117,8 @@ const C = class {
|
|
|
118
117
|
*/
|
|
119
118
|
get diff() {
|
|
120
119
|
let t = 0;
|
|
121
|
-
for (const [
|
|
122
|
-
t += Math.floor(s.diff / C.getPropTypeWeight(
|
|
120
|
+
for (const [o, s] of this.options)
|
|
121
|
+
t += Math.floor(s.diff / C.getPropTypeWeight(o));
|
|
123
122
|
return t;
|
|
124
123
|
}
|
|
125
124
|
/**
|
|
@@ -130,7 +129,7 @@ const C = class {
|
|
|
130
129
|
* 장비 아이콘 왼쪽 위의 원이 채워져있으면 `true`; 아니면 `false`입니다.
|
|
131
130
|
*/
|
|
132
131
|
get isNewBonusType() {
|
|
133
|
-
return !!([...this.options.values()].some((
|
|
132
|
+
return !!([...this.options.values()].some((o) => o.bonus > 0) && this.getPropValue(i.tradeAvailable) !== 1);
|
|
134
133
|
}
|
|
135
134
|
/**
|
|
136
135
|
* 지정된 장비 옵션 종류과 연결된 옵션을 가져옵니다.
|
|
@@ -161,14 +160,14 @@ const C = class {
|
|
|
161
160
|
* @param icon 외형 아이콘.
|
|
162
161
|
* @param name 외형 장비명.
|
|
163
162
|
*/
|
|
164
|
-
setAnvil(t
|
|
165
|
-
this.
|
|
163
|
+
setAnvil(t) {
|
|
164
|
+
this.anvil = t;
|
|
166
165
|
}
|
|
167
166
|
/**
|
|
168
167
|
* 장비에 적용된 신비의 모루 외형을 제거합니다.
|
|
169
168
|
*/
|
|
170
169
|
resetAnvil() {
|
|
171
|
-
this.
|
|
170
|
+
this.anvil = void 0;
|
|
172
171
|
}
|
|
173
172
|
/**
|
|
174
173
|
* 장비 분류가 주무기인지 여부를 확인합니다. 블레이드(`katara`)는 포함되지 않습니다.
|
|
@@ -301,35 +300,35 @@ const C = class {
|
|
|
301
300
|
* 최대 업그레이드 가능 횟수가 `0`이거나 `onlyUpgrade` 속성이 존재하거나 메카닉 장비 또는 드래곤 장비일 경우 `0`입니다.
|
|
302
301
|
*/
|
|
303
302
|
static getMaxStar(t) {
|
|
304
|
-
if (t.totalUpgradeCount <= 0 || t.getBooleanValue(
|
|
303
|
+
if (t.totalUpgradeCount <= 0 || t.getBooleanValue(i.onlyUpgrade) || C.isMechanicGear(t.type) || C.isDragonGear(t.type))
|
|
305
304
|
return 0;
|
|
306
|
-
let
|
|
305
|
+
let o;
|
|
307
306
|
const s = t.req.level;
|
|
308
307
|
for (const a of C.starData)
|
|
309
308
|
if (s >= a[0])
|
|
310
|
-
|
|
309
|
+
o = a;
|
|
311
310
|
else
|
|
312
311
|
break;
|
|
313
|
-
return
|
|
312
|
+
return o === void 0 ? 0 : t.getBooleanValue(i.superiorEqp) ? o[2] : o[1];
|
|
314
313
|
}
|
|
315
314
|
static getPropTypeWeight(t) {
|
|
316
315
|
if (t < 100)
|
|
317
316
|
switch (t) {
|
|
318
|
-
case
|
|
319
|
-
case
|
|
320
|
-
case
|
|
321
|
-
case
|
|
322
|
-
case
|
|
323
|
-
case
|
|
324
|
-
case
|
|
325
|
-
case
|
|
317
|
+
case i.incSTR:
|
|
318
|
+
case i.incDEX:
|
|
319
|
+
case i.incINT:
|
|
320
|
+
case i.incLUK:
|
|
321
|
+
case i.incPAD:
|
|
322
|
+
case i.incMAD:
|
|
323
|
+
case i.incSpeed:
|
|
324
|
+
case i.incJump:
|
|
326
325
|
return 1;
|
|
327
|
-
case
|
|
328
|
-
case
|
|
326
|
+
case i.incMHP:
|
|
327
|
+
case i.incMMP:
|
|
329
328
|
return 100;
|
|
330
|
-
case
|
|
329
|
+
case i.incPDD:
|
|
331
330
|
return 10;
|
|
332
|
-
case
|
|
331
|
+
case i.incAD:
|
|
333
332
|
return 2;
|
|
334
333
|
}
|
|
335
334
|
return Number.MAX_VALUE;
|
|
@@ -344,7 +343,7 @@ A.starData = [
|
|
|
344
343
|
[130, 20, 12],
|
|
345
344
|
[140, 25, 15]
|
|
346
345
|
];
|
|
347
|
-
class
|
|
346
|
+
class L {
|
|
348
347
|
constructor() {
|
|
349
348
|
this.code = 0, this.optionType = 0, this.reqLevel = 0, this.summary = "", this.option = /* @__PURE__ */ new Map();
|
|
350
349
|
}
|
|
@@ -352,12 +351,12 @@ class I {
|
|
|
352
351
|
* 장비에 표시되는 문자열
|
|
353
352
|
*/
|
|
354
353
|
get convertSummary() {
|
|
355
|
-
const
|
|
356
|
-
|
|
354
|
+
const o = [...this.option.keys()];
|
|
355
|
+
o.sort((a, h) => i[h].length - i[a].length);
|
|
357
356
|
let s = this.summary;
|
|
358
|
-
for (const a of
|
|
357
|
+
for (const a of o)
|
|
359
358
|
s = s.replace(
|
|
360
|
-
`#${
|
|
359
|
+
`#${i[a]}`,
|
|
361
360
|
(this.option.get(a) ?? 0).toString()
|
|
362
361
|
);
|
|
363
362
|
return s;
|
|
@@ -367,8 +366,8 @@ class I {
|
|
|
367
366
|
* @param gearReqLevel 장비의 착용 가능 레벨.
|
|
368
367
|
* @returns 잠재옵션 레벨. 1부터 25까지의 값입니다.
|
|
369
368
|
*/
|
|
370
|
-
static getPotentialLevel(
|
|
371
|
-
return
|
|
369
|
+
static getPotentialLevel(o) {
|
|
370
|
+
return o <= 0 ? 1 : o >= 250 ? 25 : Math.floor((o + 9) / 10);
|
|
372
371
|
}
|
|
373
372
|
/**
|
|
374
373
|
* 잠재옵션 분류와 장비 분류를 비교합니다.
|
|
@@ -376,14 +375,14 @@ class I {
|
|
|
376
375
|
* @param gearType 장비 분류.
|
|
377
376
|
* @returns 잠재옵션 분류가 장비 분류에 적용 가능한 경우 `true`; 아닌 경우 `false`.
|
|
378
377
|
*/
|
|
379
|
-
static checkOptionType(
|
|
380
|
-
switch (
|
|
378
|
+
static checkOptionType(o, s) {
|
|
379
|
+
switch (o) {
|
|
381
380
|
case 0:
|
|
382
381
|
return !0;
|
|
383
382
|
case 10:
|
|
384
383
|
return A.isWeapon(s) || A.isSubWeapon(s) || s === f.emblem;
|
|
385
384
|
case 11:
|
|
386
|
-
return !
|
|
385
|
+
return !L.checkOptionType(10, s);
|
|
387
386
|
case 20:
|
|
388
387
|
return A.isSubWeapon(s) || s === f.cap || s === f.coat || s === f.longcoat || s === f.pants || s === f.shoes || s === f.glove || s === f.cape || s === f.belt || s === f.shoulder;
|
|
389
388
|
case 40:
|
|
@@ -403,82 +402,82 @@ class I {
|
|
|
403
402
|
}
|
|
404
403
|
}
|
|
405
404
|
}
|
|
406
|
-
var
|
|
407
|
-
function
|
|
408
|
-
const a = Q(t,
|
|
405
|
+
var u = /* @__PURE__ */ ((t) => (t[t.STR = 0] = "STR", t[t.DEX = 1] = "DEX", t[t.INT = 2] = "INT", t[t.LUK = 3] = "LUK", t[t.STR_DEX = 4] = "STR_DEX", t[t.STR_INT = 5] = "STR_INT", t[t.STR_LUK = 6] = "STR_LUK", t[t.DEX_INT = 7] = "DEX_INT", t[t.DEX_LUK = 8] = "DEX_LUK", t[t.INT_LUK = 9] = "INT_LUK", t[t.MHP = 10] = "MHP", t[t.MMP = 11] = "MMP", t[t.PAD = 12] = "PAD", t[t.MAD = 13] = "MAD", t[t.PDD = 14] = "PDD", t[t.speed = 15] = "speed", t[t.jump = 16] = "jump", t[t.damR = 17] = "damR", t[t.bdR = 18] = "bdR", t[t.allStatR = 19] = "allStatR", t[t.reduceReq = 20] = "reduceReq", t))(u || {});
|
|
406
|
+
function x0(t, o, s) {
|
|
407
|
+
const a = Q(t, o, s);
|
|
409
408
|
if (a.size === 0)
|
|
410
409
|
return !1;
|
|
411
|
-
for (const [h,
|
|
412
|
-
t.option(h).bonus +=
|
|
410
|
+
for (const [h, r] of a)
|
|
411
|
+
t.option(h).bonus += r;
|
|
413
412
|
return !0;
|
|
414
413
|
}
|
|
415
|
-
function
|
|
416
|
-
for (const [,
|
|
417
|
-
|
|
414
|
+
function L0(t) {
|
|
415
|
+
for (const [, o] of t.options)
|
|
416
|
+
o.bonus = 0;
|
|
418
417
|
return !0;
|
|
419
418
|
}
|
|
420
|
-
function Q(t,
|
|
421
|
-
const a =
|
|
422
|
-
return h === 0 ? /* @__PURE__ */ new Map() : new Map(a.map((
|
|
419
|
+
function Q(t, o, s) {
|
|
420
|
+
const a = T(o), h = Z(t, o, s);
|
|
421
|
+
return h === 0 ? /* @__PURE__ */ new Map() : new Map(a.map((r) => [r, h]));
|
|
423
422
|
}
|
|
424
|
-
function Z(t,
|
|
425
|
-
const a = t.req.level, h = t.getBooleanValue(
|
|
423
|
+
function Z(t, o, s) {
|
|
424
|
+
const a = t.req.level, h = t.getBooleanValue(i.bossReward), r = t.type;
|
|
426
425
|
if (a < 0 || h && s < 3)
|
|
427
426
|
return 0;
|
|
428
|
-
switch (
|
|
429
|
-
case
|
|
430
|
-
case
|
|
431
|
-
case
|
|
432
|
-
case
|
|
433
|
-
return
|
|
434
|
-
case
|
|
435
|
-
case
|
|
436
|
-
case
|
|
437
|
-
case
|
|
438
|
-
case
|
|
439
|
-
case
|
|
427
|
+
switch (o) {
|
|
428
|
+
case u.STR:
|
|
429
|
+
case u.DEX:
|
|
430
|
+
case u.INT:
|
|
431
|
+
case u.LUK:
|
|
432
|
+
return N(a, s);
|
|
433
|
+
case u.STR_DEX:
|
|
434
|
+
case u.STR_INT:
|
|
435
|
+
case u.STR_LUK:
|
|
436
|
+
case u.DEX_INT:
|
|
437
|
+
case u.DEX_LUK:
|
|
438
|
+
case u.INT_LUK:
|
|
440
439
|
return Y(a, s);
|
|
441
|
-
case
|
|
442
|
-
return
|
|
443
|
-
case
|
|
444
|
-
case
|
|
440
|
+
case u.PDD:
|
|
441
|
+
return N(a, s);
|
|
442
|
+
case u.PAD:
|
|
443
|
+
case u.MAD:
|
|
445
444
|
return P(
|
|
446
445
|
a,
|
|
447
446
|
s,
|
|
448
|
-
|
|
447
|
+
o,
|
|
449
448
|
t.type,
|
|
450
449
|
h,
|
|
451
|
-
t.option(
|
|
452
|
-
t.option(
|
|
450
|
+
t.option(i.incPAD).base,
|
|
451
|
+
t.option(i.incMAD).base
|
|
453
452
|
);
|
|
454
|
-
case
|
|
455
|
-
case
|
|
453
|
+
case u.MHP:
|
|
454
|
+
case u.MMP:
|
|
456
455
|
return l(a, s);
|
|
457
|
-
case
|
|
458
|
-
case
|
|
459
|
-
return A.isWeapon(
|
|
460
|
-
case
|
|
461
|
-
return A.isWeapon(
|
|
462
|
-
case
|
|
463
|
-
return a < 90 || !A.isWeapon(
|
|
464
|
-
case
|
|
465
|
-
return a < 70 && !A.isWeapon(
|
|
466
|
-
case
|
|
456
|
+
case u.speed:
|
|
457
|
+
case u.jump:
|
|
458
|
+
return A.isWeapon(r) ? 0 : s;
|
|
459
|
+
case u.damR:
|
|
460
|
+
return A.isWeapon(r) ? s : 0;
|
|
461
|
+
case u.bdR:
|
|
462
|
+
return a < 90 || !A.isWeapon(r) ? 0 : 2 * s;
|
|
463
|
+
case u.allStatR:
|
|
464
|
+
return a < 70 && !A.isWeapon(r) ? 0 : s;
|
|
465
|
+
case u.reduceReq:
|
|
467
466
|
return y(a, s);
|
|
468
467
|
default:
|
|
469
468
|
return 0;
|
|
470
469
|
}
|
|
471
470
|
}
|
|
472
|
-
function
|
|
473
|
-
return t >= 250 ? Math.floor(t / 20) *
|
|
471
|
+
function N(t, o) {
|
|
472
|
+
return t >= 250 ? Math.floor(t / 20) * o : (Math.floor(t / 20) + 1) * o;
|
|
474
473
|
}
|
|
475
|
-
function Y(t,
|
|
476
|
-
return (Math.floor(t / 40) + 1) *
|
|
474
|
+
function Y(t, o) {
|
|
475
|
+
return (Math.floor(t / 40) + 1) * o;
|
|
477
476
|
}
|
|
478
|
-
function P(t,
|
|
477
|
+
function P(t, o, s, a, h, r, M) {
|
|
479
478
|
if (A.isWeapon(a)) {
|
|
480
479
|
const c = h ? [0, 0, 1, 1.4666, 2.0166, 2.663, 3.4166] : [1, 2.222, 3.63, 5.325, 7.32, 8.777, 10.25];
|
|
481
|
-
let n =
|
|
480
|
+
let n = r;
|
|
482
481
|
if (a === f.heavySword || a === f.longSword) {
|
|
483
482
|
if (a === f.longSword)
|
|
484
483
|
switch (n) {
|
|
@@ -514,127 +513,127 @@ function P(t, i, s, a, h, d, M) {
|
|
|
514
513
|
break;
|
|
515
514
|
}
|
|
516
515
|
const D = t > 180 ? 6 : t > 160 ? 5 : t > 110 ? 4 : 3;
|
|
517
|
-
return Math.ceil(n * c[
|
|
518
|
-
} else if (s ===
|
|
516
|
+
return Math.ceil(n * c[o - 1] * D / 100);
|
|
517
|
+
} else if (s === u.MAD && M >= n && (n = M), h) {
|
|
519
518
|
const D = t > 160 ? 18 : t > 150 ? 15 : t > 110 ? 12 : 9;
|
|
520
|
-
return Math.ceil(n * c[
|
|
519
|
+
return Math.ceil(n * c[o - 1] * D / 100);
|
|
521
520
|
} else {
|
|
522
521
|
const D = t > 110 ? 4 : 3;
|
|
523
|
-
return Math.ceil(n * c[
|
|
522
|
+
return Math.ceil(n * c[o - 1] * D / 100);
|
|
524
523
|
}
|
|
525
524
|
} else if (t < 60)
|
|
526
525
|
return 0;
|
|
527
|
-
return
|
|
526
|
+
return o;
|
|
528
527
|
}
|
|
529
|
-
function l(t,
|
|
530
|
-
return t < 10 ? 3 *
|
|
528
|
+
function l(t, o) {
|
|
529
|
+
return t < 10 ? 3 * o : t >= 250 ? 700 * o : Math.floor(t / 10) * 30 * o;
|
|
531
530
|
}
|
|
532
|
-
function y(t,
|
|
533
|
-
return
|
|
531
|
+
function y(t, o) {
|
|
532
|
+
return o * 5;
|
|
534
533
|
}
|
|
535
|
-
function
|
|
534
|
+
function T(t) {
|
|
536
535
|
switch (t) {
|
|
537
|
-
case
|
|
538
|
-
return [
|
|
539
|
-
case
|
|
540
|
-
return [
|
|
541
|
-
case
|
|
542
|
-
return [
|
|
543
|
-
case
|
|
544
|
-
return [
|
|
545
|
-
case
|
|
546
|
-
return [
|
|
547
|
-
case
|
|
548
|
-
return [
|
|
549
|
-
case
|
|
550
|
-
return [
|
|
551
|
-
case
|
|
552
|
-
return [
|
|
553
|
-
case
|
|
554
|
-
return [
|
|
555
|
-
case
|
|
556
|
-
return [
|
|
557
|
-
case
|
|
558
|
-
return [
|
|
559
|
-
case
|
|
560
|
-
return [
|
|
561
|
-
case
|
|
562
|
-
return [
|
|
563
|
-
case
|
|
564
|
-
return [
|
|
565
|
-
case
|
|
566
|
-
return [
|
|
567
|
-
case
|
|
568
|
-
return [
|
|
569
|
-
case
|
|
570
|
-
return [
|
|
571
|
-
case
|
|
572
|
-
return [
|
|
573
|
-
case
|
|
574
|
-
return [
|
|
575
|
-
case
|
|
576
|
-
return [
|
|
577
|
-
case
|
|
578
|
-
return [
|
|
536
|
+
case u.STR:
|
|
537
|
+
return [i.incSTR];
|
|
538
|
+
case u.DEX:
|
|
539
|
+
return [i.incDEX];
|
|
540
|
+
case u.INT:
|
|
541
|
+
return [i.incINT];
|
|
542
|
+
case u.LUK:
|
|
543
|
+
return [i.incLUK];
|
|
544
|
+
case u.STR_DEX:
|
|
545
|
+
return [i.incSTR, i.incDEX];
|
|
546
|
+
case u.STR_INT:
|
|
547
|
+
return [i.incSTR, i.incINT];
|
|
548
|
+
case u.STR_LUK:
|
|
549
|
+
return [i.incSTR, i.incLUK];
|
|
550
|
+
case u.DEX_INT:
|
|
551
|
+
return [i.incDEX, i.incINT];
|
|
552
|
+
case u.DEX_LUK:
|
|
553
|
+
return [i.incDEX, i.incLUK];
|
|
554
|
+
case u.INT_LUK:
|
|
555
|
+
return [i.incINT, i.incLUK];
|
|
556
|
+
case u.PDD:
|
|
557
|
+
return [i.incPDD];
|
|
558
|
+
case u.PAD:
|
|
559
|
+
return [i.incPAD];
|
|
560
|
+
case u.MAD:
|
|
561
|
+
return [i.incMAD];
|
|
562
|
+
case u.MHP:
|
|
563
|
+
return [i.incMHP];
|
|
564
|
+
case u.MMP:
|
|
565
|
+
return [i.incMMP];
|
|
566
|
+
case u.speed:
|
|
567
|
+
return [i.incSpeed];
|
|
568
|
+
case u.jump:
|
|
569
|
+
return [i.incJump];
|
|
570
|
+
case u.damR:
|
|
571
|
+
return [i.damR];
|
|
572
|
+
case u.bdR:
|
|
573
|
+
return [i.bdR];
|
|
574
|
+
case u.allStatR:
|
|
575
|
+
return [i.statR];
|
|
576
|
+
case u.reduceReq:
|
|
577
|
+
return [i.reduceReq];
|
|
579
578
|
default:
|
|
580
579
|
return [];
|
|
581
580
|
}
|
|
582
581
|
}
|
|
583
|
-
const
|
|
584
|
-
function
|
|
585
|
-
if (t.getBooleanValue(
|
|
582
|
+
const m = 25, I = 15;
|
|
583
|
+
function p(t, o = !1) {
|
|
584
|
+
if (t.getBooleanValue(i.incCHUC))
|
|
586
585
|
return !1;
|
|
587
|
-
if (t.getBooleanValue(
|
|
588
|
-
return
|
|
589
|
-
if (t.star >= t.maxStar && !
|
|
586
|
+
if (t.getBooleanValue(i.superiorEqp))
|
|
587
|
+
return G(t);
|
|
588
|
+
if (t.star >= t.maxStar && !o || t.star >= m)
|
|
590
589
|
return !1;
|
|
591
590
|
t.star += 1;
|
|
592
|
-
const s = t.star, a = w(t, !1, !1), h = w(t, !1, !0),
|
|
593
|
-
[
|
|
594
|
-
[
|
|
595
|
-
[
|
|
596
|
-
[
|
|
597
|
-
[
|
|
591
|
+
const s = t.star, a = w(t, !1, !1), h = w(t, !1, !0), r = A.isWeapon(t.type) || t.type === f.katara, M = [
|
|
592
|
+
[i.incSTR, i.incDEX],
|
|
593
|
+
[i.incINT, i.incLUK],
|
|
594
|
+
[i.incDEX, i.incSTR],
|
|
595
|
+
[i.incLUK, i.incDEX],
|
|
596
|
+
[i.incSTR, i.incDEX]
|
|
598
597
|
], c = [
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
598
|
+
i.incSTR,
|
|
599
|
+
i.incDEX,
|
|
600
|
+
i.incINT,
|
|
601
|
+
i.incLUK
|
|
603
602
|
];
|
|
604
603
|
let n;
|
|
605
604
|
const D = t.req.job;
|
|
606
605
|
if (D === 0)
|
|
607
606
|
n = /* @__PURE__ */ new Set([
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
607
|
+
i.incSTR,
|
|
608
|
+
i.incDEX,
|
|
609
|
+
i.incINT,
|
|
610
|
+
i.incLUK
|
|
612
611
|
]);
|
|
613
612
|
else {
|
|
614
613
|
n = /* @__PURE__ */ new Set();
|
|
615
|
-
for (let
|
|
616
|
-
if (D & 1 <<
|
|
617
|
-
for (const b of M[
|
|
614
|
+
for (let d = 0; d < 5; d++)
|
|
615
|
+
if (D & 1 << d)
|
|
616
|
+
for (const b of M[d])
|
|
618
617
|
n.add(b);
|
|
619
618
|
}
|
|
620
|
-
for (const
|
|
621
|
-
(n.has(
|
|
622
|
-
if (
|
|
623
|
-
const
|
|
619
|
+
for (const d of c)
|
|
620
|
+
(n.has(d) || s > 15 && (t.option(d).base > 0 || t.option(d).upgrade > 0)) && (t.option(d).enchant += a[s]);
|
|
621
|
+
if (r) {
|
|
622
|
+
const d = D === 0 || Math.floor(D / 2) % 2 === 1 || t.option(i.incMAD).upgrade > 0;
|
|
624
623
|
if (s > 15)
|
|
625
|
-
t.option(
|
|
624
|
+
t.option(i.incPAD).enchant += h[s], d && (t.option(i.incMAD).enchant += h[s]);
|
|
626
625
|
else {
|
|
627
|
-
const b = t.option(
|
|
628
|
-
if (t.option(
|
|
629
|
-
const J = t.option(
|
|
630
|
-
t.option(
|
|
626
|
+
const b = t.option(i.incPAD).sum - t.option(i.incPAD).bonus;
|
|
627
|
+
if (t.option(i.incPAD).enchant += Math.floor(b / 50) + 1, d) {
|
|
628
|
+
const J = t.option(i.incMAD).sum - t.option(i.incMAD).bonus;
|
|
629
|
+
t.option(i.incMAD).enchant += Math.floor(J / 50) + 1;
|
|
631
630
|
}
|
|
632
631
|
}
|
|
633
632
|
} else
|
|
634
|
-
t.option(
|
|
635
|
-
if (!
|
|
636
|
-
const
|
|
637
|
-
t.option(
|
|
633
|
+
t.option(i.incPAD).enchant += h[s], t.option(i.incMAD).enchant += h[s], t.type === f.glove && (D === 0 ? (t.option(i.incPAD).enchant += U[s], t.option(i.incMAD).enchant += U[s]) : Math.floor(D / 2) % 2 === 1 ? t.option(i.incMAD).enchant += U[s] : t.option(i.incPAD).enchant += U[s]);
|
|
634
|
+
if (!r && t.type !== f.machineHeart) {
|
|
635
|
+
const d = t.option(i.incPDD).sum - t.option(i.incPDD).bonus;
|
|
636
|
+
t.option(i.incPDD).enchant += Math.floor(d / 20) + 1;
|
|
638
637
|
}
|
|
639
638
|
const S = [
|
|
640
639
|
f.cap,
|
|
@@ -648,78 +647,78 @@ function G(t, i = !1) {
|
|
|
648
647
|
f.shoulder,
|
|
649
648
|
f.shield
|
|
650
649
|
];
|
|
651
|
-
return
|
|
650
|
+
return r ? (t.option(i.incMHP).enchant += X[s], t.option(i.incMMP).enchant += X[s]) : S.includes(t.type) && (t.option(i.incMHP).enchant += X[s]), t.type === f.shoes && (t.option(i.incSpeed).enchant += K[s], t.option(i.incJump).enchant += K[s]), !0;
|
|
652
651
|
}
|
|
653
|
-
function
|
|
652
|
+
function G(t) {
|
|
654
653
|
if (t.star >= t.maxStar)
|
|
655
654
|
return !1;
|
|
656
655
|
t.star += 1;
|
|
657
|
-
const
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
656
|
+
const o = t.star, s = w(t, !1, !1), a = w(t, !1, !0), h = [
|
|
657
|
+
i.incSTR,
|
|
658
|
+
i.incDEX,
|
|
659
|
+
i.incINT,
|
|
660
|
+
i.incLUK
|
|
662
661
|
];
|
|
663
662
|
for (const c of h)
|
|
664
|
-
t.option(c).base > 0 && (t.option(c).enchant += s[
|
|
665
|
-
const
|
|
666
|
-
for (const c of
|
|
667
|
-
t.option(c).base > 0 && (t.option(c).enchant += a[
|
|
668
|
-
const M = t.option(
|
|
669
|
-
return t.option(
|
|
663
|
+
t.option(c).base > 0 && (t.option(c).enchant += s[o]);
|
|
664
|
+
const r = [i.incPAD, i.incMAD];
|
|
665
|
+
for (const c of r)
|
|
666
|
+
t.option(c).base > 0 && (t.option(c).enchant += a[o]);
|
|
667
|
+
const M = t.option(i.incPDD).sum - t.option(i.incPDD).bonus;
|
|
668
|
+
return t.option(i.incPDD).enchant += Math.floor(M / 20) + 1, !0;
|
|
670
669
|
}
|
|
671
|
-
function
|
|
672
|
-
if (t.getBooleanValue(
|
|
670
|
+
function H0(t, o = !1, s = !1) {
|
|
671
|
+
if (t.getBooleanValue(i.incCHUC) || t.getBooleanValue(i.superiorEqp) || t.req.level > 150 || t.star >= t.maxStar && !s || t.star >= I)
|
|
673
672
|
return !1;
|
|
674
|
-
t.amazing || (t.amazing = !0, t.maxStar = Math.min(t.maxStar,
|
|
675
|
-
const a = t.star, h = w(t, !0, !1),
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
673
|
+
t.amazing || (t.amazing = !0, t.maxStar = Math.min(t.maxStar, I)), t.star += 1;
|
|
674
|
+
const a = t.star, h = w(t, !0, !1), r = w(t, !0, !0), M = A.isWeapon(t.type) || t.type === f.katara, c = [
|
|
675
|
+
i.incSTR,
|
|
676
|
+
i.incDEX,
|
|
677
|
+
i.incINT,
|
|
678
|
+
i.incLUK
|
|
680
679
|
];
|
|
681
680
|
for (const S of c)
|
|
682
681
|
if (t.option(S).sum > 0) {
|
|
683
682
|
let b = h[a];
|
|
684
|
-
|
|
683
|
+
o && A.isAccessory(t.type) && (b += a > 5 ? 2 : 1), t.option(S).enchant += b;
|
|
685
684
|
}
|
|
686
|
-
const n = [
|
|
685
|
+
const n = [i.incPAD, i.incMAD];
|
|
687
686
|
for (const S of n) {
|
|
688
|
-
const
|
|
689
|
-
if (
|
|
690
|
-
M && (t.option(S).enchant += Math.floor(
|
|
691
|
-
let b =
|
|
692
|
-
|
|
687
|
+
const d = t.option(S).sum;
|
|
688
|
+
if (d > 0) {
|
|
689
|
+
M && (t.option(S).enchant += Math.floor(d / 50) + 1);
|
|
690
|
+
let b = r[a];
|
|
691
|
+
o && (M || t.type === f.shield) && (b += 1), t.option(S).enchant += b;
|
|
693
692
|
}
|
|
694
693
|
}
|
|
695
|
-
|
|
696
|
-
const D = t.option(
|
|
697
|
-
return t.option(
|
|
694
|
+
o && A.isArmor(t.type) && (t.option(i.incMHP).enchant += 50);
|
|
695
|
+
const D = t.option(i.incPDD).sum;
|
|
696
|
+
return t.option(i.incPDD).enchant += Math.floor(D / 20) + 1, !0;
|
|
698
697
|
}
|
|
699
698
|
function e(t) {
|
|
700
|
-
if (t.getBooleanValue(
|
|
699
|
+
if (t.getBooleanValue(i.incCHUC))
|
|
701
700
|
return !1;
|
|
702
701
|
t.star = 0, t.amazing = !1, t.maxStar = A.getMaxStar(t);
|
|
703
|
-
for (const [,
|
|
704
|
-
|
|
702
|
+
for (const [, o] of t.options)
|
|
703
|
+
o.enchant = 0;
|
|
705
704
|
return !0;
|
|
706
705
|
}
|
|
707
|
-
function
|
|
708
|
-
if (t.getBooleanValue(
|
|
706
|
+
function N0(t) {
|
|
707
|
+
if (t.getBooleanValue(i.incCHUC) || t.amazing)
|
|
709
708
|
return !1;
|
|
710
|
-
const
|
|
709
|
+
const o = t.star;
|
|
711
710
|
e(t);
|
|
712
|
-
for (let s = 0; s <
|
|
713
|
-
|
|
711
|
+
for (let s = 0; s < o; s++)
|
|
712
|
+
p(t, !0);
|
|
714
713
|
return !0;
|
|
715
714
|
}
|
|
716
|
-
function w(t,
|
|
715
|
+
function w(t, o, s) {
|
|
717
716
|
let a;
|
|
718
|
-
t.getBooleanValue(
|
|
717
|
+
t.getBooleanValue(i.superiorEqp) ? s ? a = t0 : a = n0 : o ? s ? a = s0 : a = a0 : s ? A.isWeapon(t.type) || t.type === f.katara ? a = c0 : a = o0 : a = i0;
|
|
719
718
|
const h = t.req.level;
|
|
720
|
-
for (const
|
|
721
|
-
if (h >=
|
|
722
|
-
return
|
|
719
|
+
for (const r of [...a].reverse())
|
|
720
|
+
if (h >= r[0])
|
|
721
|
+
return r;
|
|
723
722
|
throw Error(`Gear has invalid reqLevel.
|
|
724
723
|
` + t);
|
|
725
724
|
}
|
|
@@ -985,7 +984,7 @@ const t0 = [
|
|
|
985
984
|
37,
|
|
986
985
|
38
|
|
987
986
|
]
|
|
988
|
-
],
|
|
987
|
+
], o0 = [
|
|
989
988
|
[
|
|
990
989
|
0,
|
|
991
990
|
0,
|
|
@@ -1238,7 +1237,7 @@ const t0 = [
|
|
|
1238
1237
|
25,
|
|
1239
1238
|
27
|
|
1240
1239
|
]
|
|
1241
|
-
],
|
|
1240
|
+
], i0 = [
|
|
1242
1241
|
[
|
|
1243
1242
|
0,
|
|
1244
1243
|
2,
|
|
@@ -1600,17 +1599,30 @@ const t0 = [
|
|
|
1600
1599
|
0,
|
|
1601
1600
|
0
|
|
1602
1601
|
];
|
|
1603
|
-
function
|
|
1602
|
+
function I0(t, o) {
|
|
1603
|
+
if (t.exceptionalUpgradeCountLeft < 1)
|
|
1604
|
+
return !1;
|
|
1605
|
+
t.exceptionalUpgradeCount += 1;
|
|
1606
|
+
for (const [s, a] of o.option) {
|
|
1607
|
+
const h = t.exceptionalOptions.get(s) ?? 0;
|
|
1608
|
+
t.exceptionalOptions.set(s, h + a);
|
|
1609
|
+
}
|
|
1610
|
+
return !0;
|
|
1611
|
+
}
|
|
1612
|
+
function K0(t) {
|
|
1613
|
+
return t.exceptionalUpgradeCount = 0, t.exceptionalOptions.clear(), !0;
|
|
1614
|
+
}
|
|
1615
|
+
function f0(t, o, s) {
|
|
1604
1616
|
if (A.isWeapon(t.type) || t.type === f.katara)
|
|
1605
|
-
return
|
|
1617
|
+
return d0(t, o, s);
|
|
1606
1618
|
if (t.type === f.glove)
|
|
1607
|
-
return A0(t,
|
|
1619
|
+
return A0(t, o, s);
|
|
1608
1620
|
if (A.isArmor(t.type) || t.type === f.shoulder)
|
|
1609
|
-
return D0(t,
|
|
1621
|
+
return D0(t, o, s);
|
|
1610
1622
|
if (A.isAccessory(t.type))
|
|
1611
|
-
return M0(t,
|
|
1623
|
+
return M0(t, o, s);
|
|
1612
1624
|
if (t.type === f.machineHeart)
|
|
1613
|
-
return b0(t,
|
|
1625
|
+
return b0(t, o, s);
|
|
1614
1626
|
}
|
|
1615
1627
|
const h0 = {
|
|
1616
1628
|
100: [
|
|
@@ -1633,7 +1645,7 @@ const h0 = {
|
|
|
1633
1645
|
[7, 3],
|
|
1634
1646
|
[9, 4]
|
|
1635
1647
|
]
|
|
1636
|
-
},
|
|
1648
|
+
}, u0 = {
|
|
1637
1649
|
100: [
|
|
1638
1650
|
[1, 5, 1],
|
|
1639
1651
|
[2, 20, 2],
|
|
@@ -1654,17 +1666,17 @@ const h0 = {
|
|
|
1654
1666
|
[7, 110, 10],
|
|
1655
1667
|
[10, 170, 15]
|
|
1656
1668
|
]
|
|
1657
|
-
},
|
|
1669
|
+
}, O = {
|
|
1658
1670
|
30: [1, 2, 3],
|
|
1659
1671
|
15: [2, 3, 4]
|
|
1660
|
-
},
|
|
1672
|
+
}, _ = {
|
|
1661
1673
|
30: [1, 2, 3]
|
|
1662
|
-
},
|
|
1674
|
+
}, r0 = {
|
|
1663
1675
|
100: [0, 1, 1],
|
|
1664
1676
|
70: [1, 2, 2],
|
|
1665
1677
|
30: [2, 3, 3],
|
|
1666
1678
|
15: [3, 4, 4]
|
|
1667
|
-
},
|
|
1679
|
+
}, q = {
|
|
1668
1680
|
100: [1, 1, 2],
|
|
1669
1681
|
70: [2, 2, 3],
|
|
1670
1682
|
30: [3, 4, 5]
|
|
@@ -1672,145 +1684,145 @@ const h0 = {
|
|
|
1672
1684
|
100: [1, 2, 3],
|
|
1673
1685
|
70: [2, 3, 5],
|
|
1674
1686
|
30: [3, 5, 7]
|
|
1675
|
-
},
|
|
1676
|
-
[
|
|
1677
|
-
[
|
|
1678
|
-
[
|
|
1679
|
-
[
|
|
1680
|
-
[
|
|
1681
|
-
[
|
|
1687
|
+
}, H = {
|
|
1688
|
+
[i.incSTR]: i.incPAD,
|
|
1689
|
+
[i.incDEX]: i.incPAD,
|
|
1690
|
+
[i.incINT]: i.incMAD,
|
|
1691
|
+
[i.incLUK]: i.incPAD,
|
|
1692
|
+
[i.incMHP]: i.incPAD,
|
|
1693
|
+
[i.incAllStat]: i.incPAD
|
|
1682
1694
|
}, g = {
|
|
1683
|
-
[
|
|
1684
|
-
[
|
|
1685
|
-
[
|
|
1686
|
-
[
|
|
1687
|
-
[
|
|
1688
|
-
[
|
|
1689
|
-
[
|
|
1690
|
-
[
|
|
1695
|
+
[i.incSTR]: "힘",
|
|
1696
|
+
[i.incDEX]: "민첩",
|
|
1697
|
+
[i.incINT]: "지력",
|
|
1698
|
+
[i.incLUK]: "운",
|
|
1699
|
+
[i.incMHP]: "체력",
|
|
1700
|
+
[i.incAllStat]: "올스탯",
|
|
1701
|
+
[i.incPAD]: "공격력",
|
|
1702
|
+
[i.incMAD]: "마력"
|
|
1691
1703
|
};
|
|
1692
1704
|
function E(t) {
|
|
1693
1705
|
return t.req.level > 110 ? 2 : t.req.level > 70 ? 1 : 0;
|
|
1694
1706
|
}
|
|
1695
|
-
function
|
|
1696
|
-
if (
|
|
1707
|
+
function d0(t, o, s) {
|
|
1708
|
+
if (o === i.incAllStat)
|
|
1697
1709
|
return;
|
|
1698
1710
|
const a = E(t);
|
|
1699
|
-
let [h,
|
|
1700
|
-
const M =
|
|
1701
|
-
return
|
|
1702
|
-
[
|
|
1711
|
+
let [h, r] = h0[s][a];
|
|
1712
|
+
const M = H[o], c = g[M];
|
|
1713
|
+
return o === i.incMHP && (r *= 50), { name: r > 0 ? `${s}% ${c}(${g[o]}) 주문서` : `${s}% ${c} 주문서`, option: /* @__PURE__ */ new Map([
|
|
1714
|
+
[o, r],
|
|
1703
1715
|
[M, h]
|
|
1704
1716
|
]) };
|
|
1705
1717
|
}
|
|
1706
|
-
function D0(t,
|
|
1707
|
-
const a = E(t), [h,
|
|
1718
|
+
function D0(t, o, s) {
|
|
1719
|
+
const a = E(t), [h, r, M] = u0[s][a];
|
|
1708
1720
|
let c = [], n = [], D = [];
|
|
1709
|
-
if (
|
|
1710
|
-
n = [[
|
|
1711
|
-
else if (n = [[
|
|
1712
|
-
if (!(s in
|
|
1721
|
+
if (o === i.incMHP)
|
|
1722
|
+
n = [[i.incMHP, r + h * 50]];
|
|
1723
|
+
else if (n = [[i.incMHP, r]], o === i.incAllStat) {
|
|
1724
|
+
if (!(s in O))
|
|
1713
1725
|
return;
|
|
1714
|
-
const b =
|
|
1726
|
+
const b = O[s][a];
|
|
1715
1727
|
c = [
|
|
1716
|
-
[
|
|
1717
|
-
[
|
|
1718
|
-
[
|
|
1719
|
-
[
|
|
1728
|
+
[i.incSTR, b],
|
|
1729
|
+
[i.incDEX, b],
|
|
1730
|
+
[i.incINT, b],
|
|
1731
|
+
[i.incLUK, b]
|
|
1720
1732
|
];
|
|
1721
1733
|
} else
|
|
1722
|
-
c = [[
|
|
1734
|
+
c = [[o, h]];
|
|
1723
1735
|
t.upgradeCount === 3 && (t.req.job === 0 ? D = [
|
|
1724
|
-
[
|
|
1725
|
-
[
|
|
1726
|
-
] : Math.floor(t.req.job / 2) % 2 === 1 ? D = [[
|
|
1727
|
-
const S = `${s}% ${g[
|
|
1736
|
+
[i.incPAD, 1],
|
|
1737
|
+
[i.incMAD, 1]
|
|
1738
|
+
] : Math.floor(t.req.job / 2) % 2 === 1 ? D = [[i.incMAD, 1]] : D = [[i.incPAD, 1]]);
|
|
1739
|
+
const S = `${s}% ${g[o]} 주문서`, d = new Map([
|
|
1728
1740
|
...c,
|
|
1729
1741
|
...D,
|
|
1730
1742
|
...n,
|
|
1731
|
-
[
|
|
1743
|
+
[i.incPDD, M]
|
|
1732
1744
|
]);
|
|
1733
|
-
return { name: S, option:
|
|
1745
|
+
return { name: S, option: d };
|
|
1734
1746
|
}
|
|
1735
|
-
function A0(t,
|
|
1736
|
-
const a = E(t), h =
|
|
1747
|
+
function A0(t, o, s) {
|
|
1748
|
+
const a = E(t), h = r0[s][a];
|
|
1737
1749
|
if (h === 0)
|
|
1738
1750
|
return {
|
|
1739
1751
|
name: `${s}% 방어력 주문서`,
|
|
1740
|
-
option: /* @__PURE__ */ new Map([[
|
|
1752
|
+
option: /* @__PURE__ */ new Map([[i.incPDD, 3]])
|
|
1741
1753
|
};
|
|
1742
1754
|
{
|
|
1743
|
-
const
|
|
1755
|
+
const r = H[o];
|
|
1744
1756
|
return {
|
|
1745
|
-
name: `${s}% ${g[
|
|
1746
|
-
option: /* @__PURE__ */ new Map([[
|
|
1757
|
+
name: `${s}% ${g[r]} 주문서`,
|
|
1758
|
+
option: /* @__PURE__ */ new Map([[r, h]])
|
|
1747
1759
|
};
|
|
1748
1760
|
}
|
|
1749
1761
|
}
|
|
1750
|
-
function M0(t,
|
|
1751
|
-
if (!(s in
|
|
1762
|
+
function M0(t, o, s) {
|
|
1763
|
+
if (!(s in q))
|
|
1752
1764
|
return;
|
|
1753
|
-
const a = E(t), h =
|
|
1754
|
-
let
|
|
1755
|
-
if (
|
|
1756
|
-
|
|
1757
|
-
else if (
|
|
1758
|
-
if (!(s in
|
|
1765
|
+
const a = E(t), h = q[s][a];
|
|
1766
|
+
let r = [];
|
|
1767
|
+
if (o === i.incMHP)
|
|
1768
|
+
r = [[i.incMHP, h * 50]];
|
|
1769
|
+
else if (o === i.incAllStat) {
|
|
1770
|
+
if (!(s in _))
|
|
1759
1771
|
return;
|
|
1760
|
-
const n =
|
|
1761
|
-
|
|
1762
|
-
[
|
|
1763
|
-
[
|
|
1764
|
-
[
|
|
1765
|
-
[
|
|
1772
|
+
const n = _[s][a];
|
|
1773
|
+
r = [
|
|
1774
|
+
[i.incSTR, n],
|
|
1775
|
+
[i.incDEX, n],
|
|
1776
|
+
[i.incINT, n],
|
|
1777
|
+
[i.incLUK, n]
|
|
1766
1778
|
];
|
|
1767
1779
|
} else
|
|
1768
|
-
|
|
1769
|
-
const M = `${s}% ${g[
|
|
1780
|
+
r = [[o, h]];
|
|
1781
|
+
const M = `${s}% ${g[o]} 주문서`, c = new Map(r);
|
|
1770
1782
|
return { name: M, option: c };
|
|
1771
1783
|
}
|
|
1772
|
-
function b0(t,
|
|
1784
|
+
function b0(t, o, s) {
|
|
1773
1785
|
if (!(s in W))
|
|
1774
1786
|
return;
|
|
1775
|
-
const a = E(t), h = W[s][a],
|
|
1776
|
-
return { name: `${s}% ${g[
|
|
1787
|
+
const a = E(t), h = W[s][a], r = H[o];
|
|
1788
|
+
return { name: `${s}% ${g[o]} 주문서`, option: /* @__PURE__ */ new Map([[r, h]]) };
|
|
1777
1789
|
}
|
|
1778
|
-
function
|
|
1779
|
-
return t.getBooleanValue(
|
|
1790
|
+
function O0(t) {
|
|
1791
|
+
return t.getBooleanValue(i.blockGoldHammer) || t.getBooleanValue(i.onlyUpgrade) || t.totalUpgradeCount <= 0 || t.hammerCount > 0 ? !1 : (t.hammerCount = 1, !0);
|
|
1780
1792
|
}
|
|
1781
|
-
function S0(t,
|
|
1793
|
+
function S0(t, o) {
|
|
1782
1794
|
if (t.upgradeCountLeft < 1)
|
|
1783
1795
|
return !1;
|
|
1784
1796
|
t.upgradeCount += 1;
|
|
1785
|
-
for (const [s, a] of
|
|
1797
|
+
for (const [s, a] of o.option)
|
|
1786
1798
|
t.option(s).upgrade += a;
|
|
1787
1799
|
return !0;
|
|
1788
1800
|
}
|
|
1789
|
-
function
|
|
1790
|
-
const a = f0(t,
|
|
1801
|
+
function _0(t, o, s) {
|
|
1802
|
+
const a = f0(t, o, s);
|
|
1791
1803
|
return a ? S0(t, a) : !1;
|
|
1792
1804
|
}
|
|
1793
|
-
function
|
|
1805
|
+
function q0(t) {
|
|
1794
1806
|
return t.upgradeCountLeft < 1 ? !1 : (t.upgradeFailCount += 1, !0);
|
|
1795
1807
|
}
|
|
1796
|
-
function
|
|
1808
|
+
function W0(t) {
|
|
1797
1809
|
return t.upgradeFailCount < 1 ? !1 : (t.upgradeFailCount -= 1, !0);
|
|
1798
1810
|
}
|
|
1799
|
-
function
|
|
1811
|
+
function z0(t) {
|
|
1800
1812
|
t.upgradeCount = 0, t.upgradeFailCount = 0, t.hammerCount = 0;
|
|
1801
|
-
for (const [,
|
|
1802
|
-
|
|
1813
|
+
for (const [, o] of t.options)
|
|
1814
|
+
o.upgrade = 0;
|
|
1803
1815
|
return !0;
|
|
1804
1816
|
}
|
|
1805
1817
|
function v0(t) {
|
|
1806
|
-
const
|
|
1807
|
-
|
|
1818
|
+
const o = {};
|
|
1819
|
+
o.id = t.itemID, o.n = t.name, t.desc.length > 0 && (o.d = t.desc), o.i = t.icon, t.anvil && (o.an = t.anvil), o.t = t.type, o.r = t.req, o.pr = v(t.props, (a) => a !== 0), o.o = v(t.options, (a) => !a.empty, R0), t.totalUpgradeCount > 0 && (o.c = t.totalUpgradeCount), t.upgradeCount > 0 && (o.up = t.upgradeCount), t.upgradeFailCount > 0 && (o.f = t.upgradeFailCount), t.hammerCount > 0 && (o.h = t.hammerCount), t.exceptionalTotalUpgradeCount > 0 && (o.ec = t.exceptionalTotalUpgradeCount), t.exceptionalUpgradeCount > 0 && (o.eu = t.exceptionalUpgradeCount), o.eo = v(t.exceptionalOptions, (a) => a !== 0), t.maxStar > 0 && (o.m = t.maxStar), t.star > 0 && (o.s = t.star), t.amazing && (o.a = t.amazing), t.karma !== void 0 && (o.k = t.karma), t.canPotential && (o.cp = t.canPotential), t.grade > 0 && (o.g = t.grade), t.grade > 0 && t.potentials.length > 0 && (o.p = V(t.potentials, void 0, z)), t.additionalGrade > 0 && (o.g2 = t.additionalGrade), t.additionalGrade > 0 && t.additionalPotentials.length > 0 && (o.p2 = V(
|
|
1808
1820
|
t.additionalPotentials,
|
|
1809
1821
|
void 0,
|
|
1810
1822
|
z
|
|
1811
1823
|
));
|
|
1812
1824
|
const s = w0(t.soulWeapon);
|
|
1813
|
-
return s && (
|
|
1825
|
+
return s && (o.w = s), o;
|
|
1814
1826
|
}
|
|
1815
1827
|
function R0(t) {
|
|
1816
1828
|
return [t.base, t.bonus, t.upgrade, t.enchant];
|
|
@@ -1821,88 +1833,88 @@ function z(t) {
|
|
|
1821
1833
|
t: t.optionType,
|
|
1822
1834
|
l: t.reqLevel,
|
|
1823
1835
|
s: t.summary,
|
|
1824
|
-
o: v(t.option, (
|
|
1836
|
+
o: v(t.option, (o) => o !== 0)
|
|
1825
1837
|
} : null;
|
|
1826
1838
|
}
|
|
1827
1839
|
function w0(t) {
|
|
1828
|
-
const
|
|
1829
|
-
if (t.enchanted && (
|
|
1830
|
-
return
|
|
1840
|
+
const o = {};
|
|
1841
|
+
if (t.enchanted && (o.e = t.enchanted), t.soul && (o.s = g0(t.soul)), t.charge > 0 && (o.c = t.charge), t.chargeOption.size > 0 && (o.o = v(t.chargeOption, (s) => s !== 0)), Object.keys(o).length > 0)
|
|
1842
|
+
return o;
|
|
1831
1843
|
}
|
|
1832
1844
|
function g0(t) {
|
|
1833
1845
|
return t ? {
|
|
1834
1846
|
n: t.name,
|
|
1835
1847
|
s: t.skill,
|
|
1836
|
-
o: v(t.option, (
|
|
1848
|
+
o: v(t.option, (o) => o !== 0),
|
|
1837
1849
|
m: t.multiplier
|
|
1838
1850
|
} : void 0;
|
|
1839
1851
|
}
|
|
1840
1852
|
const C0 = (t) => {
|
|
1841
|
-
const
|
|
1853
|
+
const o = (c) => typeof c.id == "number" && typeof c.n == "string" && (c.d === void 0 || typeof c.d == "string") && typeof c.i == "object" && c.i !== null && typeof c.i.id == "number" && (c.an === void 0 || typeof c.an == "object" && c.an !== null && s(c.an)) && (c.t === 100 || c.t === 101 || c.t === 102 || c.t === 103 || c.t === 104 || c.t === 105 || c.t === 106 || c.t === 107 || c.t === 108 || c.t === 110 || c.t === 111 || c.t === 112 || c.t === 113 || c.t === 114 || c.t === 115 || c.t === 116 || c.t === 118 || c.t === 166 || c.t === 167 || c.t === 109 || c.t === 119 || c.t === 119020 || c.t === 1212 || c.t === 1213 || c.t === 1214 || c.t === 122 || c.t === 123 || c.t === 124 || c.t === 126 || c.t === 127 || c.t === 128 || c.t === 129 || c.t === 130 || c.t === 131 || c.t === 132 || c.t === 133 || c.t === 134 || c.t === 136 || c.t === 137 || c.t === 138 || c.t === 140 || c.t === 1404 || c.t === 141 || c.t === 142 || c.t === 143 || c.t === 144 || c.t === 145 || c.t === 146 || c.t === 147 || c.t === 148 || c.t === 149 || c.t === 150 || c.t === 151 || c.t === 152 || c.t === 153 || c.t === 156 || c.t === 157 || c.t === 158 || c.t === 159 || c.t === 1098 || c.t === 1099 || c.t === 135200 || c.t === 135210 || c.t === 135220 || c.t === 135221 || c.t === 135222 || c.t === 135223 || c.t === 135224 || c.t === 135225 || c.t === 135226 || c.t === 135227 || c.t === 135228 || c.t === 135229 || c.t === 135240 || c.t === 135250 || c.t === 135260 || c.t === 135270 || c.t === 135290 || c.t === 135291 || c.t === 135292 || c.t === 135293 || c.t === 135294 || c.t === 135295 || c.t === 135296 || c.t === 135297 || c.t === 135298 || c.t === 135300 || c.t === 135310 || c.t === 135320 || c.t === 135330 || c.t === 135340 || c.t === 135350 || c.t === 135360 || c.t === 135370 || c.t === 135380 || c.t === 135400 || c.t === 135401 || c.t === 135402 || c.t === 135403 || c.t === 180 || c.t === 161 || c.t === 162 || c.t === 163 || c.t === 164 || c.t === 165 || c.t === 194 || c.t === 195 || c.t === 196 || c.t === 197) && typeof c.r == "object" && c.r !== null && a(c.r) && Array.isArray(c.pr) && c.pr.every(
|
|
1842
1854
|
(n) => Array.isArray(n) && n.length === 2 && (n[0] === 1 || n[0] === 2 || n[0] === 3 || n[0] === 4 || n[0] === 5 || n[0] === 6 || n[0] === 7 || n[0] === 8 || n[0] === 9 || n[0] === 10 || n[0] === 11 || n[0] === 12 || n[0] === 13 || n[0] === 14 || n[0] === 15 || n[0] === 16 || n[0] === 17 || n[0] === 18 || n[0] === 19 || n[0] === 20 || n[0] === 21 || n[0] === 22 || n[0] === 23 || n[0] === 24 || n[0] === 25 || n[0] === 26 || n[0] === 27 || n[0] === 28 || n[0] === 29 || n[0] === 30 || n[0] === 31 || n[0] === 100 || n[0] === 101 || n[0] === 102 || n[0] === 103 || n[0] === 104 || n[0] === 105 || n[0] === 106 || n[0] === 107 || n[0] === 108 || n[0] === 109 || n[0] === 110 || n[0] === 111 || n[0] === 112 || n[0] === 113 || n[0] === 114 || n[0] === 115 || n[0] === 116 || n[0] === 117 || n[0] === 118 || n[0] === 119 || n[0] === 120 || n[0] === 121 || n[0] === 122 || n[0] === 123 || n[0] === 124 || n[0] === 125 || n[0] === 126 || n[0] === 127 || n[0] === 128 || n[0] === 129 || n[0] === 130 || n[0] === 131 || n[0] === 132 || n[0] === 133 || n[0] === 134 || n[0] === 135 || n[0] === 200 || n[0] === 201 || n[0] === 202 || n[0] === 203 || n[0] === 1100 || n[0] === 1101 || n[0] === 1102 || n[0] === 1103 || n[0] === 1104 || n[0] === 1105 || n[0] === 1106 || n[0] === 1107 || n[0] === 1108 || n[0] === 1109 || n[0] === 1110 || n[0] === 1111 || n[0] === 1112 || n[0] === 1113 || n[0] === 1114 || n[0] === 1115 || n[0] === 1116 || n[0] === 1117 || n[0] === 1118 || n[0] === 1119 || n[0] === 1120 || n[0] === 1121 || n[0] === 1122 || n[0] === 1123 || n[0] === 1124 || n[0] === 1125 || n[0] === 1126) && typeof n[1] == "number"
|
|
1843
1855
|
) && Array.isArray(c.o) && c.o.every(
|
|
1844
1856
|
(n) => Array.isArray(n) && n.length === 2 && (n[0] === 1 || n[0] === 2 || n[0] === 3 || n[0] === 4 || n[0] === 5 || n[0] === 6 || n[0] === 7 || n[0] === 8 || n[0] === 9 || n[0] === 10 || n[0] === 11 || n[0] === 12 || n[0] === 13 || n[0] === 14 || n[0] === 15 || n[0] === 16 || n[0] === 17 || n[0] === 18 || n[0] === 19 || n[0] === 20 || n[0] === 21 || n[0] === 22 || n[0] === 23 || n[0] === 24 || n[0] === 25 || n[0] === 26 || n[0] === 27 || n[0] === 28 || n[0] === 29 || n[0] === 30 || n[0] === 31 || n[0] === 100 || n[0] === 101 || n[0] === 102 || n[0] === 103 || n[0] === 104 || n[0] === 105 || n[0] === 106 || n[0] === 107 || n[0] === 108 || n[0] === 109 || n[0] === 110 || n[0] === 111 || n[0] === 112 || n[0] === 113 || n[0] === 114 || n[0] === 115 || n[0] === 116 || n[0] === 117 || n[0] === 118 || n[0] === 119 || n[0] === 120 || n[0] === 121 || n[0] === 122 || n[0] === 123 || n[0] === 124 || n[0] === 125 || n[0] === 126 || n[0] === 127 || n[0] === 128 || n[0] === 129 || n[0] === 130 || n[0] === 131 || n[0] === 132 || n[0] === 133 || n[0] === 134 || n[0] === 135 || n[0] === 200 || n[0] === 201 || n[0] === 202 || n[0] === 203 || n[0] === 1100 || n[0] === 1101 || n[0] === 1102 || n[0] === 1103 || n[0] === 1104 || n[0] === 1105 || n[0] === 1106 || n[0] === 1107 || n[0] === 1108 || n[0] === 1109 || n[0] === 1110 || n[0] === 1111 || n[0] === 1112 || n[0] === 1113 || n[0] === 1114 || n[0] === 1115 || n[0] === 1116 || n[0] === 1117 || n[0] === 1118 || n[0] === 1119 || n[0] === 1120 || n[0] === 1121 || n[0] === 1122 || n[0] === 1123 || n[0] === 1124 || n[0] === 1125 || n[0] === 1126) && Array.isArray(n[1]) && n[1].length === 4 && typeof n[1][0] == "number" && typeof n[1][1] == "number" && typeof n[1][2] == "number" && typeof n[1][3] == "number"
|
|
1845
1857
|
) && (c.c === void 0 || typeof c.c == "number") && (c.up === void 0 || typeof c.up == "number") && (c.f === void 0 || typeof c.f == "number") && (c.h === void 0 || typeof c.h == "number") && (c.ec === void 0 || typeof c.ec == "number") && (c.eu === void 0 || typeof c.eu == "number") && (c.eo === void 0 || Array.isArray(c.eo) && c.eo.every(
|
|
1846
1858
|
(n) => Array.isArray(n) && n.length === 2 && (n[0] === 1 || n[0] === 2 || n[0] === 3 || n[0] === 4 || n[0] === 5 || n[0] === 6 || n[0] === 7 || n[0] === 8 || n[0] === 9 || n[0] === 10 || n[0] === 11 || n[0] === 12 || n[0] === 13 || n[0] === 14 || n[0] === 15 || n[0] === 16 || n[0] === 17 || n[0] === 18 || n[0] === 19 || n[0] === 20 || n[0] === 21 || n[0] === 22 || n[0] === 23 || n[0] === 24 || n[0] === 25 || n[0] === 26 || n[0] === 27 || n[0] === 28 || n[0] === 29 || n[0] === 30 || n[0] === 31 || n[0] === 100 || n[0] === 101 || n[0] === 102 || n[0] === 103 || n[0] === 104 || n[0] === 105 || n[0] === 106 || n[0] === 107 || n[0] === 108 || n[0] === 109 || n[0] === 110 || n[0] === 111 || n[0] === 112 || n[0] === 113 || n[0] === 114 || n[0] === 115 || n[0] === 116 || n[0] === 117 || n[0] === 118 || n[0] === 119 || n[0] === 120 || n[0] === 121 || n[0] === 122 || n[0] === 123 || n[0] === 124 || n[0] === 125 || n[0] === 126 || n[0] === 127 || n[0] === 128 || n[0] === 129 || n[0] === 130 || n[0] === 131 || n[0] === 132 || n[0] === 133 || n[0] === 134 || n[0] === 135 || n[0] === 200 || n[0] === 201 || n[0] === 202 || n[0] === 203 || n[0] === 1100 || n[0] === 1101 || n[0] === 1102 || n[0] === 1103 || n[0] === 1104 || n[0] === 1105 || n[0] === 1106 || n[0] === 1107 || n[0] === 1108 || n[0] === 1109 || n[0] === 1110 || n[0] === 1111 || n[0] === 1112 || n[0] === 1113 || n[0] === 1114 || n[0] === 1115 || n[0] === 1116 || n[0] === 1117 || n[0] === 1118 || n[0] === 1119 || n[0] === 1120 || n[0] === 1121 || n[0] === 1122 || n[0] === 1123 || n[0] === 1124 || n[0] === 1125 || n[0] === 1126) && typeof n[1] == "number"
|
|
1847
1859
|
)) && (c.m === void 0 || typeof c.m == "number") && (c.s === void 0 || typeof c.s == "number") && (c.a === void 0 || typeof c.a == "boolean") && (c.k === void 0 || typeof c.k == "number") && (c.cp === void 0 || typeof c.cp == "boolean") && (c.g === void 0 || c.g === 0 || c.g === 1 || c.g === 2 || c.g === 3 || c.g === 4 || c.g === 5) && (c.p === void 0 || Array.isArray(c.p) && c.p.every(
|
|
1848
|
-
(n) => typeof n == "object" && n !== null && h(n)
|
|
1860
|
+
(n) => n === null || typeof n == "object" && n !== null && h(n)
|
|
1849
1861
|
)) && (c.g2 === void 0 || c.g2 === 0 || c.g2 === 1 || c.g2 === 2 || c.g2 === 3 || c.g2 === 4 || c.g2 === 5) && (c.p2 === void 0 || Array.isArray(c.p2) && c.p2.every(
|
|
1850
|
-
(n) => typeof n == "object" && n !== null && h(n)
|
|
1851
|
-
)) && (c.w === void 0 || typeof c.w == "object" && c.w !== null && Array.isArray(c.w) === !1 &&
|
|
1862
|
+
(n) => n === null || typeof n == "object" && n !== null && h(n)
|
|
1863
|
+
)) && (c.w === void 0 || typeof c.w == "object" && c.w !== null && Array.isArray(c.w) === !1 && r(c.w)), s = (c) => typeof c.name == "string" && typeof c.icon == "object" && c.icon !== null && typeof c.icon.id == "number", a = (c) => typeof c.level == "number" && typeof c.str == "number" && typeof c.luk == "number" && typeof c.dex == "number" && typeof c.int == "number" && typeof c.job == "number" && typeof c.specJob == "number", h = (c) => typeof c.c == "number" && typeof c.t == "number" && typeof c.l == "number" && typeof c.s == "string" && Array.isArray(c.o) && c.o.every(
|
|
1852
1864
|
(n) => Array.isArray(n) && n.length === 2 && (n[0] === 1 || n[0] === 2 || n[0] === 3 || n[0] === 4 || n[0] === 5 || n[0] === 6 || n[0] === 7 || n[0] === 8 || n[0] === 9 || n[0] === 10 || n[0] === 11 || n[0] === 12 || n[0] === 13 || n[0] === 14 || n[0] === 15 || n[0] === 16 || n[0] === 17 || n[0] === 18 || n[0] === 19 || n[0] === 20 || n[0] === 21 || n[0] === 22 || n[0] === 23 || n[0] === 24 || n[0] === 25 || n[0] === 26 || n[0] === 27 || n[0] === 28 || n[0] === 29 || n[0] === 30 || n[0] === 31 || n[0] === 100 || n[0] === 101 || n[0] === 102 || n[0] === 103 || n[0] === 104 || n[0] === 105 || n[0] === 106 || n[0] === 107 || n[0] === 108 || n[0] === 109 || n[0] === 110 || n[0] === 111 || n[0] === 112 || n[0] === 113 || n[0] === 114 || n[0] === 115 || n[0] === 116 || n[0] === 117 || n[0] === 118 || n[0] === 119 || n[0] === 120 || n[0] === 121 || n[0] === 122 || n[0] === 123 || n[0] === 124 || n[0] === 125 || n[0] === 126 || n[0] === 127 || n[0] === 128 || n[0] === 129 || n[0] === 130 || n[0] === 131 || n[0] === 132 || n[0] === 133 || n[0] === 134 || n[0] === 135 || n[0] === 200 || n[0] === 201 || n[0] === 202 || n[0] === 203 || n[0] === 1100 || n[0] === 1101 || n[0] === 1102 || n[0] === 1103 || n[0] === 1104 || n[0] === 1105 || n[0] === 1106 || n[0] === 1107 || n[0] === 1108 || n[0] === 1109 || n[0] === 1110 || n[0] === 1111 || n[0] === 1112 || n[0] === 1113 || n[0] === 1114 || n[0] === 1115 || n[0] === 1116 || n[0] === 1117 || n[0] === 1118 || n[0] === 1119 || n[0] === 1120 || n[0] === 1121 || n[0] === 1122 || n[0] === 1123 || n[0] === 1124 || n[0] === 1125 || n[0] === 1126) && typeof n[1] == "number"
|
|
1853
|
-
),
|
|
1865
|
+
), r = (c) => (c.e === void 0 || typeof c.e == "boolean") && (c.s === void 0 || typeof c.s == "object" && c.s !== null && M(c.s)) && (c.c === void 0 || typeof c.c == "number") && (c.o === void 0 || Array.isArray(c.o) && c.o.every(
|
|
1854
1866
|
(n) => Array.isArray(n) && n.length === 2 && (n[0] === 1 || n[0] === 2 || n[0] === 3 || n[0] === 4 || n[0] === 5 || n[0] === 6 || n[0] === 7 || n[0] === 8 || n[0] === 9 || n[0] === 10 || n[0] === 11 || n[0] === 12 || n[0] === 13 || n[0] === 14 || n[0] === 15 || n[0] === 16 || n[0] === 17 || n[0] === 18 || n[0] === 19 || n[0] === 20 || n[0] === 21 || n[0] === 22 || n[0] === 23 || n[0] === 24 || n[0] === 25 || n[0] === 26 || n[0] === 27 || n[0] === 28 || n[0] === 29 || n[0] === 30 || n[0] === 31 || n[0] === 100 || n[0] === 101 || n[0] === 102 || n[0] === 103 || n[0] === 104 || n[0] === 105 || n[0] === 106 || n[0] === 107 || n[0] === 108 || n[0] === 109 || n[0] === 110 || n[0] === 111 || n[0] === 112 || n[0] === 113 || n[0] === 114 || n[0] === 115 || n[0] === 116 || n[0] === 117 || n[0] === 118 || n[0] === 119 || n[0] === 120 || n[0] === 121 || n[0] === 122 || n[0] === 123 || n[0] === 124 || n[0] === 125 || n[0] === 126 || n[0] === 127 || n[0] === 128 || n[0] === 129 || n[0] === 130 || n[0] === 131 || n[0] === 132 || n[0] === 133 || n[0] === 134 || n[0] === 135 || n[0] === 200 || n[0] === 201 || n[0] === 202 || n[0] === 203 || n[0] === 1100 || n[0] === 1101 || n[0] === 1102 || n[0] === 1103 || n[0] === 1104 || n[0] === 1105 || n[0] === 1106 || n[0] === 1107 || n[0] === 1108 || n[0] === 1109 || n[0] === 1110 || n[0] === 1111 || n[0] === 1112 || n[0] === 1113 || n[0] === 1114 || n[0] === 1115 || n[0] === 1116 || n[0] === 1117 || n[0] === 1118 || n[0] === 1119 || n[0] === 1120 || n[0] === 1121 || n[0] === 1122 || n[0] === 1123 || n[0] === 1124 || n[0] === 1125 || n[0] === 1126) && typeof n[1] == "number"
|
|
1855
1867
|
)), M = (c) => typeof c.n == "string" && typeof c.s == "string" && Array.isArray(c.o) && c.o.every(
|
|
1856
1868
|
(n) => Array.isArray(n) && n.length === 2 && (n[0] === 1 || n[0] === 2 || n[0] === 3 || n[0] === 4 || n[0] === 5 || n[0] === 6 || n[0] === 7 || n[0] === 8 || n[0] === 9 || n[0] === 10 || n[0] === 11 || n[0] === 12 || n[0] === 13 || n[0] === 14 || n[0] === 15 || n[0] === 16 || n[0] === 17 || n[0] === 18 || n[0] === 19 || n[0] === 20 || n[0] === 21 || n[0] === 22 || n[0] === 23 || n[0] === 24 || n[0] === 25 || n[0] === 26 || n[0] === 27 || n[0] === 28 || n[0] === 29 || n[0] === 30 || n[0] === 31 || n[0] === 100 || n[0] === 101 || n[0] === 102 || n[0] === 103 || n[0] === 104 || n[0] === 105 || n[0] === 106 || n[0] === 107 || n[0] === 108 || n[0] === 109 || n[0] === 110 || n[0] === 111 || n[0] === 112 || n[0] === 113 || n[0] === 114 || n[0] === 115 || n[0] === 116 || n[0] === 117 || n[0] === 118 || n[0] === 119 || n[0] === 120 || n[0] === 121 || n[0] === 122 || n[0] === 123 || n[0] === 124 || n[0] === 125 || n[0] === 126 || n[0] === 127 || n[0] === 128 || n[0] === 129 || n[0] === 130 || n[0] === 131 || n[0] === 132 || n[0] === 133 || n[0] === 134 || n[0] === 135 || n[0] === 200 || n[0] === 201 || n[0] === 202 || n[0] === 203 || n[0] === 1100 || n[0] === 1101 || n[0] === 1102 || n[0] === 1103 || n[0] === 1104 || n[0] === 1105 || n[0] === 1106 || n[0] === 1107 || n[0] === 1108 || n[0] === 1109 || n[0] === 1110 || n[0] === 1111 || n[0] === 1112 || n[0] === 1113 || n[0] === 1114 || n[0] === 1115 || n[0] === 1116 || n[0] === 1117 || n[0] === 1118 || n[0] === 1119 || n[0] === 1120 || n[0] === 1121 || n[0] === 1122 || n[0] === 1123 || n[0] === 1124 || n[0] === 1125 || n[0] === 1126) && typeof n[1] == "number"
|
|
1857
1869
|
) && typeof c.m == "number";
|
|
1858
|
-
return typeof t == "object" && t !== null &&
|
|
1870
|
+
return typeof t == "object" && t !== null && o(t);
|
|
1859
1871
|
};
|
|
1860
|
-
function
|
|
1872
|
+
function V0(t) {
|
|
1861
1873
|
return JSON.stringify(v0(t));
|
|
1862
1874
|
}
|
|
1863
|
-
function
|
|
1875
|
+
function j0(t) {
|
|
1864
1876
|
return F(JSON.parse(t));
|
|
1865
1877
|
}
|
|
1866
|
-
function
|
|
1878
|
+
function $0(t) {
|
|
1867
1879
|
try {
|
|
1868
|
-
const
|
|
1869
|
-
if (C0(
|
|
1870
|
-
return F(
|
|
1880
|
+
const o = JSON.parse(t);
|
|
1881
|
+
if (C0(o))
|
|
1882
|
+
return F(o);
|
|
1871
1883
|
} catch {
|
|
1872
1884
|
}
|
|
1873
1885
|
return null;
|
|
1874
1886
|
}
|
|
1875
|
-
function v(t,
|
|
1887
|
+
function v(t, o, s) {
|
|
1876
1888
|
let a = [...t];
|
|
1877
|
-
return
|
|
1889
|
+
return o && (a = a.filter((h) => o(h[1]))), s ? a.map((h) => [h[0], s(h[1])]) : a;
|
|
1878
1890
|
}
|
|
1879
|
-
function V(t,
|
|
1891
|
+
function V(t, o, s) {
|
|
1880
1892
|
let a = t;
|
|
1881
|
-
return
|
|
1893
|
+
return o && (a = a.filter(o)), s ? a.map(s) : a === t ? [...t] : a;
|
|
1882
1894
|
}
|
|
1883
|
-
function R(t,
|
|
1884
|
-
return
|
|
1895
|
+
function R(t, o) {
|
|
1896
|
+
return o ? new Map(t.map((s) => [s[0], o(s[1])])) : new Map(t);
|
|
1885
1897
|
}
|
|
1886
|
-
function j(t,
|
|
1887
|
-
return
|
|
1898
|
+
function j(t, o) {
|
|
1899
|
+
return o ? [...t].map(o) : [...t];
|
|
1888
1900
|
}
|
|
1889
1901
|
function F(t) {
|
|
1890
|
-
const
|
|
1891
|
-
return
|
|
1902
|
+
const o = new A();
|
|
1903
|
+
return o.itemID = t.id, o.name = t.n, t.d && (o.desc = t.d), o.icon = t.i, t.an && (o.anvil = t.an), o.type = t.t, o.req = t.r, o.props = R(t.pr), o.options = R(t.o, E0), t.c && (o.totalUpgradeCount = t.c), t.up && (o.upgradeCount = t.up), t.f && (o.upgradeFailCount = t.f), t.h && (o.hammerCount = t.h), t.ec && (o.exceptionalTotalUpgradeCount = t.ec), t.eu && (o.exceptionalUpgradeCount = t.eu), t.eo && (o.exceptionalOptions = R(t.eo)), t.m && (o.maxStar = t.m), t.s && (o.star = t.s), t.a && (o.amazing = t.a), t.k && (o.karma = t.k), t.cp && (o.canPotential = t.cp), t.g && (o.grade = t.g), t.p && (o.potentials = j(t.p, $)), t.g2 && (o.additionalGrade = t.g2), t.p2 && (o.additionalPotentials = j(t.p2, $)), U0(t.w, o), o;
|
|
1892
1904
|
}
|
|
1893
1905
|
function E0(t) {
|
|
1894
|
-
const
|
|
1895
|
-
return
|
|
1906
|
+
const o = new k();
|
|
1907
|
+
return o.base = t[0], o.bonus = t[1], o.upgrade = t[2], o.enchant = t[3], o;
|
|
1896
1908
|
}
|
|
1897
1909
|
function $(t) {
|
|
1898
1910
|
if (!t)
|
|
1899
1911
|
return null;
|
|
1900
|
-
const
|
|
1901
|
-
return
|
|
1912
|
+
const o = new L();
|
|
1913
|
+
return o.code = t.c, o.optionType = t.t, o.reqLevel = t.l, o.summary = t.s, o.option = R(t.o), o;
|
|
1902
1914
|
}
|
|
1903
|
-
function U0(t,
|
|
1915
|
+
function U0(t, o) {
|
|
1904
1916
|
if (t) {
|
|
1905
|
-
const s =
|
|
1917
|
+
const s = o.soulWeapon;
|
|
1906
1918
|
t?.e && (s.enchanted = t.e), t?.s && (s.soul = X0(t.s)), t?.c && (s.charge = t.c), t?.o && (s.chargeOption = R(t.o));
|
|
1907
1919
|
}
|
|
1908
1920
|
}
|
|
@@ -1916,33 +1928,35 @@ function X0(t) {
|
|
|
1916
1928
|
};
|
|
1917
1929
|
}
|
|
1918
1930
|
export {
|
|
1919
|
-
|
|
1931
|
+
u as BonusStatType,
|
|
1920
1932
|
A as Gear,
|
|
1921
1933
|
k as GearOption,
|
|
1922
|
-
|
|
1934
|
+
i as GearPropType,
|
|
1923
1935
|
f as GearType,
|
|
1924
|
-
|
|
1925
|
-
|
|
1936
|
+
L as Potential,
|
|
1937
|
+
x as PotentialGrade,
|
|
1926
1938
|
B as SoulWeapon,
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1939
|
+
H0 as addAmazingEnhancement,
|
|
1940
|
+
x0 as addBonusStat,
|
|
1941
|
+
p as addStarforce,
|
|
1942
|
+
q0 as addUpgradeFailCount,
|
|
1943
|
+
I0 as applyExceptionalEnchant,
|
|
1944
|
+
O0 as applyGoldHammer,
|
|
1932
1945
|
S0 as applyScroll,
|
|
1933
|
-
|
|
1946
|
+
_0 as applySpellTrace,
|
|
1934
1947
|
v0 as gearToPlain,
|
|
1935
1948
|
Q as getBonusStatOption,
|
|
1936
1949
|
Z as getBonusStatValue,
|
|
1937
1950
|
f0 as getSpellTraceScroll,
|
|
1938
1951
|
C0 as isGearLike,
|
|
1939
|
-
|
|
1952
|
+
j0 as parseGear,
|
|
1940
1953
|
F as plainToGear,
|
|
1941
|
-
|
|
1942
|
-
|
|
1954
|
+
N0 as recalculateStarforce,
|
|
1955
|
+
L0 as resetBonusStat,
|
|
1943
1956
|
e as resetEnhancement,
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
W0 as
|
|
1947
|
-
V0 as
|
|
1957
|
+
K0 as resetExceptionalEnchant,
|
|
1958
|
+
z0 as resetUpgrade,
|
|
1959
|
+
W0 as restoreUpgradeCount,
|
|
1960
|
+
V0 as stringifyGear,
|
|
1961
|
+
$0 as validateParseGear
|
|
1948
1962
|
};
|