@malib/gear 0.15.0 → 0.15.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.
- package/index.cjs +2 -2
- package/index.d.ts +1 -1
- package/index.js +318 -316
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -15,7 +15,7 @@ class _ {
|
|
|
15
15
|
return this.bonus + this.upgrade + this.enchant;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
var
|
|
18
|
+
var s = /* @__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))(s || {}), r = /* @__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))(r || {}), S = /* @__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))(S || {});
|
|
19
19
|
class Q {
|
|
20
20
|
constructor(o) {
|
|
21
21
|
this.enchanted = !1, this.charge = 0, this.chargeOption = /* @__PURE__ */ new Map(), this.gear = o;
|
|
@@ -24,7 +24,7 @@ class Q {
|
|
|
24
24
|
return D.isWeapon(this.gear.type);
|
|
25
25
|
}
|
|
26
26
|
get type() {
|
|
27
|
-
return this.gear.option(
|
|
27
|
+
return this.gear.option(s.incPAD).base >= this.gear.option(s.incMAD).base ? s.incPAD : s.incMAD;
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
* 소울 인챈트를 적용합니다.
|
|
@@ -84,13 +84,13 @@ class Q {
|
|
|
84
84
|
return 0;
|
|
85
85
|
const o = Math.min(Math.ceil(this.charge / 100) - 1, 5);
|
|
86
86
|
if (this.soul) {
|
|
87
|
-
const
|
|
88
|
-
return 10 + o *
|
|
87
|
+
const i = this.soul.multiplier;
|
|
88
|
+
return 10 + o * i;
|
|
89
89
|
}
|
|
90
90
|
return 5 + o;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
const
|
|
93
|
+
const g = class {
|
|
94
94
|
constructor() {
|
|
95
95
|
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 = S.normal, this.potentials = [], this.additionalGrade = S.normal, this.additionalPotentials = [], this.soulWeapon = new Q(this), this.icon = {
|
|
96
96
|
id: 0
|
|
@@ -121,8 +121,8 @@ const E = class {
|
|
|
121
121
|
*/
|
|
122
122
|
get diff() {
|
|
123
123
|
let t = 0;
|
|
124
|
-
for (const [o,
|
|
125
|
-
t += Math.floor(
|
|
124
|
+
for (const [o, i] of this.options)
|
|
125
|
+
t += Math.floor(i.diff / g.getPropTypeWeight(o));
|
|
126
126
|
return t;
|
|
127
127
|
}
|
|
128
128
|
/**
|
|
@@ -133,7 +133,7 @@ const E = class {
|
|
|
133
133
|
* 장비 아이콘 왼쪽 위의 원이 채워져있으면 `true`; 아니면 `false`입니다.
|
|
134
134
|
*/
|
|
135
135
|
get isNewBonusType() {
|
|
136
|
-
return !!([...this.options.values()].some((o) => o.bonus > 0) && this.getPropValue(
|
|
136
|
+
return !!([...this.options.values()].some((o) => o.bonus > 0) && this.getPropValue(s.tradeAvailable) !== 1);
|
|
137
137
|
}
|
|
138
138
|
/**
|
|
139
139
|
* 지정된 장비 옵션 종류과 연결된 옵션을 가져옵니다.
|
|
@@ -304,41 +304,41 @@ const E = class {
|
|
|
304
304
|
* 최대 업그레이드 가능 횟수가 `0`이거나 `onlyUpgrade` 속성이 존재하거나 메카닉 장비 또는 드래곤 장비일 경우 `0`입니다.
|
|
305
305
|
*/
|
|
306
306
|
static getMaxStar(t) {
|
|
307
|
-
if (t.totalUpgradeCount <= 0 || t.getBooleanValue(
|
|
307
|
+
if (t.totalUpgradeCount <= 0 || t.getBooleanValue(s.onlyUpgrade) || g.isMechanicGear(t.type) || g.isDragonGear(t.type))
|
|
308
308
|
return 0;
|
|
309
309
|
let o;
|
|
310
|
-
const
|
|
311
|
-
for (const a of
|
|
312
|
-
if (
|
|
310
|
+
const i = t.req.level;
|
|
311
|
+
for (const a of g.starData)
|
|
312
|
+
if (i >= a[0])
|
|
313
313
|
o = a;
|
|
314
314
|
else
|
|
315
315
|
break;
|
|
316
|
-
return o === void 0 ? 0 : t.getBooleanValue(
|
|
316
|
+
return o === void 0 ? 0 : t.getBooleanValue(s.superiorEqp) ? o[2] : o[1];
|
|
317
317
|
}
|
|
318
318
|
static getPropTypeWeight(t) {
|
|
319
319
|
if (t < 100)
|
|
320
320
|
switch (t) {
|
|
321
|
-
case
|
|
322
|
-
case
|
|
323
|
-
case
|
|
324
|
-
case
|
|
325
|
-
case
|
|
326
|
-
case
|
|
327
|
-
case
|
|
328
|
-
case
|
|
321
|
+
case s.incSTR:
|
|
322
|
+
case s.incDEX:
|
|
323
|
+
case s.incINT:
|
|
324
|
+
case s.incLUK:
|
|
325
|
+
case s.incPAD:
|
|
326
|
+
case s.incMAD:
|
|
327
|
+
case s.incSpeed:
|
|
328
|
+
case s.incJump:
|
|
329
329
|
return 1;
|
|
330
|
-
case
|
|
331
|
-
case
|
|
330
|
+
case s.incMHP:
|
|
331
|
+
case s.incMMP:
|
|
332
332
|
return 100;
|
|
333
|
-
case
|
|
333
|
+
case s.incPDD:
|
|
334
334
|
return 10;
|
|
335
|
-
case
|
|
335
|
+
case s.incAD:
|
|
336
336
|
return 2;
|
|
337
337
|
}
|
|
338
338
|
return Number.MAX_VALUE;
|
|
339
339
|
}
|
|
340
340
|
};
|
|
341
|
-
let D =
|
|
341
|
+
let D = g;
|
|
342
342
|
D.starData = [
|
|
343
343
|
[0, 5, 3],
|
|
344
344
|
[95, 8, 5],
|
|
@@ -356,14 +356,14 @@ class w {
|
|
|
356
356
|
*/
|
|
357
357
|
get convertSummary() {
|
|
358
358
|
const o = [...this.option.keys()];
|
|
359
|
-
o.sort((a, f) =>
|
|
360
|
-
let
|
|
359
|
+
o.sort((a, f) => s[f].length - s[a].length);
|
|
360
|
+
let i = this.summary;
|
|
361
361
|
for (const a of o)
|
|
362
|
-
|
|
363
|
-
`#${
|
|
362
|
+
i = i.replace(
|
|
363
|
+
`#${s[a]}`,
|
|
364
364
|
(this.option.get(a) ?? 0).toString()
|
|
365
365
|
);
|
|
366
|
-
return
|
|
366
|
+
return i;
|
|
367
367
|
}
|
|
368
368
|
/**
|
|
369
369
|
* 장비의 착용 가능 레벨로부터 잠재옵션의 레벨을 계산합니다.
|
|
@@ -379,36 +379,36 @@ class w {
|
|
|
379
379
|
* @param gearType 장비 분류.
|
|
380
380
|
* @returns 잠재옵션 분류가 장비 분류에 적용 가능한 경우 `true`; 아닌 경우 `false`.
|
|
381
381
|
*/
|
|
382
|
-
static checkOptionType(o,
|
|
382
|
+
static checkOptionType(o, i) {
|
|
383
383
|
switch (o) {
|
|
384
384
|
case 0:
|
|
385
385
|
return !0;
|
|
386
386
|
case 10:
|
|
387
|
-
return D.isWeapon(
|
|
387
|
+
return D.isWeapon(i) || D.isSubWeapon(i) || i === r.emblem;
|
|
388
388
|
case 11:
|
|
389
|
-
return !w.checkOptionType(10,
|
|
389
|
+
return !w.checkOptionType(10, i);
|
|
390
390
|
case 20:
|
|
391
|
-
return D.isSubWeapon(
|
|
391
|
+
return D.isSubWeapon(i) || i === r.cap || i === r.coat || i === r.longcoat || i === r.pants || i === r.shoes || i === r.glove || i === r.cape || i === r.belt || i === r.shoulder;
|
|
392
392
|
case 40:
|
|
393
|
-
return
|
|
393
|
+
return i === r.faceAccessory || i === r.eyeAccessory || i === r.earrings || i === r.ring || i === r.pendant;
|
|
394
394
|
case 51:
|
|
395
|
-
return
|
|
395
|
+
return i === r.cap;
|
|
396
396
|
case 52:
|
|
397
|
-
return
|
|
397
|
+
return i === r.coat || i === r.longcoat;
|
|
398
398
|
case 53:
|
|
399
|
-
return
|
|
399
|
+
return i === r.pants;
|
|
400
400
|
case 54:
|
|
401
|
-
return
|
|
401
|
+
return i === r.glove;
|
|
402
402
|
case 55:
|
|
403
|
-
return
|
|
403
|
+
return i === r.shoes;
|
|
404
404
|
default:
|
|
405
405
|
return !1;
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
409
|
var d = /* @__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))(d || {});
|
|
410
|
-
function
|
|
411
|
-
const a = Y(t, o,
|
|
410
|
+
function J0(t, o, i) {
|
|
411
|
+
const a = Y(t, o, i);
|
|
412
412
|
if (a.size === 0)
|
|
413
413
|
return !1;
|
|
414
414
|
for (const [f, u] of a)
|
|
@@ -420,65 +420,65 @@ function Z(t) {
|
|
|
420
420
|
o.bonus = 0;
|
|
421
421
|
return !0;
|
|
422
422
|
}
|
|
423
|
-
function Y(t, o,
|
|
424
|
-
const a = G(o), f = P(t, o,
|
|
423
|
+
function Y(t, o, i) {
|
|
424
|
+
const a = G(o), f = P(t, o, i);
|
|
425
425
|
return f === 0 ? /* @__PURE__ */ new Map() : new Map(a.map((u) => [u, f]));
|
|
426
426
|
}
|
|
427
|
-
function P(t, o,
|
|
428
|
-
const a = t.req.level, f = t.getBooleanValue(
|
|
429
|
-
if (a < 0 || f &&
|
|
427
|
+
function P(t, o, i) {
|
|
428
|
+
const a = t.req.level, f = t.getBooleanValue(s.bossReward), u = t.type;
|
|
429
|
+
if (a < 0 || f && i < 3)
|
|
430
430
|
return 0;
|
|
431
431
|
switch (o) {
|
|
432
432
|
case d.STR:
|
|
433
433
|
case d.DEX:
|
|
434
434
|
case d.INT:
|
|
435
435
|
case d.LUK:
|
|
436
|
-
return
|
|
436
|
+
return H(a, i);
|
|
437
437
|
case d.STR_DEX:
|
|
438
438
|
case d.STR_INT:
|
|
439
439
|
case d.STR_LUK:
|
|
440
440
|
case d.DEX_INT:
|
|
441
441
|
case d.DEX_LUK:
|
|
442
442
|
case d.INT_LUK:
|
|
443
|
-
return
|
|
443
|
+
return m(a, i);
|
|
444
444
|
case d.PDD:
|
|
445
|
-
return
|
|
445
|
+
return H(a, i);
|
|
446
446
|
case d.PAD:
|
|
447
447
|
case d.MAD:
|
|
448
|
-
return
|
|
448
|
+
return p(
|
|
449
449
|
a,
|
|
450
|
-
|
|
450
|
+
i,
|
|
451
451
|
o,
|
|
452
452
|
t.type,
|
|
453
453
|
f,
|
|
454
|
-
t.option(
|
|
455
|
-
t.option(
|
|
454
|
+
t.option(s.incPAD).base,
|
|
455
|
+
t.option(s.incMAD).base
|
|
456
456
|
);
|
|
457
457
|
case d.MHP:
|
|
458
458
|
case d.MMP:
|
|
459
|
-
return y(a,
|
|
459
|
+
return y(a, i);
|
|
460
460
|
case d.speed:
|
|
461
461
|
case d.jump:
|
|
462
|
-
return D.isWeapon(u) ? 0 :
|
|
462
|
+
return D.isWeapon(u) ? 0 : i;
|
|
463
463
|
case d.damR:
|
|
464
|
-
return D.isWeapon(u) ?
|
|
464
|
+
return D.isWeapon(u) ? i : 0;
|
|
465
465
|
case d.bdR:
|
|
466
|
-
return a < 90 || !D.isWeapon(u) ? 0 : 2 *
|
|
466
|
+
return a < 90 || !D.isWeapon(u) ? 0 : 2 * i;
|
|
467
467
|
case d.allStatR:
|
|
468
|
-
return a < 70 && !D.isWeapon(u) ? 0 :
|
|
468
|
+
return a < 70 && !D.isWeapon(u) ? 0 : i;
|
|
469
469
|
case d.reduceReq:
|
|
470
|
-
return T(a,
|
|
470
|
+
return T(a, i);
|
|
471
471
|
default:
|
|
472
472
|
return 0;
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function H(t, o) {
|
|
476
476
|
return t >= 250 ? Math.floor(t / 20) * o : (Math.floor(t / 20) + 1) * o;
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function m(t, o) {
|
|
479
479
|
return (Math.floor(t / 40) + 1) * o;
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function p(t, o, i, a, f, u, h) {
|
|
482
482
|
if (D.isWeapon(a)) {
|
|
483
483
|
const c = f ? [0, 0, 1, 1.4666, 2.0166, 2.663, 3.4166] : [1, 2.222, 3.63, 5.325, 7.32, 8.777, 10.25];
|
|
484
484
|
let n = u;
|
|
@@ -518,7 +518,7 @@ function m(t, o, s, a, f, u, h) {
|
|
|
518
518
|
}
|
|
519
519
|
const M = t > 180 ? 6 : t > 160 ? 5 : t > 110 ? 4 : 3;
|
|
520
520
|
return Math.ceil(n * c[o - 1] * M / 100);
|
|
521
|
-
} else if (
|
|
521
|
+
} else if (i === d.MAD && h >= n && (n = h), f) {
|
|
522
522
|
const M = t > 160 ? 18 : t > 150 ? 15 : t > 110 ? 12 : 9;
|
|
523
523
|
return Math.ceil(n * c[o - 1] * M / 100);
|
|
524
524
|
} else {
|
|
@@ -538,80 +538,80 @@ function T(t, o) {
|
|
|
538
538
|
function G(t) {
|
|
539
539
|
switch (t) {
|
|
540
540
|
case d.STR:
|
|
541
|
-
return [
|
|
541
|
+
return [s.incSTR];
|
|
542
542
|
case d.DEX:
|
|
543
|
-
return [
|
|
543
|
+
return [s.incDEX];
|
|
544
544
|
case d.INT:
|
|
545
|
-
return [
|
|
545
|
+
return [s.incINT];
|
|
546
546
|
case d.LUK:
|
|
547
|
-
return [
|
|
547
|
+
return [s.incLUK];
|
|
548
548
|
case d.STR_DEX:
|
|
549
|
-
return [
|
|
549
|
+
return [s.incSTR, s.incDEX];
|
|
550
550
|
case d.STR_INT:
|
|
551
|
-
return [
|
|
551
|
+
return [s.incSTR, s.incINT];
|
|
552
552
|
case d.STR_LUK:
|
|
553
|
-
return [
|
|
553
|
+
return [s.incSTR, s.incLUK];
|
|
554
554
|
case d.DEX_INT:
|
|
555
|
-
return [
|
|
555
|
+
return [s.incDEX, s.incINT];
|
|
556
556
|
case d.DEX_LUK:
|
|
557
|
-
return [
|
|
557
|
+
return [s.incDEX, s.incLUK];
|
|
558
558
|
case d.INT_LUK:
|
|
559
|
-
return [
|
|
559
|
+
return [s.incINT, s.incLUK];
|
|
560
560
|
case d.PDD:
|
|
561
|
-
return [
|
|
561
|
+
return [s.incPDD];
|
|
562
562
|
case d.PAD:
|
|
563
|
-
return [
|
|
563
|
+
return [s.incPAD];
|
|
564
564
|
case d.MAD:
|
|
565
|
-
return [
|
|
565
|
+
return [s.incMAD];
|
|
566
566
|
case d.MHP:
|
|
567
|
-
return [
|
|
567
|
+
return [s.incMHP];
|
|
568
568
|
case d.MMP:
|
|
569
|
-
return [
|
|
569
|
+
return [s.incMMP];
|
|
570
570
|
case d.speed:
|
|
571
|
-
return [
|
|
571
|
+
return [s.incSpeed];
|
|
572
572
|
case d.jump:
|
|
573
|
-
return [
|
|
573
|
+
return [s.incJump];
|
|
574
574
|
case d.damR:
|
|
575
|
-
return [
|
|
575
|
+
return [s.damR];
|
|
576
576
|
case d.bdR:
|
|
577
|
-
return [
|
|
577
|
+
return [s.bdR];
|
|
578
578
|
case d.allStatR:
|
|
579
|
-
return [
|
|
579
|
+
return [s.statR];
|
|
580
580
|
case d.reduceReq:
|
|
581
|
-
return [
|
|
581
|
+
return [s.reduceReq];
|
|
582
582
|
default:
|
|
583
583
|
return [];
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
|
-
const e = 25,
|
|
586
|
+
const e = 25, I = 15;
|
|
587
587
|
function $(t, o = !1) {
|
|
588
|
-
if (t.getBooleanValue(
|
|
588
|
+
if (t.getBooleanValue(s.incCHUC))
|
|
589
589
|
return !1;
|
|
590
|
-
if (t.getBooleanValue(
|
|
590
|
+
if (t.getBooleanValue(s.superiorEqp))
|
|
591
591
|
return t0(t);
|
|
592
592
|
if (t.star >= t.maxStar && !o || t.star >= e)
|
|
593
593
|
return !1;
|
|
594
594
|
t.star += 1;
|
|
595
|
-
const
|
|
596
|
-
[
|
|
597
|
-
[
|
|
598
|
-
[
|
|
599
|
-
[
|
|
600
|
-
[
|
|
595
|
+
const i = t.star, a = U(t, !1, !1), f = U(t, !1, !0), u = D.isWeapon(t.type) || t.type === r.katara, h = [
|
|
596
|
+
[s.incSTR, s.incDEX],
|
|
597
|
+
[s.incINT, s.incLUK],
|
|
598
|
+
[s.incDEX, s.incSTR],
|
|
599
|
+
[s.incLUK, s.incDEX],
|
|
600
|
+
[s.incSTR, s.incDEX]
|
|
601
601
|
], c = [
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
602
|
+
s.incSTR,
|
|
603
|
+
s.incDEX,
|
|
604
|
+
s.incINT,
|
|
605
|
+
s.incLUK
|
|
606
606
|
];
|
|
607
607
|
let n;
|
|
608
608
|
const M = t.req.job;
|
|
609
609
|
if (M === 0)
|
|
610
610
|
n = /* @__PURE__ */ new Set([
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
611
|
+
s.incSTR,
|
|
612
|
+
s.incDEX,
|
|
613
|
+
s.incINT,
|
|
614
|
+
s.incLUK
|
|
615
615
|
]);
|
|
616
616
|
else {
|
|
617
617
|
n = /* @__PURE__ */ new Set();
|
|
@@ -621,23 +621,23 @@ function $(t, o = !1) {
|
|
|
621
621
|
n.add(b);
|
|
622
622
|
}
|
|
623
623
|
for (const A of c)
|
|
624
|
-
(n.has(A) ||
|
|
624
|
+
(n.has(A) || i > 15 && (t.option(A).base > 0 || t.option(A).upgrade > 0)) && (t.option(A).enchant += a[i]);
|
|
625
625
|
if (u) {
|
|
626
|
-
const A = M === 0 || Math.floor(M / 2) % 2 === 1 || t.option(
|
|
627
|
-
if (
|
|
628
|
-
t.option(
|
|
626
|
+
const A = M === 0 || Math.floor(M / 2) % 2 === 1 || t.option(s.incMAD).upgrade > 0;
|
|
627
|
+
if (i > 15)
|
|
628
|
+
t.option(s.incPAD).enchant += f[i], A && (t.option(s.incMAD).enchant += f[i]);
|
|
629
629
|
else {
|
|
630
|
-
const b = t.option(
|
|
631
|
-
if (t.option(
|
|
632
|
-
const B = t.option(
|
|
633
|
-
t.option(
|
|
630
|
+
const b = t.option(s.incPAD).sum - t.option(s.incPAD).bonus;
|
|
631
|
+
if (t.option(s.incPAD).enchant += Math.floor(b / 50) + 1, A) {
|
|
632
|
+
const B = t.option(s.incMAD).sum - t.option(s.incMAD).bonus;
|
|
633
|
+
t.option(s.incMAD).enchant += Math.floor(B / 50) + 1;
|
|
634
634
|
}
|
|
635
635
|
}
|
|
636
636
|
} else
|
|
637
|
-
t.option(
|
|
637
|
+
t.option(s.incPAD).enchant += f[i], t.option(s.incMAD).enchant += f[i], t.type === r.glove && (M === 0 ? (t.option(s.incPAD).enchant += X[i], t.option(s.incMAD).enchant += X[i]) : Math.floor(M / 2) % 2 === 1 ? t.option(s.incMAD).enchant += X[i] : t.option(s.incPAD).enchant += X[i]);
|
|
638
638
|
if (!u && t.type !== r.machineHeart) {
|
|
639
|
-
const A = t.option(
|
|
640
|
-
t.option(
|
|
639
|
+
const A = t.option(s.incPDD).sum - t.option(s.incPDD).bonus;
|
|
640
|
+
t.option(s.incPDD).enchant += Math.floor(A / 20) + 1;
|
|
641
641
|
}
|
|
642
642
|
const v = [
|
|
643
643
|
r.cap,
|
|
@@ -651,42 +651,42 @@ function $(t, o = !1) {
|
|
|
651
651
|
r.shoulder,
|
|
652
652
|
r.shield
|
|
653
653
|
];
|
|
654
|
-
return u ? (t.option(
|
|
654
|
+
return u ? (t.option(s.incMHP).enchant += L[i], t.option(s.incMMP).enchant += L[i]) : v.includes(t.type) && (t.option(s.incMHP).enchant += L[i]), t.type === r.shoes && (t.option(s.incSpeed).enchant += q[i], t.option(s.incJump).enchant += q[i]), !0;
|
|
655
655
|
}
|
|
656
656
|
function t0(t) {
|
|
657
657
|
if (t.star >= t.maxStar)
|
|
658
658
|
return !1;
|
|
659
659
|
t.star += 1;
|
|
660
|
-
const o = t.star,
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
660
|
+
const o = t.star, i = U(t, !1, !1), a = U(t, !1, !0), f = [
|
|
661
|
+
s.incSTR,
|
|
662
|
+
s.incDEX,
|
|
663
|
+
s.incINT,
|
|
664
|
+
s.incLUK
|
|
665
665
|
];
|
|
666
666
|
for (const c of f)
|
|
667
|
-
t.option(c).base > 0 && (t.option(c).enchant +=
|
|
668
|
-
const u = [
|
|
667
|
+
t.option(c).base > 0 && (t.option(c).enchant += i[o]);
|
|
668
|
+
const u = [s.incPAD, s.incMAD];
|
|
669
669
|
for (const c of u)
|
|
670
670
|
t.option(c).base > 0 && (t.option(c).enchant += a[o]);
|
|
671
|
-
const h = t.option(
|
|
672
|
-
return t.option(
|
|
671
|
+
const h = t.option(s.incPDD).sum - t.option(s.incPDD).bonus;
|
|
672
|
+
return t.option(s.incPDD).enchant += Math.floor(h / 20) + 1, !0;
|
|
673
673
|
}
|
|
674
|
-
function
|
|
675
|
-
if (t.getBooleanValue(
|
|
674
|
+
function B0(t, o = !1, i = !1) {
|
|
675
|
+
if (t.getBooleanValue(s.incCHUC) || t.getBooleanValue(s.superiorEqp) || t.req.level > 150 || t.star >= t.maxStar && !i || t.star >= I)
|
|
676
676
|
return !1;
|
|
677
|
-
t.amazing || (t.amazing = !0, t.maxStar = Math.min(t.maxStar,
|
|
678
|
-
const a = t.star, f =
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
677
|
+
t.amazing || (t.amazing = !0, t.maxStar = Math.min(t.maxStar, I)), t.star += 1;
|
|
678
|
+
const a = t.star, f = U(t, !0, !1), u = U(t, !0, !0), h = D.isWeapon(t.type) || t.type === r.katara, c = [
|
|
679
|
+
s.incSTR,
|
|
680
|
+
s.incDEX,
|
|
681
|
+
s.incINT,
|
|
682
|
+
s.incLUK
|
|
683
683
|
];
|
|
684
684
|
for (const v of c)
|
|
685
685
|
if (t.option(v).sum > 0) {
|
|
686
686
|
let b = f[a];
|
|
687
687
|
o && D.isAccessory(t.type) && (b += a > 5 ? 2 : 1), t.option(v).enchant += b;
|
|
688
688
|
}
|
|
689
|
-
const n = [
|
|
689
|
+
const n = [s.incPAD, s.incMAD];
|
|
690
690
|
for (const v of n) {
|
|
691
691
|
const A = t.option(v).sum;
|
|
692
692
|
if (A > 0) {
|
|
@@ -695,30 +695,30 @@ function J0(t, o = !1, s = !1) {
|
|
|
695
695
|
o && (h || t.type === r.shield) && (b += 1), t.option(v).enchant += b;
|
|
696
696
|
}
|
|
697
697
|
}
|
|
698
|
-
o && D.isArmor(t.type) && (t.option(
|
|
699
|
-
const M = t.option(
|
|
700
|
-
return t.option(
|
|
698
|
+
o && D.isArmor(t.type) && (t.option(s.incMHP).enchant += 50);
|
|
699
|
+
const M = t.option(s.incPDD).sum;
|
|
700
|
+
return t.option(s.incPDD).enchant += Math.floor(M / 20) + 1, !0;
|
|
701
701
|
}
|
|
702
702
|
function l(t) {
|
|
703
|
-
if (t.getBooleanValue(
|
|
703
|
+
if (t.getBooleanValue(s.incCHUC))
|
|
704
704
|
return !1;
|
|
705
705
|
t.star = 0, t.amazing = !1, t.maxStar = D.getMaxStar(t);
|
|
706
706
|
for (const [, o] of t.options)
|
|
707
707
|
o.enchant = 0;
|
|
708
708
|
return !0;
|
|
709
709
|
}
|
|
710
|
-
function
|
|
711
|
-
if (t.getBooleanValue(
|
|
710
|
+
function Q0(t) {
|
|
711
|
+
if (t.getBooleanValue(s.incCHUC) || t.amazing)
|
|
712
712
|
return !1;
|
|
713
713
|
const o = t.star;
|
|
714
714
|
l(t);
|
|
715
|
-
for (let
|
|
715
|
+
for (let i = 0; i < o; i++)
|
|
716
716
|
$(t, !0);
|
|
717
717
|
return !0;
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function U(t, o, i) {
|
|
720
720
|
let a;
|
|
721
|
-
t.getBooleanValue(
|
|
721
|
+
t.getBooleanValue(s.superiorEqp) ? i ? a = n0 : a = o0 : o ? i ? a = a0 : a = r0 : i ? D.isWeapon(t.type) || t.type === r.katara ? a = c0 : a = s0 : a = i0;
|
|
722
722
|
const f = t.req.level;
|
|
723
723
|
for (const u of [...a].reverse())
|
|
724
724
|
if (f >= u[0])
|
|
@@ -988,7 +988,7 @@ const n0 = [
|
|
|
988
988
|
37,
|
|
989
989
|
38
|
|
990
990
|
]
|
|
991
|
-
],
|
|
991
|
+
], s0 = [
|
|
992
992
|
[
|
|
993
993
|
0,
|
|
994
994
|
0,
|
|
@@ -1241,7 +1241,7 @@ const n0 = [
|
|
|
1241
1241
|
25,
|
|
1242
1242
|
27
|
|
1243
1243
|
]
|
|
1244
|
-
],
|
|
1244
|
+
], i0 = [
|
|
1245
1245
|
[
|
|
1246
1246
|
0,
|
|
1247
1247
|
2,
|
|
@@ -1603,30 +1603,30 @@ const n0 = [
|
|
|
1603
1603
|
0,
|
|
1604
1604
|
0
|
|
1605
1605
|
];
|
|
1606
|
-
function
|
|
1606
|
+
function Z0(t, o) {
|
|
1607
1607
|
if (t.exceptionalUpgradeCountLeft < 1)
|
|
1608
1608
|
return !1;
|
|
1609
1609
|
t.exceptionalUpgradeCount += 1;
|
|
1610
|
-
for (const [
|
|
1611
|
-
const f = t.exceptionalOptions.get(
|
|
1612
|
-
t.exceptionalOptions.set(
|
|
1610
|
+
for (const [i, a] of o.option) {
|
|
1611
|
+
const f = t.exceptionalOptions.get(i) ?? 0;
|
|
1612
|
+
t.exceptionalOptions.set(i, f + a);
|
|
1613
1613
|
}
|
|
1614
1614
|
return !0;
|
|
1615
1615
|
}
|
|
1616
1616
|
function f0(t) {
|
|
1617
1617
|
return t.exceptionalUpgradeCount = 0, t.exceptionalOptions.clear(), !0;
|
|
1618
1618
|
}
|
|
1619
|
-
function u0(t, o,
|
|
1619
|
+
function u0(t, o, i) {
|
|
1620
1620
|
if (D.isWeapon(t.type) || t.type === r.katara)
|
|
1621
|
-
return A0(t, o,
|
|
1621
|
+
return A0(t, o, i);
|
|
1622
1622
|
if (t.type === r.glove)
|
|
1623
|
-
return b0(t, o,
|
|
1623
|
+
return b0(t, o, i);
|
|
1624
1624
|
if (D.isArmor(t.type) || t.type === r.shoulder)
|
|
1625
|
-
return M0(t, o,
|
|
1625
|
+
return M0(t, o, i);
|
|
1626
1626
|
if (D.isAccessory(t.type))
|
|
1627
|
-
return v0(t, o,
|
|
1627
|
+
return v0(t, o, i);
|
|
1628
1628
|
if (t.type === r.machineHeart)
|
|
1629
|
-
return S0(t, o,
|
|
1629
|
+
return S0(t, o, i);
|
|
1630
1630
|
}
|
|
1631
1631
|
const d0 = {
|
|
1632
1632
|
100: [
|
|
@@ -1670,17 +1670,17 @@ const d0 = {
|
|
|
1670
1670
|
[7, 110, 10],
|
|
1671
1671
|
[10, 170, 15]
|
|
1672
1672
|
]
|
|
1673
|
-
},
|
|
1673
|
+
}, K = {
|
|
1674
1674
|
30: [1, 2, 3],
|
|
1675
1675
|
15: [2, 3, 4]
|
|
1676
|
-
},
|
|
1676
|
+
}, k = {
|
|
1677
1677
|
30: [1, 2, 3]
|
|
1678
1678
|
}, D0 = {
|
|
1679
1679
|
100: [0, 1, 1],
|
|
1680
1680
|
70: [1, 2, 2],
|
|
1681
1681
|
30: [2, 3, 3],
|
|
1682
1682
|
15: [3, 4, 4]
|
|
1683
|
-
},
|
|
1683
|
+
}, O = {
|
|
1684
1684
|
100: [1, 1, 2],
|
|
1685
1685
|
70: [2, 2, 3],
|
|
1686
1686
|
30: [3, 4, 5]
|
|
@@ -1689,124 +1689,124 @@ const d0 = {
|
|
|
1689
1689
|
70: [2, 3, 5],
|
|
1690
1690
|
30: [3, 5, 7]
|
|
1691
1691
|
}, N = {
|
|
1692
|
-
[
|
|
1693
|
-
[
|
|
1694
|
-
[
|
|
1695
|
-
[
|
|
1696
|
-
[
|
|
1697
|
-
[
|
|
1698
|
-
},
|
|
1699
|
-
[
|
|
1700
|
-
[
|
|
1701
|
-
[
|
|
1702
|
-
[
|
|
1703
|
-
[
|
|
1704
|
-
[
|
|
1705
|
-
[
|
|
1706
|
-
[
|
|
1692
|
+
[s.incSTR]: s.incPAD,
|
|
1693
|
+
[s.incDEX]: s.incPAD,
|
|
1694
|
+
[s.incINT]: s.incMAD,
|
|
1695
|
+
[s.incLUK]: s.incPAD,
|
|
1696
|
+
[s.incMHP]: s.incPAD,
|
|
1697
|
+
[s.incAllStat]: s.incPAD
|
|
1698
|
+
}, E = {
|
|
1699
|
+
[s.incSTR]: "힘",
|
|
1700
|
+
[s.incDEX]: "민첩",
|
|
1701
|
+
[s.incINT]: "지력",
|
|
1702
|
+
[s.incLUK]: "운",
|
|
1703
|
+
[s.incMHP]: "체력",
|
|
1704
|
+
[s.incAllStat]: "올스탯",
|
|
1705
|
+
[s.incPAD]: "공격력",
|
|
1706
|
+
[s.incMAD]: "마력"
|
|
1707
1707
|
};
|
|
1708
1708
|
function x(t) {
|
|
1709
1709
|
return t.req.level > 110 ? 2 : t.req.level > 70 ? 1 : 0;
|
|
1710
1710
|
}
|
|
1711
|
-
function A0(t, o,
|
|
1712
|
-
if (o ===
|
|
1711
|
+
function A0(t, o, i) {
|
|
1712
|
+
if (o === s.incAllStat)
|
|
1713
1713
|
return;
|
|
1714
1714
|
const a = x(t);
|
|
1715
|
-
let [f, u] = d0[
|
|
1716
|
-
const h = N[o], c =
|
|
1717
|
-
return o ===
|
|
1715
|
+
let [f, u] = d0[i][a];
|
|
1716
|
+
const h = N[o], c = E[h];
|
|
1717
|
+
return o === s.incMHP && (u *= 50), { name: u > 0 ? `${i}% ${c}(${E[o]}) 주문서` : `${i}% ${c} 주문서`, option: /* @__PURE__ */ new Map([
|
|
1718
1718
|
[o, u],
|
|
1719
1719
|
[h, f]
|
|
1720
1720
|
]) };
|
|
1721
1721
|
}
|
|
1722
|
-
function M0(t, o,
|
|
1723
|
-
const a = x(t), [f, u, h] = h0[
|
|
1722
|
+
function M0(t, o, i) {
|
|
1723
|
+
const a = x(t), [f, u, h] = h0[i][a];
|
|
1724
1724
|
let c = [], n = [], M = [];
|
|
1725
|
-
if (o ===
|
|
1726
|
-
n = [[
|
|
1727
|
-
else if (n = [[
|
|
1728
|
-
if (!(
|
|
1725
|
+
if (o === s.incMHP)
|
|
1726
|
+
n = [[s.incMHP, u + f * 50]];
|
|
1727
|
+
else if (n = [[s.incMHP, u]], o === s.incAllStat) {
|
|
1728
|
+
if (!(i in K))
|
|
1729
1729
|
return;
|
|
1730
|
-
const b =
|
|
1730
|
+
const b = K[i][a];
|
|
1731
1731
|
c = [
|
|
1732
|
-
[
|
|
1733
|
-
[
|
|
1734
|
-
[
|
|
1735
|
-
[
|
|
1732
|
+
[s.incSTR, b],
|
|
1733
|
+
[s.incDEX, b],
|
|
1734
|
+
[s.incINT, b],
|
|
1735
|
+
[s.incLUK, b]
|
|
1736
1736
|
];
|
|
1737
1737
|
} else
|
|
1738
1738
|
c = [[o, f]];
|
|
1739
1739
|
t.upgradeCount === 3 && (t.req.job === 0 ? M = [
|
|
1740
|
-
[
|
|
1741
|
-
[
|
|
1742
|
-
] : Math.floor(t.req.job / 2) % 2 === 1 ? M = [[
|
|
1743
|
-
const v = `${
|
|
1740
|
+
[s.incPAD, 1],
|
|
1741
|
+
[s.incMAD, 1]
|
|
1742
|
+
] : Math.floor(t.req.job / 2) % 2 === 1 ? M = [[s.incMAD, 1]] : M = [[s.incPAD, 1]]);
|
|
1743
|
+
const v = `${i}% ${E[o]} 주문서`, A = new Map([
|
|
1744
1744
|
...c,
|
|
1745
1745
|
...M,
|
|
1746
1746
|
...n,
|
|
1747
|
-
[
|
|
1747
|
+
[s.incPDD, h]
|
|
1748
1748
|
]);
|
|
1749
1749
|
return { name: v, option: A };
|
|
1750
1750
|
}
|
|
1751
|
-
function b0(t, o,
|
|
1752
|
-
const a = x(t), f = D0[
|
|
1751
|
+
function b0(t, o, i) {
|
|
1752
|
+
const a = x(t), f = D0[i][a];
|
|
1753
1753
|
if (f === 0)
|
|
1754
1754
|
return {
|
|
1755
|
-
name: `${
|
|
1756
|
-
option: /* @__PURE__ */ new Map([[
|
|
1755
|
+
name: `${i}% 방어력 주문서`,
|
|
1756
|
+
option: /* @__PURE__ */ new Map([[s.incPDD, 3]])
|
|
1757
1757
|
};
|
|
1758
1758
|
{
|
|
1759
1759
|
const u = N[o];
|
|
1760
1760
|
return {
|
|
1761
|
-
name: `${
|
|
1761
|
+
name: `${i}% ${E[u]} 주문서`,
|
|
1762
1762
|
option: /* @__PURE__ */ new Map([[u, f]])
|
|
1763
1763
|
};
|
|
1764
1764
|
}
|
|
1765
1765
|
}
|
|
1766
|
-
function v0(t, o,
|
|
1767
|
-
if (!(
|
|
1766
|
+
function v0(t, o, i) {
|
|
1767
|
+
if (!(i in O))
|
|
1768
1768
|
return;
|
|
1769
|
-
const a = x(t), f =
|
|
1769
|
+
const a = x(t), f = O[i][a];
|
|
1770
1770
|
let u = [];
|
|
1771
|
-
if (o ===
|
|
1772
|
-
u = [[
|
|
1773
|
-
else if (o ===
|
|
1774
|
-
if (!(
|
|
1771
|
+
if (o === s.incMHP)
|
|
1772
|
+
u = [[s.incMHP, f * 50]];
|
|
1773
|
+
else if (o === s.incAllStat) {
|
|
1774
|
+
if (!(i in k))
|
|
1775
1775
|
return;
|
|
1776
|
-
const n =
|
|
1776
|
+
const n = k[i][a];
|
|
1777
1777
|
u = [
|
|
1778
|
-
[
|
|
1779
|
-
[
|
|
1780
|
-
[
|
|
1781
|
-
[
|
|
1778
|
+
[s.incSTR, n],
|
|
1779
|
+
[s.incDEX, n],
|
|
1780
|
+
[s.incINT, n],
|
|
1781
|
+
[s.incLUK, n]
|
|
1782
1782
|
];
|
|
1783
1783
|
} else
|
|
1784
1784
|
u = [[o, f]];
|
|
1785
|
-
const h = `${
|
|
1785
|
+
const h = `${i}% ${E[o]} 주문서`, c = new Map(u);
|
|
1786
1786
|
return { name: h, option: c };
|
|
1787
1787
|
}
|
|
1788
|
-
function S0(t, o,
|
|
1789
|
-
if (!(
|
|
1788
|
+
function S0(t, o, i) {
|
|
1789
|
+
if (!(i in W))
|
|
1790
1790
|
return;
|
|
1791
|
-
const a = x(t), f = W[
|
|
1792
|
-
return { name: `${
|
|
1791
|
+
const a = x(t), f = W[i][a], u = N[o];
|
|
1792
|
+
return { name: `${i}% ${E[o]} 주문서`, option: /* @__PURE__ */ new Map([[u, f]]) };
|
|
1793
1793
|
}
|
|
1794
|
-
function
|
|
1795
|
-
return t.getBooleanValue(
|
|
1794
|
+
function Y0(t) {
|
|
1795
|
+
return t.getBooleanValue(s.blockGoldHammer) || t.getBooleanValue(s.onlyUpgrade) || t.totalUpgradeCount <= 0 || t.hammerCount > 0 ? !1 : (t.hammerCount = 1, !0);
|
|
1796
1796
|
}
|
|
1797
1797
|
function R0(t, o) {
|
|
1798
1798
|
if (t.upgradeCountLeft < 1)
|
|
1799
1799
|
return !1;
|
|
1800
1800
|
t.upgradeCount += 1;
|
|
1801
|
-
for (const [
|
|
1802
|
-
t.option(
|
|
1801
|
+
for (const [i, a] of o.option)
|
|
1802
|
+
t.option(i).upgrade += a;
|
|
1803
1803
|
return !0;
|
|
1804
1804
|
}
|
|
1805
|
-
function
|
|
1806
|
-
const a = u0(t, o,
|
|
1805
|
+
function P0(t, o, i) {
|
|
1806
|
+
const a = u0(t, o, i);
|
|
1807
1807
|
return a ? R0(t, a) : !1;
|
|
1808
1808
|
}
|
|
1809
|
-
function
|
|
1809
|
+
function m0(t) {
|
|
1810
1810
|
return t.upgradeCountLeft < 1 ? !1 : (t.upgradeFailCount += 1, !0);
|
|
1811
1811
|
}
|
|
1812
1812
|
function p0(t) {
|
|
@@ -1818,7 +1818,7 @@ function C0(t) {
|
|
|
1818
1818
|
o.upgrade = 0;
|
|
1819
1819
|
return !0;
|
|
1820
1820
|
}
|
|
1821
|
-
function w0(t, o,
|
|
1821
|
+
function w0(t, o, i) {
|
|
1822
1822
|
const a = new D();
|
|
1823
1823
|
if (a.itemID = o, a.type = D.getGearType(o), a.name = t.name, a.desc = t.desc ?? "", a.icon = {
|
|
1824
1824
|
id: t.icon
|
|
@@ -1832,17 +1832,17 @@ function w0(t, o, s) {
|
|
|
1832
1832
|
specJob: t.req.specJob ?? 0
|
|
1833
1833
|
}), t.options)
|
|
1834
1834
|
for (const [h, c] of Object.entries(t.options)) {
|
|
1835
|
-
const n =
|
|
1835
|
+
const n = s[h];
|
|
1836
1836
|
a.option(n).base = c;
|
|
1837
1837
|
}
|
|
1838
1838
|
if (t.props)
|
|
1839
1839
|
for (const [h, c] of Object.entries(t.props)) {
|
|
1840
|
-
const n =
|
|
1840
|
+
const n = s[h];
|
|
1841
1841
|
a.props.set(n, c);
|
|
1842
1842
|
}
|
|
1843
|
-
t.pots && (a.potentials = t.pots.map((h) =>
|
|
1843
|
+
t.pots && (a.potentials = t.pots.map((h) => i(h.option, h.level)).filter((h) => h !== void 0)), (a.totalUpgradeCount > 0 || U0(a.type) || D.isSubWeapon(a.type) || a.getBooleanValue(s.tucIgnoreForPotential) || E0(a.itemID)) && (a.canPotential = !0), (D.isMechanicGear(a.type) || D.isDragonGear(a.type)) && (a.canPotential = !1), a.getBooleanValue(s.noPotential) && (a.canPotential = !1);
|
|
1844
1844
|
let f;
|
|
1845
|
-
if (f = a.getPropValue(
|
|
1845
|
+
if (f = a.getPropValue(s.fixedGrade))
|
|
1846
1846
|
switch (f) {
|
|
1847
1847
|
case 2:
|
|
1848
1848
|
a.grade = S.rare;
|
|
@@ -1860,11 +1860,11 @@ function w0(t, o, s) {
|
|
|
1860
1860
|
a.grade = f - 1;
|
|
1861
1861
|
break;
|
|
1862
1862
|
}
|
|
1863
|
-
a.potentials.some((h) => h !== void 0) && a.grade === S.normal && (a.grade = S.rare), a.type === r.demonShield && (f = a.option(
|
|
1864
|
-
const u = a.getPropValue(
|
|
1863
|
+
a.potentials.some((h) => h !== void 0) && a.grade === S.normal && (a.grade = S.rare), a.type === r.demonShield && (f = a.option(s.incMMP).base, f > 0 && (a.option(s.incMDF).base = f, a.option(s.incMMP).base = 0)), a.maxStar = D.getMaxStar(a);
|
|
1864
|
+
const u = a.getPropValue(s.incCHUC);
|
|
1865
1865
|
return u > 0 && (a.star = u), a;
|
|
1866
1866
|
}
|
|
1867
|
-
function
|
|
1867
|
+
function U0(t) {
|
|
1868
1868
|
switch (t) {
|
|
1869
1869
|
case r.soulShield:
|
|
1870
1870
|
case r.demonShield:
|
|
@@ -1881,7 +1881,7 @@ function g0(t) {
|
|
|
1881
1881
|
return !1;
|
|
1882
1882
|
}
|
|
1883
1883
|
}
|
|
1884
|
-
function
|
|
1884
|
+
function E0(t) {
|
|
1885
1885
|
switch (t) {
|
|
1886
1886
|
case 1113231:
|
|
1887
1887
|
case 1114302:
|
|
@@ -1891,13 +1891,13 @@ function U0(t) {
|
|
|
1891
1891
|
return !1;
|
|
1892
1892
|
}
|
|
1893
1893
|
}
|
|
1894
|
-
class
|
|
1894
|
+
class y0 {
|
|
1895
1895
|
/**
|
|
1896
1896
|
* @param gears KMS 장비 정보
|
|
1897
1897
|
* @param
|
|
1898
1898
|
*/
|
|
1899
|
-
constructor(o,
|
|
1900
|
-
this.gears = o, this.potentialRepository =
|
|
1899
|
+
constructor(o, i) {
|
|
1900
|
+
this.gears = o, this.potentialRepository = i;
|
|
1901
1901
|
}
|
|
1902
1902
|
/**
|
|
1903
1903
|
* 아이템 ID 목록을 반환합니다.
|
|
@@ -1916,21 +1916,21 @@ class m0 {
|
|
|
1916
1916
|
return w0(
|
|
1917
1917
|
this.gears[o],
|
|
1918
1918
|
o,
|
|
1919
|
-
(
|
|
1919
|
+
(i, a) => this.potentialRepository.createPotentialFromCode(i, a)
|
|
1920
1920
|
);
|
|
1921
1921
|
}
|
|
1922
1922
|
}
|
|
1923
|
-
function
|
|
1923
|
+
function g0(t, o, i) {
|
|
1924
1924
|
const a = new w();
|
|
1925
1925
|
a.code = o, a.optionType = t.optionType ?? 0, a.reqLevel = t.reqLevel ?? 0, a.summary = t.string;
|
|
1926
|
-
for (const [u, h] of Object.entries(t.level[
|
|
1927
|
-
const c =
|
|
1926
|
+
for (const [u, h] of Object.entries(t.level[i])) {
|
|
1927
|
+
const c = s[u];
|
|
1928
1928
|
typeof h == "number" && a.option.set(c, h);
|
|
1929
1929
|
}
|
|
1930
|
-
const f = a.option.get(
|
|
1931
|
-
return f > 0 && (a.option.get(
|
|
1930
|
+
const f = a.option.get(s.incDAMr) ?? 0;
|
|
1931
|
+
return f > 0 && (a.option.get(s.boss) ?? 0) > 0 && (a.option.delete(s.incDAMr), a.option.delete(s.boss), a.option.set(s.incBDR, f), a.summary = a.summary.replace("#incDAMr", "#incBDR")), a;
|
|
1932
1932
|
}
|
|
1933
|
-
class
|
|
1933
|
+
class T0 {
|
|
1934
1934
|
/**
|
|
1935
1935
|
* @param itemOptions KMS 잠재옵션 정보
|
|
1936
1936
|
*/
|
|
@@ -1944,19 +1944,20 @@ class y0 {
|
|
|
1944
1944
|
* @param potentialLevel 장비의 착용 가능 레벨로 계산되는 잠재옵션 레벨. `1`부터 `25`까지의 값입니다.
|
|
1945
1945
|
* @returns 코드에 해당하는 잠재옵션. 존재하지 않을 경우 `undefined`를 반환합니다.
|
|
1946
1946
|
*/
|
|
1947
|
-
createPotentialFromCode(o,
|
|
1947
|
+
createPotentialFromCode(o, i) {
|
|
1948
1948
|
if (o in this.itemOptions)
|
|
1949
|
-
return
|
|
1949
|
+
return g0(
|
|
1950
1950
|
this.itemOptions[o],
|
|
1951
1951
|
o,
|
|
1952
|
-
|
|
1952
|
+
i
|
|
1953
1953
|
);
|
|
1954
1954
|
}
|
|
1955
1955
|
}
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1956
|
+
var x0 = /* @__PURE__ */ ((t) => (t.PAD = "PAD", t.MAD = "MAD", t.allStat = "allStat", t.MHP = "MHP", t.cr = "cr", t.bdR = "bdR", t.imdR = "imdR", t))(x0 || {});
|
|
1957
|
+
function X0(t, o = "PAD") {
|
|
1958
|
+
const i = t.magnificent ? t.options[o] : t.option, a = /* @__PURE__ */ new Map();
|
|
1959
|
+
for (const [f, u] of Object.entries(i)) {
|
|
1960
|
+
const h = s[f];
|
|
1960
1961
|
a.set(h, u);
|
|
1961
1962
|
}
|
|
1962
1963
|
return {
|
|
@@ -1966,7 +1967,7 @@ function x0(t, o = "PAD") {
|
|
|
1966
1967
|
option: a
|
|
1967
1968
|
};
|
|
1968
1969
|
}
|
|
1969
|
-
class
|
|
1970
|
+
class G0 {
|
|
1970
1971
|
/**
|
|
1971
1972
|
* @param souls KMS 소울 정보
|
|
1972
1973
|
*/
|
|
@@ -1987,54 +1988,54 @@ class T0 {
|
|
|
1987
1988
|
* 위대한 소울이 아닐 경우 무시합니다.
|
|
1988
1989
|
* @returns 정보에 해당하는 소울. 존재하지 않을 경우 `undefined`를 반환합니다.
|
|
1989
1990
|
*/
|
|
1990
|
-
createSoulFromId(o,
|
|
1991
|
+
createSoulFromId(o, i = "PAD") {
|
|
1991
1992
|
if (o in this.souls)
|
|
1992
|
-
return
|
|
1993
|
+
return X0(this.souls[o], i);
|
|
1993
1994
|
}
|
|
1994
1995
|
}
|
|
1995
|
-
function
|
|
1996
|
-
return
|
|
1996
|
+
function e0(t, o, i) {
|
|
1997
|
+
return L0(t, o, i?.ignorePropTypes), N0(t, o), H0(t, o), I0(t, o), q0(t, o), K0(t, o), k0(t, o, i?.getPotentialFunc), O0(t, o), o;
|
|
1997
1998
|
}
|
|
1998
|
-
function
|
|
1999
|
+
function L0(t, o, i) {
|
|
1999
2000
|
for (const [a, f] of t.props)
|
|
2000
|
-
|
|
2001
|
+
i && i.includes(a) || o.props.set(a, f);
|
|
2001
2002
|
o.karma = t.karma;
|
|
2002
2003
|
}
|
|
2003
|
-
function
|
|
2004
|
+
function N0(t, o) {
|
|
2004
2005
|
t.anvil !== void 0 && (o.anvil = t.anvil);
|
|
2005
2006
|
}
|
|
2006
|
-
function
|
|
2007
|
+
function H0(t, o) {
|
|
2007
2008
|
Z(o);
|
|
2008
|
-
for (const [
|
|
2009
|
-
o.option(
|
|
2009
|
+
for (const [i, a] of t.options)
|
|
2010
|
+
o.option(i).bonus = a.bonus;
|
|
2010
2011
|
}
|
|
2011
2012
|
function I0(t, o) {
|
|
2012
2013
|
if (t.upgradeCount !== void 0 && t.upgradeFailCount !== void 0 && t.hammerCount !== void 0) {
|
|
2013
2014
|
C0(o), o.upgradeCount = t.upgradeCount, o.upgradeFailCount = t.upgradeFailCount, o.hammerCount = t.hammerCount;
|
|
2014
|
-
for (const [
|
|
2015
|
-
o.option(
|
|
2015
|
+
for (const [i, a] of t.options)
|
|
2016
|
+
o.option(i).upgrade = a.upgrade;
|
|
2016
2017
|
}
|
|
2017
2018
|
}
|
|
2018
|
-
function
|
|
2019
|
+
function q0(t, o) {
|
|
2019
2020
|
if (t.star !== void 0 && t.star !== 0)
|
|
2020
2021
|
if (l(o), t.amazing) {
|
|
2021
2022
|
o.star = t.star, o.maxStar = t.maxStar, o.amazing = t.amazing;
|
|
2022
|
-
for (const [
|
|
2023
|
-
o.option(
|
|
2023
|
+
for (const [i, a] of t.options)
|
|
2024
|
+
o.option(i).enchant = a.enchant;
|
|
2024
2025
|
} else
|
|
2025
|
-
for (let
|
|
2026
|
+
for (let i = 0; i < t.star; i++)
|
|
2026
2027
|
$(o, !0);
|
|
2027
2028
|
}
|
|
2028
|
-
function
|
|
2029
|
+
function K0(t, o) {
|
|
2029
2030
|
t.exceptionalUpgradeCount !== void 0 && (f0(o), o.exceptionalUpgradeCount = t.exceptionalUpgradeCount, o.exceptionalOptions = new Map(t.exceptionalOptions));
|
|
2030
2031
|
}
|
|
2031
|
-
function
|
|
2032
|
+
function k0(t, o, i) {
|
|
2032
2033
|
const a = w.getPotentialLevel(o.req.level);
|
|
2033
2034
|
function f(u) {
|
|
2034
2035
|
if (u === null)
|
|
2035
2036
|
return null;
|
|
2036
|
-
if (
|
|
2037
|
-
return
|
|
2037
|
+
if (i)
|
|
2038
|
+
return i(u.code, a) ?? null;
|
|
2038
2039
|
{
|
|
2039
2040
|
const h = new w();
|
|
2040
2041
|
return h.code = u.code, h.option = new Map(u.option), h.optionType = u.optionType, h.reqLevel = u.reqLevel, h.summary = u.summary, h;
|
|
@@ -2042,20 +2043,20 @@ function O0(t, o, s) {
|
|
|
2042
2043
|
}
|
|
2043
2044
|
o.grade = t.grade, t.potentials.length !== 0 && (o.potentials = t.potentials.map(f)), o.additionalGrade = t.additionalGrade, t.additionalPotentials.length !== 0 && (o.additionalPotentials = t.additionalPotentials.map(f));
|
|
2044
2045
|
}
|
|
2045
|
-
function
|
|
2046
|
+
function O0(t, o) {
|
|
2046
2047
|
o.soulWeapon.enchanted = t.soulWeapon.enchanted, t.soulWeapon.soul && (o.soulWeapon.soul = { ...t.soulWeapon.soul }), o.soulWeapon.setCharge(t.soulWeapon.charge);
|
|
2047
2048
|
}
|
|
2048
|
-
function
|
|
2049
|
+
function W0(t) {
|
|
2049
2050
|
const o = {};
|
|
2050
|
-
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 = R(t.props, (a) => a !== 0), o.o = R(t.options, (a) => !a.empty,
|
|
2051
|
+
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 = R(t.props, (a) => a !== 0), o.o = R(t.options, (a) => !a.empty, j0), 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 = R(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 = F(t.potentials, void 0, j)), t.additionalGrade > 0 && (o.g2 = t.additionalGrade), t.additionalGrade > 0 && t.additionalPotentials.length > 0 && (o.p2 = F(
|
|
2051
2052
|
t.additionalPotentials,
|
|
2052
2053
|
void 0,
|
|
2053
2054
|
j
|
|
2054
2055
|
));
|
|
2055
|
-
const
|
|
2056
|
-
return
|
|
2056
|
+
const i = F0(t.soulWeapon);
|
|
2057
|
+
return i && (o.w = i), o;
|
|
2057
2058
|
}
|
|
2058
|
-
function
|
|
2059
|
+
function j0(t) {
|
|
2059
2060
|
return [t.base, t.bonus, t.upgrade, t.enchant];
|
|
2060
2061
|
}
|
|
2061
2062
|
function j(t) {
|
|
@@ -2067,12 +2068,12 @@ function j(t) {
|
|
|
2067
2068
|
o: R(t.option, (o) => o !== 0)
|
|
2068
2069
|
} : null;
|
|
2069
2070
|
}
|
|
2070
|
-
function
|
|
2071
|
+
function F0(t) {
|
|
2071
2072
|
const o = {};
|
|
2072
|
-
if (t.enchanted && (o.e = t.enchanted), t.soul && (o.s =
|
|
2073
|
+
if (t.enchanted && (o.e = t.enchanted), t.soul && (o.s = V0(t.soul)), t.charge > 0 && (o.c = t.charge), t.chargeOption.size > 0 && (o.o = R(t.chargeOption, (i) => i !== 0)), Object.keys(o).length > 0)
|
|
2073
2074
|
return o;
|
|
2074
2075
|
}
|
|
2075
|
-
function
|
|
2076
|
+
function V0(t) {
|
|
2076
2077
|
return t ? {
|
|
2077
2078
|
n: t.name,
|
|
2078
2079
|
s: t.skill,
|
|
@@ -2080,8 +2081,8 @@ function F0(t) {
|
|
|
2080
2081
|
m: t.multiplier
|
|
2081
2082
|
} : void 0;
|
|
2082
2083
|
}
|
|
2083
|
-
const
|
|
2084
|
-
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 &&
|
|
2084
|
+
const z0 = (t) => {
|
|
2085
|
+
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 && i(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(
|
|
2085
2086
|
(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"
|
|
2086
2087
|
) && Array.isArray(c.o) && c.o.every(
|
|
2087
2088
|
(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"
|
|
@@ -2091,7 +2092,7 @@ const V0 = (t) => {
|
|
|
2091
2092
|
(n) => n === null || typeof n == "object" && n !== null && f(n)
|
|
2092
2093
|
)) && (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(
|
|
2093
2094
|
(n) => n === null || typeof n == "object" && n !== null && f(n)
|
|
2094
|
-
)) && (c.w === void 0 || typeof c.w == "object" && c.w !== null && Array.isArray(c.w) === !1 && u(c.w)),
|
|
2095
|
+
)) && (c.w === void 0 || typeof c.w == "object" && c.w !== null && Array.isArray(c.w) === !1 && u(c.w)), i = (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", f = (c) => typeof c.c == "number" && typeof c.t == "number" && typeof c.l == "number" && typeof c.s == "string" && Array.isArray(c.o) && c.o.every(
|
|
2095
2096
|
(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"
|
|
2096
2097
|
), u = (c) => (c.e === void 0 || typeof c.e == "boolean") && (c.s === void 0 || typeof c.s == "object" && c.s !== null && h(c.s)) && (c.c === void 0 || typeof c.c == "number") && (c.o === void 0 || Array.isArray(c.o) && c.o.every(
|
|
2097
2098
|
(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"
|
|
@@ -2100,40 +2101,40 @@ const V0 = (t) => {
|
|
|
2100
2101
|
) && typeof c.m == "number";
|
|
2101
2102
|
return typeof t == "object" && t !== null && o(t);
|
|
2102
2103
|
};
|
|
2103
|
-
function e0(t) {
|
|
2104
|
-
return JSON.stringify(k0(t));
|
|
2105
|
-
}
|
|
2106
2104
|
function t1(t) {
|
|
2107
|
-
return
|
|
2105
|
+
return JSON.stringify(W0(t));
|
|
2108
2106
|
}
|
|
2109
2107
|
function n1(t) {
|
|
2108
|
+
return J(JSON.parse(t));
|
|
2109
|
+
}
|
|
2110
|
+
function o1(t) {
|
|
2110
2111
|
try {
|
|
2111
2112
|
const o = JSON.parse(t);
|
|
2112
|
-
if (
|
|
2113
|
+
if (z0(o))
|
|
2113
2114
|
return J(o);
|
|
2114
2115
|
} catch {
|
|
2115
2116
|
}
|
|
2116
2117
|
return null;
|
|
2117
2118
|
}
|
|
2118
|
-
function R(t, o,
|
|
2119
|
+
function R(t, o, i) {
|
|
2119
2120
|
let a = [...t];
|
|
2120
|
-
return o && (a = a.filter((f) => o(f[1]))),
|
|
2121
|
+
return o && (a = a.filter((f) => o(f[1]))), i ? a.map((f) => [f[0], i(f[1])]) : a;
|
|
2121
2122
|
}
|
|
2122
|
-
function F(t, o,
|
|
2123
|
+
function F(t, o, i) {
|
|
2123
2124
|
let a = t;
|
|
2124
|
-
return o && (a = a.filter(o)),
|
|
2125
|
+
return o && (a = a.filter(o)), i ? a.map(i) : a === t ? [...t] : a;
|
|
2125
2126
|
}
|
|
2126
2127
|
function C(t, o) {
|
|
2127
|
-
return o ? new Map(t.map((
|
|
2128
|
+
return o ? new Map(t.map((i) => [i[0], o(i[1])])) : new Map(t);
|
|
2128
2129
|
}
|
|
2129
2130
|
function V(t, o) {
|
|
2130
2131
|
return o ? [...t].map(o) : [...t];
|
|
2131
2132
|
}
|
|
2132
2133
|
function J(t) {
|
|
2133
2134
|
const o = new D();
|
|
2134
|
-
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 = C(t.pr), o.options = C(t.o,
|
|
2135
|
+
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 = C(t.pr), o.options = C(t.o, _0), 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 = C(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 = V(t.p, z)), t.g2 && (o.additionalGrade = t.g2), t.p2 && (o.additionalPotentials = V(t.p2, z)), $0(t.w, o), o;
|
|
2135
2136
|
}
|
|
2136
|
-
function
|
|
2137
|
+
function _0(t) {
|
|
2137
2138
|
const o = new _();
|
|
2138
2139
|
return o.base = t[0], o.bonus = t[1], o.upgrade = t[2], o.enchant = t[3], o;
|
|
2139
2140
|
}
|
|
@@ -2143,13 +2144,13 @@ function z(t) {
|
|
|
2143
2144
|
const o = new w();
|
|
2144
2145
|
return o.code = t.c, o.optionType = t.t, o.reqLevel = t.l, o.summary = t.s, o.option = C(t.o), o;
|
|
2145
2146
|
}
|
|
2146
|
-
function
|
|
2147
|
+
function $0(t, o) {
|
|
2147
2148
|
if (t) {
|
|
2148
|
-
const
|
|
2149
|
-
t?.e && (
|
|
2149
|
+
const i = o.soulWeapon;
|
|
2150
|
+
t?.e && (i.enchanted = t.e), t?.s && (i.soul = l0(t.s)), t?.c && (i.charge = t.c), t?.o && (i.chargeOption = C(t.o));
|
|
2150
2151
|
}
|
|
2151
2152
|
}
|
|
2152
|
-
function
|
|
2153
|
+
function l0(t) {
|
|
2153
2154
|
if (t)
|
|
2154
2155
|
return {
|
|
2155
2156
|
name: t.n,
|
|
@@ -2162,39 +2163,40 @@ export {
|
|
|
2162
2163
|
d as BonusStatType,
|
|
2163
2164
|
D as Gear,
|
|
2164
2165
|
_ as GearOption,
|
|
2165
|
-
|
|
2166
|
-
|
|
2166
|
+
s as GearPropType,
|
|
2167
|
+
y0 as GearRepository,
|
|
2167
2168
|
r as GearType,
|
|
2169
|
+
x0 as MagnificentSoulOptionType,
|
|
2168
2170
|
w as Potential,
|
|
2169
2171
|
S as PotentialGrade,
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
+
T0 as PotentialRepository,
|
|
2173
|
+
G0 as SoulRepository,
|
|
2172
2174
|
Q as SoulWeapon,
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
+
B0 as addAmazingEnhancement,
|
|
2176
|
+
J0 as addBonusStat,
|
|
2175
2177
|
$ as addStarforce,
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2178
|
+
m0 as addUpgradeFailCount,
|
|
2179
|
+
Z0 as applyExceptionalEnchant,
|
|
2180
|
+
Y0 as applyGoldHammer,
|
|
2179
2181
|
R0 as applyScroll,
|
|
2180
|
-
|
|
2182
|
+
P0 as applySpellTrace,
|
|
2181
2183
|
w0 as createGearFromNode,
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2184
|
+
g0 as createPotentialFromNode,
|
|
2185
|
+
X0 as createSoulFromNode,
|
|
2186
|
+
W0 as gearToPlain,
|
|
2185
2187
|
Y as getBonusStatOption,
|
|
2186
2188
|
P as getBonusStatValue,
|
|
2187
2189
|
u0 as getSpellTraceScroll,
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2190
|
+
z0 as isGearLike,
|
|
2191
|
+
e0 as migrate,
|
|
2192
|
+
n1 as parseGear,
|
|
2191
2193
|
J as plainToGear,
|
|
2192
|
-
|
|
2194
|
+
Q0 as recalculateStarforce,
|
|
2193
2195
|
Z as resetBonusStat,
|
|
2194
2196
|
l as resetEnhancement,
|
|
2195
2197
|
f0 as resetExceptionalEnchant,
|
|
2196
2198
|
C0 as resetUpgrade,
|
|
2197
2199
|
p0 as restoreUpgradeCount,
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
+
t1 as stringifyGear,
|
|
2201
|
+
o1 as validateParseGear
|
|
2200
2202
|
};
|