@malib/gear 0.11.0 → 0.12.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.js +484 -453
- package/lib/gear.d.ts +12 -0
- package/lib/soul.d.ts +9 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -15,10 +15,22 @@ class $ {
|
|
|
15
15
|
return this.bonus + this.upgrade + this.enchant;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
var
|
|
19
|
-
class
|
|
20
|
-
constructor(
|
|
21
|
-
this.enchanted = !1, this.
|
|
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 || {}), 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 || {}), N = /* @__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))(N || {});
|
|
19
|
+
class B {
|
|
20
|
+
constructor(i) {
|
|
21
|
+
this.enchanted = !1, this._charge = 0, this.chargeOption = /* @__PURE__ */ new Map(), this.gear = i;
|
|
22
|
+
}
|
|
23
|
+
/** 소울 충전량 */
|
|
24
|
+
get charge() {
|
|
25
|
+
return this._charge;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* 소울 충전량
|
|
29
|
+
*
|
|
30
|
+
* `0`부터 `1000`까지의 값으로 설정할 수 있습니다.
|
|
31
|
+
*/
|
|
32
|
+
set charge(i) {
|
|
33
|
+
this.enchanted && (i < 0 || i > 1e3 || (this._charge = i, this.updateChargeOption()));
|
|
22
34
|
}
|
|
23
35
|
/**
|
|
24
36
|
* 소울 인챈트를 적용합니다.
|
|
@@ -44,8 +56,8 @@ class J {
|
|
|
44
56
|
* @returns 장착했을 경우 `true`; 아닐 경우 `false`.
|
|
45
57
|
* 소울 인챈트 상태가 아닐 경우 `false`를 반환합니다.
|
|
46
58
|
*/
|
|
47
|
-
setSoul(
|
|
48
|
-
return this.enchanted ? (this.soul =
|
|
59
|
+
setSoul(i) {
|
|
60
|
+
return this.enchanted ? (this.soul = i, this.updateChargeOption(), !0) : !1;
|
|
49
61
|
}
|
|
50
62
|
/**
|
|
51
63
|
* 장착된 소울을 제거합니다.
|
|
@@ -53,37 +65,30 @@ class J {
|
|
|
53
65
|
* 소울 인챈트 상태가 아니거나 장착된 소울이 없을 경우 `false`를 반환합니다.
|
|
54
66
|
*/
|
|
55
67
|
removeSoul() {
|
|
56
|
-
return !this.enchanted || !this.soul ? !1 : (this.soul = void 0, this.
|
|
68
|
+
return !this.enchanted || !this.soul ? !1 : (this.soul = void 0, this.updateChargeOption(), !0);
|
|
57
69
|
}
|
|
58
70
|
/**
|
|
59
|
-
* 소울 충전량을 설정합니다.
|
|
60
71
|
* 소울 충전량으로 증가하는 옵션을 다시 계산합니다.
|
|
61
|
-
* @param charge 설정할 소울 충전량.
|
|
62
|
-
* `0`부터 `1000`까지의 값으로 설정할 수 있습니다.
|
|
63
72
|
* @returns 적용했을 경우 `true`; 아닐 경우 `false`.
|
|
64
|
-
* 소울 인챈트 상태가 아니거나 설정할 소울 충전량이 0과 1000 사이의 값이 아닐 경우 `false`를 반환합니다.
|
|
65
73
|
*/
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
this.charge = s;
|
|
70
|
-
const a = this.gear.option(i.incPAD).base < this.gear.option(i.incMAD).base ? i.incMAD : i.incPAD;
|
|
71
|
-
return this.chargeOption.clear(), this.chargeOption.set(a, this.getChargeAD()), !0;
|
|
74
|
+
updateChargeOption() {
|
|
75
|
+
const o = this.gear.option(s.incPAD).base < this.gear.option(s.incMAD).base ? s.incMAD : s.incPAD;
|
|
76
|
+
return this.chargeOption.clear(), this.chargeOption.set(o, this.getChargeAD()), !0;
|
|
72
77
|
}
|
|
73
78
|
getChargeAD() {
|
|
74
79
|
if (!this.enchanted || this.charge === 0)
|
|
75
80
|
return 0;
|
|
76
|
-
const
|
|
81
|
+
const i = Math.min(Math.ceil(this.charge / 100) - 1, 5);
|
|
77
82
|
if (this.soul) {
|
|
78
83
|
const o = this.soul.multiplier;
|
|
79
|
-
return 10 +
|
|
84
|
+
return 10 + i * o;
|
|
80
85
|
}
|
|
81
|
-
return 5 +
|
|
86
|
+
return 5 + i;
|
|
82
87
|
}
|
|
83
88
|
}
|
|
84
89
|
const w = class {
|
|
85
90
|
constructor() {
|
|
86
|
-
this.itemID = 0, this.name = "", this.desc = "", this.type = 0, this.props = /* @__PURE__ */ new Map(), this.options = /* @__PURE__ */ new Map(), this.totalUpgradeCount = 0, this.upgradeCount = 0, this.upgradeFailCount = 0, this.hammerCount = 0, this.maxStar = 0, this.star = 0, this.amazing = !1, this.canPotential = !1, this.grade =
|
|
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 = N.normal, this.potentials = [], this.additionalGrade = N.normal, this.additionalPotentials = [], this.soulWeapon = new B(this), this.icon = {
|
|
87
92
|
id: 0,
|
|
88
93
|
origin: [0, 0]
|
|
89
94
|
}, this.req = {
|
|
@@ -102,13 +107,19 @@ const w = class {
|
|
|
102
107
|
get upgradeCountLeft() {
|
|
103
108
|
return this.totalUpgradeCount + this.hammerCount - this.upgradeCount - this.upgradeFailCount;
|
|
104
109
|
}
|
|
110
|
+
/**
|
|
111
|
+
* 익셉셔널 업그레이드 가능 횟수
|
|
112
|
+
*/
|
|
113
|
+
get exceptionalUpgradeCountLeft() {
|
|
114
|
+
return this.exceptionalTotalUpgradeCount - this.exceptionalUpgradeCount;
|
|
115
|
+
}
|
|
105
116
|
/**
|
|
106
117
|
* 가중치를 포함하여 계산한 현재 옵션과 기본 옵션의 차이
|
|
107
118
|
*/
|
|
108
119
|
get diff() {
|
|
109
120
|
let t = 0;
|
|
110
|
-
for (const [
|
|
111
|
-
t += Math.floor(o.diff / w.getPropTypeWeight(
|
|
121
|
+
for (const [i, o] of this.options)
|
|
122
|
+
t += Math.floor(o.diff / w.getPropTypeWeight(i));
|
|
112
123
|
return t;
|
|
113
124
|
}
|
|
114
125
|
/**
|
|
@@ -119,7 +130,7 @@ const w = class {
|
|
|
119
130
|
* 장비 아이콘 왼쪽 위의 원이 채워져있으면 `true`; 아니면 `false`입니다.
|
|
120
131
|
*/
|
|
121
132
|
get isNewBonusType() {
|
|
122
|
-
return !!([...this.options.values()].some((
|
|
133
|
+
return !!([...this.options.values()].some((i) => i.bonus > 0) && this.getPropValue(s.tradeAvailable) !== 1);
|
|
123
134
|
}
|
|
124
135
|
/**
|
|
125
136
|
* 지정된 장비 옵션 종류과 연결된 옵션을 가져옵니다.
|
|
@@ -150,8 +161,8 @@ const w = class {
|
|
|
150
161
|
* @param icon 외형 아이콘.
|
|
151
162
|
* @param name 외형 장비명.
|
|
152
163
|
*/
|
|
153
|
-
setAnvil(t,
|
|
154
|
-
this.anvilIcon = t, this.anvilName =
|
|
164
|
+
setAnvil(t, i) {
|
|
165
|
+
this.anvilIcon = t, this.anvilName = i;
|
|
155
166
|
}
|
|
156
167
|
/**
|
|
157
168
|
* 장비에 적용된 신비의 모루 외형을 제거합니다.
|
|
@@ -290,35 +301,35 @@ const w = class {
|
|
|
290
301
|
* 최대 업그레이드 가능 횟수가 `0`이거나 `onlyUpgrade` 속성이 존재하거나 메카닉 장비 또는 드래곤 장비일 경우 `0`입니다.
|
|
291
302
|
*/
|
|
292
303
|
static getMaxStar(t) {
|
|
293
|
-
if (t.totalUpgradeCount <= 0 || t.getBooleanValue(
|
|
304
|
+
if (t.totalUpgradeCount <= 0 || t.getBooleanValue(s.onlyUpgrade) || w.isMechanicGear(t.type) || w.isDragonGear(t.type))
|
|
294
305
|
return 0;
|
|
295
|
-
let
|
|
306
|
+
let i;
|
|
296
307
|
const o = t.req.level;
|
|
297
308
|
for (const a of w.starData)
|
|
298
309
|
if (o >= a[0])
|
|
299
|
-
|
|
310
|
+
i = a;
|
|
300
311
|
else
|
|
301
312
|
break;
|
|
302
|
-
return
|
|
313
|
+
return i === void 0 ? 0 : t.getBooleanValue(s.superiorEqp) ? i[2] : i[1];
|
|
303
314
|
}
|
|
304
315
|
static getPropTypeWeight(t) {
|
|
305
316
|
if (t < 100)
|
|
306
317
|
switch (t) {
|
|
307
|
-
case
|
|
308
|
-
case
|
|
309
|
-
case
|
|
310
|
-
case
|
|
311
|
-
case
|
|
312
|
-
case
|
|
313
|
-
case
|
|
314
|
-
case
|
|
318
|
+
case s.incSTR:
|
|
319
|
+
case s.incDEX:
|
|
320
|
+
case s.incINT:
|
|
321
|
+
case s.incLUK:
|
|
322
|
+
case s.incPAD:
|
|
323
|
+
case s.incMAD:
|
|
324
|
+
case s.incSpeed:
|
|
325
|
+
case s.incJump:
|
|
315
326
|
return 1;
|
|
316
|
-
case
|
|
317
|
-
case
|
|
327
|
+
case s.incMHP:
|
|
328
|
+
case s.incMMP:
|
|
318
329
|
return 100;
|
|
319
|
-
case
|
|
330
|
+
case s.incPDD:
|
|
320
331
|
return 10;
|
|
321
|
-
case
|
|
332
|
+
case s.incAD:
|
|
322
333
|
return 2;
|
|
323
334
|
}
|
|
324
335
|
return Number.MAX_VALUE;
|
|
@@ -333,7 +344,7 @@ A.starData = [
|
|
|
333
344
|
[130, 20, 12],
|
|
334
345
|
[140, 25, 15]
|
|
335
346
|
];
|
|
336
|
-
class
|
|
347
|
+
class I {
|
|
337
348
|
constructor() {
|
|
338
349
|
this.code = 0, this.optionType = 0, this.reqLevel = 0, this.summary = "", this.option = /* @__PURE__ */ new Map();
|
|
339
350
|
}
|
|
@@ -341,12 +352,12 @@ class N {
|
|
|
341
352
|
* 장비에 표시되는 문자열
|
|
342
353
|
*/
|
|
343
354
|
get convertSummary() {
|
|
344
|
-
const
|
|
345
|
-
|
|
355
|
+
const i = [...this.option.keys()];
|
|
356
|
+
i.sort((a, h) => s[h].length - s[a].length);
|
|
346
357
|
let o = this.summary;
|
|
347
|
-
for (const a of
|
|
358
|
+
for (const a of i)
|
|
348
359
|
o = o.replace(
|
|
349
|
-
`#${
|
|
360
|
+
`#${s[a]}`,
|
|
350
361
|
(this.option.get(a) ?? 0).toString()
|
|
351
362
|
);
|
|
352
363
|
return o;
|
|
@@ -356,8 +367,8 @@ class N {
|
|
|
356
367
|
* @param gearReqLevel 장비의 착용 가능 레벨.
|
|
357
368
|
* @returns 잠재옵션 레벨. 1부터 25까지의 값입니다.
|
|
358
369
|
*/
|
|
359
|
-
static getPotentialLevel(
|
|
360
|
-
return
|
|
370
|
+
static getPotentialLevel(i) {
|
|
371
|
+
return i <= 0 ? 1 : i >= 250 ? 25 : Math.floor((i + 9) / 10);
|
|
361
372
|
}
|
|
362
373
|
/**
|
|
363
374
|
* 잠재옵션 분류와 장비 분류를 비교합니다.
|
|
@@ -365,14 +376,14 @@ class N {
|
|
|
365
376
|
* @param gearType 장비 분류.
|
|
366
377
|
* @returns 잠재옵션 분류가 장비 분류에 적용 가능한 경우 `true`; 아닌 경우 `false`.
|
|
367
378
|
*/
|
|
368
|
-
static checkOptionType(
|
|
369
|
-
switch (
|
|
379
|
+
static checkOptionType(i, o) {
|
|
380
|
+
switch (i) {
|
|
370
381
|
case 0:
|
|
371
382
|
return !0;
|
|
372
383
|
case 10:
|
|
373
384
|
return A.isWeapon(o) || A.isSubWeapon(o) || o === f.emblem;
|
|
374
385
|
case 11:
|
|
375
|
-
return !
|
|
386
|
+
return !I.checkOptionType(10, o);
|
|
376
387
|
case 20:
|
|
377
388
|
return A.isSubWeapon(o) || o === f.cap || o === f.coat || o === f.longcoat || o === f.pants || o === f.shoes || o === f.glove || o === f.cape || o === f.belt || o === f.shoulder;
|
|
378
389
|
case 40:
|
|
@@ -392,218 +403,238 @@ class N {
|
|
|
392
403
|
}
|
|
393
404
|
}
|
|
394
405
|
}
|
|
395
|
-
var
|
|
396
|
-
function
|
|
397
|
-
const a =
|
|
406
|
+
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 || {});
|
|
407
|
+
function U0(t, i, o) {
|
|
408
|
+
const a = Q(t, i, o);
|
|
398
409
|
if (a.size === 0)
|
|
399
410
|
return !1;
|
|
400
|
-
for (const [
|
|
401
|
-
t.option(
|
|
411
|
+
for (const [h, d] of a)
|
|
412
|
+
t.option(h).bonus += d;
|
|
402
413
|
return !0;
|
|
403
414
|
}
|
|
404
|
-
function
|
|
405
|
-
for (const [,
|
|
406
|
-
|
|
415
|
+
function X0(t) {
|
|
416
|
+
for (const [, i] of t.options)
|
|
417
|
+
i.bonus = 0;
|
|
407
418
|
return !0;
|
|
408
419
|
}
|
|
409
|
-
function
|
|
410
|
-
const a =
|
|
411
|
-
return
|
|
420
|
+
function Q(t, i, o) {
|
|
421
|
+
const a = y(i), h = Z(t, i, o);
|
|
422
|
+
return h === 0 ? /* @__PURE__ */ new Map() : new Map(a.map((d) => [d, h]));
|
|
412
423
|
}
|
|
413
|
-
function
|
|
414
|
-
const a = t.req.level,
|
|
415
|
-
if (a < 0 ||
|
|
424
|
+
function Z(t, i, o) {
|
|
425
|
+
const a = t.req.level, h = t.getBooleanValue(s.bossReward), d = t.type;
|
|
426
|
+
if (a < 0 || h && o < 3)
|
|
416
427
|
return 0;
|
|
417
|
-
switch (
|
|
418
|
-
case
|
|
419
|
-
case
|
|
420
|
-
case
|
|
421
|
-
case
|
|
422
|
-
return (
|
|
423
|
-
case
|
|
424
|
-
case
|
|
425
|
-
case
|
|
426
|
-
case
|
|
427
|
-
case
|
|
428
|
-
case
|
|
429
|
-
return (
|
|
430
|
-
case
|
|
431
|
-
return (
|
|
432
|
-
case
|
|
433
|
-
case
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
break;
|
|
458
|
-
case 169:
|
|
459
|
-
c = 173;
|
|
460
|
-
break;
|
|
461
|
-
case 203:
|
|
462
|
-
c = 207;
|
|
463
|
-
break;
|
|
464
|
-
case 293:
|
|
465
|
-
c = 297;
|
|
466
|
-
break;
|
|
467
|
-
case 337:
|
|
468
|
-
c = 342;
|
|
469
|
-
break;
|
|
470
|
-
}
|
|
471
|
-
const n = a > 180 ? 6 : a > 160 ? 5 : a > 110 ? 4 : 3;
|
|
472
|
-
return Math.ceil(c * D[o - 1] * n / 100);
|
|
473
|
-
} else {
|
|
474
|
-
const n = t.option(i.incMAD).base;
|
|
475
|
-
if (s === h.MAD && n >= c && (c = n), d) {
|
|
476
|
-
const M = a > 160 ? 18 : a > 150 ? 15 : a > 110 ? 12 : 9;
|
|
477
|
-
return Math.ceil(c * D[o - 1] * M / 100);
|
|
478
|
-
} else {
|
|
479
|
-
const M = a > 110 ? 4 : 3;
|
|
480
|
-
return Math.ceil(c * D[o - 1] * M / 100);
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
} else if (a < 60)
|
|
484
|
-
return 0;
|
|
485
|
-
return o;
|
|
486
|
-
case h.MHP:
|
|
487
|
-
case h.MMP:
|
|
488
|
-
return a < 10 ? 3 * o : Math.floor(a / 10) * 30 * o;
|
|
489
|
-
case h.speed:
|
|
490
|
-
case h.jump:
|
|
491
|
-
return A.isWeapon(r) ? 0 : o;
|
|
492
|
-
case h.damR:
|
|
493
|
-
return A.isWeapon(r) ? o : 0;
|
|
494
|
-
case h.bdR:
|
|
495
|
-
return a < 90 || !A.isWeapon(r) ? 0 : 2 * o;
|
|
496
|
-
case h.allStatR:
|
|
497
|
-
return a < 70 && !A.isWeapon(r) ? 0 : o;
|
|
498
|
-
case h.reduceReq:
|
|
499
|
-
return 5 * o;
|
|
428
|
+
switch (i) {
|
|
429
|
+
case u.STR:
|
|
430
|
+
case u.DEX:
|
|
431
|
+
case u.INT:
|
|
432
|
+
case u.LUK:
|
|
433
|
+
return H(a, o);
|
|
434
|
+
case u.STR_DEX:
|
|
435
|
+
case u.STR_INT:
|
|
436
|
+
case u.STR_LUK:
|
|
437
|
+
case u.DEX_INT:
|
|
438
|
+
case u.DEX_LUK:
|
|
439
|
+
case u.INT_LUK:
|
|
440
|
+
return Y(a, o);
|
|
441
|
+
case u.PDD:
|
|
442
|
+
return H(a, o);
|
|
443
|
+
case u.PAD:
|
|
444
|
+
case u.MAD:
|
|
445
|
+
return l(
|
|
446
|
+
a,
|
|
447
|
+
o,
|
|
448
|
+
i,
|
|
449
|
+
t.type,
|
|
450
|
+
h,
|
|
451
|
+
t.option(s.incPAD).base,
|
|
452
|
+
t.option(s.incMAD).base
|
|
453
|
+
);
|
|
454
|
+
case u.MHP:
|
|
455
|
+
case u.MMP:
|
|
456
|
+
return P(a, o);
|
|
457
|
+
case u.speed:
|
|
458
|
+
case u.jump:
|
|
459
|
+
return A.isWeapon(d) ? 0 : o;
|
|
460
|
+
case u.damR:
|
|
461
|
+
return A.isWeapon(d) ? o : 0;
|
|
462
|
+
case u.bdR:
|
|
463
|
+
return a < 90 || !A.isWeapon(d) ? 0 : 2 * o;
|
|
464
|
+
case u.allStatR:
|
|
465
|
+
return a < 70 && !A.isWeapon(d) ? 0 : o;
|
|
466
|
+
case u.reduceReq:
|
|
467
|
+
return m(a, o);
|
|
500
468
|
default:
|
|
501
469
|
return 0;
|
|
502
470
|
}
|
|
503
471
|
}
|
|
504
|
-
function
|
|
472
|
+
function H(t, i) {
|
|
473
|
+
return t >= 250 ? Math.floor(t / 20) * i : (Math.floor(t / 20) + 1) * i;
|
|
474
|
+
}
|
|
475
|
+
function Y(t, i) {
|
|
476
|
+
return (Math.floor(t / 40) + 1) * i;
|
|
477
|
+
}
|
|
478
|
+
function l(t, i, o, a, h, d, M) {
|
|
479
|
+
if (A.isWeapon(a)) {
|
|
480
|
+
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 = d;
|
|
482
|
+
if (a === f.heavySword || a === f.longSword) {
|
|
483
|
+
if (a === f.longSword)
|
|
484
|
+
switch (n) {
|
|
485
|
+
case 100:
|
|
486
|
+
n = 102;
|
|
487
|
+
break;
|
|
488
|
+
case 103:
|
|
489
|
+
n = 105;
|
|
490
|
+
break;
|
|
491
|
+
case 105:
|
|
492
|
+
n = 107;
|
|
493
|
+
break;
|
|
494
|
+
case 112:
|
|
495
|
+
n = 114;
|
|
496
|
+
break;
|
|
497
|
+
case 117:
|
|
498
|
+
n = 121;
|
|
499
|
+
break;
|
|
500
|
+
case 135:
|
|
501
|
+
n = 139;
|
|
502
|
+
break;
|
|
503
|
+
case 169:
|
|
504
|
+
n = 173;
|
|
505
|
+
break;
|
|
506
|
+
case 203:
|
|
507
|
+
n = 207;
|
|
508
|
+
break;
|
|
509
|
+
case 293:
|
|
510
|
+
n = 297;
|
|
511
|
+
break;
|
|
512
|
+
case 337:
|
|
513
|
+
n = 342;
|
|
514
|
+
break;
|
|
515
|
+
}
|
|
516
|
+
const D = t > 180 ? 6 : t > 160 ? 5 : t > 110 ? 4 : 3;
|
|
517
|
+
return Math.ceil(n * c[i - 1] * D / 100);
|
|
518
|
+
} else if (o === u.MAD && M >= n && (n = M), h) {
|
|
519
|
+
const D = t > 160 ? 18 : t > 150 ? 15 : t > 110 ? 12 : 9;
|
|
520
|
+
return Math.ceil(n * c[i - 1] * D / 100);
|
|
521
|
+
} else {
|
|
522
|
+
const D = t > 110 ? 4 : 3;
|
|
523
|
+
return Math.ceil(n * c[i - 1] * D / 100);
|
|
524
|
+
}
|
|
525
|
+
} else if (t < 60)
|
|
526
|
+
return 0;
|
|
527
|
+
return i;
|
|
528
|
+
}
|
|
529
|
+
function P(t, i) {
|
|
530
|
+
return t < 10 ? 3 * i : t >= 250 ? 700 * i : Math.floor(t / 10) * 30 * i;
|
|
531
|
+
}
|
|
532
|
+
function m(t, i) {
|
|
533
|
+
return i * 5;
|
|
534
|
+
}
|
|
535
|
+
function y(t) {
|
|
505
536
|
switch (t) {
|
|
506
|
-
case
|
|
507
|
-
return [
|
|
508
|
-
case
|
|
509
|
-
return [
|
|
510
|
-
case
|
|
511
|
-
return [
|
|
512
|
-
case
|
|
513
|
-
return [
|
|
514
|
-
case
|
|
515
|
-
return [
|
|
516
|
-
case
|
|
517
|
-
return [
|
|
518
|
-
case
|
|
519
|
-
return [
|
|
520
|
-
case
|
|
521
|
-
return [
|
|
522
|
-
case
|
|
523
|
-
return [
|
|
524
|
-
case
|
|
525
|
-
return [
|
|
526
|
-
case
|
|
527
|
-
return [
|
|
528
|
-
case
|
|
529
|
-
return [
|
|
530
|
-
case
|
|
531
|
-
return [
|
|
532
|
-
case
|
|
533
|
-
return [
|
|
534
|
-
case
|
|
535
|
-
return [
|
|
536
|
-
case
|
|
537
|
-
return [
|
|
538
|
-
case
|
|
539
|
-
return [
|
|
540
|
-
case
|
|
541
|
-
return [
|
|
542
|
-
case
|
|
543
|
-
return [
|
|
544
|
-
case
|
|
545
|
-
return [
|
|
546
|
-
case
|
|
547
|
-
return [
|
|
537
|
+
case u.STR:
|
|
538
|
+
return [s.incSTR];
|
|
539
|
+
case u.DEX:
|
|
540
|
+
return [s.incDEX];
|
|
541
|
+
case u.INT:
|
|
542
|
+
return [s.incINT];
|
|
543
|
+
case u.LUK:
|
|
544
|
+
return [s.incLUK];
|
|
545
|
+
case u.STR_DEX:
|
|
546
|
+
return [s.incSTR, s.incDEX];
|
|
547
|
+
case u.STR_INT:
|
|
548
|
+
return [s.incSTR, s.incINT];
|
|
549
|
+
case u.STR_LUK:
|
|
550
|
+
return [s.incSTR, s.incLUK];
|
|
551
|
+
case u.DEX_INT:
|
|
552
|
+
return [s.incDEX, s.incINT];
|
|
553
|
+
case u.DEX_LUK:
|
|
554
|
+
return [s.incDEX, s.incLUK];
|
|
555
|
+
case u.INT_LUK:
|
|
556
|
+
return [s.incINT, s.incLUK];
|
|
557
|
+
case u.PDD:
|
|
558
|
+
return [s.incPDD];
|
|
559
|
+
case u.PAD:
|
|
560
|
+
return [s.incPAD];
|
|
561
|
+
case u.MAD:
|
|
562
|
+
return [s.incMAD];
|
|
563
|
+
case u.MHP:
|
|
564
|
+
return [s.incMHP];
|
|
565
|
+
case u.MMP:
|
|
566
|
+
return [s.incMMP];
|
|
567
|
+
case u.speed:
|
|
568
|
+
return [s.incSpeed];
|
|
569
|
+
case u.jump:
|
|
570
|
+
return [s.incJump];
|
|
571
|
+
case u.damR:
|
|
572
|
+
return [s.damR];
|
|
573
|
+
case u.bdR:
|
|
574
|
+
return [s.bdR];
|
|
575
|
+
case u.allStatR:
|
|
576
|
+
return [s.statR];
|
|
577
|
+
case u.reduceReq:
|
|
578
|
+
return [s.reduceReq];
|
|
548
579
|
default:
|
|
549
580
|
return [];
|
|
550
581
|
}
|
|
551
582
|
}
|
|
552
|
-
const
|
|
553
|
-
function
|
|
554
|
-
if (t.getBooleanValue(
|
|
583
|
+
const T = 25, K = 15;
|
|
584
|
+
function G(t, i = !1) {
|
|
585
|
+
if (t.getBooleanValue(s.incCHUC))
|
|
555
586
|
return !1;
|
|
556
|
-
if (t.getBooleanValue(
|
|
557
|
-
return
|
|
558
|
-
if (t.star >= t.maxStar && !
|
|
587
|
+
if (t.getBooleanValue(s.superiorEqp))
|
|
588
|
+
return p(t);
|
|
589
|
+
if (t.star >= t.maxStar && !i || t.star >= T)
|
|
559
590
|
return !1;
|
|
560
591
|
t.star += 1;
|
|
561
|
-
const o = t.star, a =
|
|
562
|
-
[
|
|
563
|
-
[
|
|
564
|
-
[
|
|
565
|
-
[
|
|
566
|
-
[
|
|
592
|
+
const o = t.star, a = v(t, !1, !1), h = v(t, !1, !0), d = A.isWeapon(t.type) || t.type === f.katara, M = [
|
|
593
|
+
[s.incSTR, s.incDEX],
|
|
594
|
+
[s.incINT, s.incLUK],
|
|
595
|
+
[s.incDEX, s.incSTR],
|
|
596
|
+
[s.incLUK, s.incDEX],
|
|
597
|
+
[s.incSTR, s.incDEX]
|
|
567
598
|
], c = [
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
599
|
+
s.incSTR,
|
|
600
|
+
s.incDEX,
|
|
601
|
+
s.incINT,
|
|
602
|
+
s.incLUK
|
|
572
603
|
];
|
|
573
604
|
let n;
|
|
574
|
-
const
|
|
575
|
-
if (
|
|
605
|
+
const D = t.req.job;
|
|
606
|
+
if (D === 0)
|
|
576
607
|
n = /* @__PURE__ */ new Set([
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
608
|
+
s.incSTR,
|
|
609
|
+
s.incDEX,
|
|
610
|
+
s.incINT,
|
|
611
|
+
s.incLUK
|
|
581
612
|
]);
|
|
582
613
|
else {
|
|
583
614
|
n = /* @__PURE__ */ new Set();
|
|
584
|
-
for (let
|
|
585
|
-
if (
|
|
586
|
-
for (const
|
|
587
|
-
n.add(
|
|
615
|
+
for (let r = 0; r < 5; r++)
|
|
616
|
+
if (D & 1 << r)
|
|
617
|
+
for (const S of M[r])
|
|
618
|
+
n.add(S);
|
|
588
619
|
}
|
|
589
|
-
for (const
|
|
590
|
-
(n.has(
|
|
591
|
-
if (
|
|
592
|
-
const
|
|
620
|
+
for (const r of c)
|
|
621
|
+
(n.has(r) || o > 15 && (t.option(r).base > 0 || t.option(r).upgrade > 0)) && (t.option(r).enchant += a[o]);
|
|
622
|
+
if (d) {
|
|
623
|
+
const r = D === 0 || Math.floor(D / 2) % 2 === 1 || t.option(s.incMAD).upgrade > 0;
|
|
593
624
|
if (o > 15)
|
|
594
|
-
t.option(
|
|
625
|
+
t.option(s.incPAD).enchant += h[o], r && (t.option(s.incMAD).enchant += h[o]);
|
|
595
626
|
else {
|
|
596
|
-
const
|
|
597
|
-
if (t.option(
|
|
598
|
-
const
|
|
599
|
-
t.option(
|
|
627
|
+
const S = t.option(s.incPAD).sum - t.option(s.incPAD).bonus;
|
|
628
|
+
if (t.option(s.incPAD).enchant += Math.floor(S / 50) + 1, r) {
|
|
629
|
+
const J = t.option(s.incMAD).sum - t.option(s.incMAD).bonus;
|
|
630
|
+
t.option(s.incMAD).enchant += Math.floor(J / 50) + 1;
|
|
600
631
|
}
|
|
601
632
|
}
|
|
602
633
|
} else
|
|
603
|
-
t.option(
|
|
604
|
-
if (!
|
|
605
|
-
const
|
|
606
|
-
t.option(
|
|
634
|
+
t.option(s.incPAD).enchant += h[o], t.option(s.incMAD).enchant += h[o], t.type === f.glove && (D === 0 ? (t.option(s.incPAD).enchant += E[o], t.option(s.incMAD).enchant += E[o]) : Math.floor(D / 2) % 2 === 1 ? t.option(s.incMAD).enchant += E[o] : t.option(s.incPAD).enchant += E[o]);
|
|
635
|
+
if (!d && t.type !== f.machineHeart) {
|
|
636
|
+
const r = t.option(s.incPDD).sum - t.option(s.incPDD).bonus;
|
|
637
|
+
t.option(s.incPDD).enchant += Math.floor(r / 20) + 1;
|
|
607
638
|
}
|
|
608
639
|
const b = [
|
|
609
640
|
f.cap,
|
|
@@ -617,91 +648,91 @@ function l(t, s = !1) {
|
|
|
617
648
|
f.shoulder,
|
|
618
649
|
f.shield
|
|
619
650
|
];
|
|
620
|
-
return
|
|
651
|
+
return d ? (t.option(s.incMHP).enchant += X[o], t.option(s.incMMP).enchant += X[o]) : b.includes(t.type) && (t.option(s.incMHP).enchant += X[o]), t.type === f.shoes && (t.option(s.incSpeed).enchant += x[o], t.option(s.incJump).enchant += x[o]), !0;
|
|
621
652
|
}
|
|
622
|
-
function
|
|
653
|
+
function p(t) {
|
|
623
654
|
if (t.star >= t.maxStar)
|
|
624
655
|
return !1;
|
|
625
656
|
t.star += 1;
|
|
626
|
-
const
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
657
|
+
const i = t.star, o = v(t, !1, !1), a = v(t, !1, !0), h = [
|
|
658
|
+
s.incSTR,
|
|
659
|
+
s.incDEX,
|
|
660
|
+
s.incINT,
|
|
661
|
+
s.incLUK
|
|
631
662
|
];
|
|
663
|
+
for (const c of h)
|
|
664
|
+
t.option(c).base > 0 && (t.option(c).enchant += o[i]);
|
|
665
|
+
const d = [s.incPAD, s.incMAD];
|
|
632
666
|
for (const c of d)
|
|
633
|
-
t.option(c).base > 0 && (t.option(c).enchant +=
|
|
634
|
-
const
|
|
635
|
-
|
|
636
|
-
t.option(c).base > 0 && (t.option(c).enchant += a[s]);
|
|
637
|
-
const D = t.option(i.incPDD).sum - t.option(i.incPDD).bonus;
|
|
638
|
-
return t.option(i.incPDD).enchant += Math.floor(D / 20) + 1, !0;
|
|
667
|
+
t.option(c).base > 0 && (t.option(c).enchant += a[i]);
|
|
668
|
+
const M = t.option(s.incPDD).sum - t.option(s.incPDD).bonus;
|
|
669
|
+
return t.option(s.incPDD).enchant += Math.floor(M / 20) + 1, !0;
|
|
639
670
|
}
|
|
640
|
-
function
|
|
641
|
-
if (t.getBooleanValue(
|
|
671
|
+
function N0(t, i = !1, o = !1) {
|
|
672
|
+
if (t.getBooleanValue(s.incCHUC) || t.getBooleanValue(s.superiorEqp) || t.req.level > 150 || t.star >= t.maxStar && !o || t.star >= K)
|
|
642
673
|
return !1;
|
|
643
|
-
t.amazing || (t.amazing = !0, t.maxStar = Math.min(t.maxStar,
|
|
644
|
-
const a = t.star,
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
674
|
+
t.amazing || (t.amazing = !0, t.maxStar = Math.min(t.maxStar, K)), t.star += 1;
|
|
675
|
+
const a = t.star, h = v(t, !0, !1), d = v(t, !0, !0), M = A.isWeapon(t.type) || t.type === f.katara, c = [
|
|
676
|
+
s.incSTR,
|
|
677
|
+
s.incDEX,
|
|
678
|
+
s.incINT,
|
|
679
|
+
s.incLUK
|
|
649
680
|
];
|
|
650
681
|
for (const b of c)
|
|
651
682
|
if (t.option(b).sum > 0) {
|
|
652
|
-
let
|
|
653
|
-
|
|
683
|
+
let S = h[a];
|
|
684
|
+
i && A.isAccessory(t.type) && (S += a > 5 ? 2 : 1), t.option(b).enchant += S;
|
|
654
685
|
}
|
|
655
|
-
const n = [
|
|
686
|
+
const n = [s.incPAD, s.incMAD];
|
|
656
687
|
for (const b of n) {
|
|
657
|
-
const
|
|
658
|
-
if (
|
|
659
|
-
|
|
660
|
-
let
|
|
661
|
-
|
|
688
|
+
const r = t.option(b).sum;
|
|
689
|
+
if (r > 0) {
|
|
690
|
+
M && (t.option(b).enchant += Math.floor(r / 50) + 1);
|
|
691
|
+
let S = d[a];
|
|
692
|
+
i && (M || t.type === f.shield) && (S += 1), t.option(b).enchant += S;
|
|
662
693
|
}
|
|
663
694
|
}
|
|
664
|
-
|
|
665
|
-
const
|
|
666
|
-
return t.option(
|
|
695
|
+
i && A.isArmor(t.type) && (t.option(s.incMHP).enchant += 50);
|
|
696
|
+
const D = t.option(s.incPDD).sum;
|
|
697
|
+
return t.option(s.incPDD).enchant += Math.floor(D / 20) + 1, !0;
|
|
667
698
|
}
|
|
668
|
-
function
|
|
669
|
-
if (t.getBooleanValue(
|
|
699
|
+
function e(t) {
|
|
700
|
+
if (t.getBooleanValue(s.incCHUC))
|
|
670
701
|
return !1;
|
|
671
702
|
t.star = 0, t.amazing = !1, t.maxStar = A.getMaxStar(t);
|
|
672
|
-
for (const [,
|
|
673
|
-
|
|
703
|
+
for (const [, i] of t.options)
|
|
704
|
+
i.enchant = 0;
|
|
674
705
|
return !0;
|
|
675
706
|
}
|
|
676
|
-
function
|
|
677
|
-
if (t.getBooleanValue(
|
|
707
|
+
function I0(t) {
|
|
708
|
+
if (t.getBooleanValue(s.incCHUC) || t.amazing)
|
|
678
709
|
return !1;
|
|
679
|
-
const
|
|
680
|
-
|
|
681
|
-
for (let o = 0; o <
|
|
682
|
-
|
|
710
|
+
const i = t.star;
|
|
711
|
+
e(t);
|
|
712
|
+
for (let o = 0; o < i; o++)
|
|
713
|
+
G(t, !0);
|
|
683
714
|
return !0;
|
|
684
715
|
}
|
|
685
|
-
function
|
|
716
|
+
function v(t, i, o) {
|
|
686
717
|
let a;
|
|
687
|
-
t.getBooleanValue(
|
|
688
|
-
const
|
|
689
|
-
for (const
|
|
690
|
-
if (
|
|
691
|
-
return
|
|
718
|
+
t.getBooleanValue(s.superiorEqp) ? o ? a = t0 : a = n0 : i ? o ? a = o0 : a = a0 : o ? A.isWeapon(t.type) || t.type === f.katara ? a = c0 : a = i0 : a = s0;
|
|
719
|
+
const h = t.req.level;
|
|
720
|
+
for (const d of [...a].reverse())
|
|
721
|
+
if (h >= d[0])
|
|
722
|
+
return d;
|
|
692
723
|
throw Error(`Gear has invalid reqLevel.
|
|
693
724
|
` + t);
|
|
694
725
|
}
|
|
695
|
-
const
|
|
726
|
+
const t0 = [
|
|
696
727
|
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
697
728
|
[110, 0, 0, 0, 0, 0, 5, 6, 7, 0, 0, 0, 0, 0, 0, 0],
|
|
698
729
|
[150, 0, 0, 0, 0, 0, 9, 10, 11, 12, 13, 15, 17, 19, 21, 23]
|
|
699
|
-
],
|
|
730
|
+
], n0 = [
|
|
700
731
|
[0, 1, 2, 4, 7, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
701
732
|
[80, 2, 3, 5, 8, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
702
733
|
[110, 9, 10, 12, 15, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
703
734
|
[150, 19, 20, 22, 25, 29, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
|
704
|
-
],
|
|
735
|
+
], c0 = [
|
|
705
736
|
[
|
|
706
737
|
0,
|
|
707
738
|
0,
|
|
@@ -954,7 +985,7 @@ const y = [
|
|
|
954
985
|
37,
|
|
955
986
|
38
|
|
956
987
|
]
|
|
957
|
-
],
|
|
988
|
+
], i0 = [
|
|
958
989
|
[
|
|
959
990
|
0,
|
|
960
991
|
0,
|
|
@@ -1207,7 +1238,7 @@ const y = [
|
|
|
1207
1238
|
25,
|
|
1208
1239
|
27
|
|
1209
1240
|
]
|
|
1210
|
-
],
|
|
1241
|
+
], s0 = [
|
|
1211
1242
|
[
|
|
1212
1243
|
0,
|
|
1213
1244
|
2,
|
|
@@ -1460,7 +1491,7 @@ const y = [
|
|
|
1460
1491
|
0,
|
|
1461
1492
|
0
|
|
1462
1493
|
]
|
|
1463
|
-
],
|
|
1494
|
+
], o0 = [
|
|
1464
1495
|
[0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 8, 10, 12, 14],
|
|
1465
1496
|
[80, 0, 0, 0, 0, 0, 2, 3, 4, 5, 6, 7, 9, 11, 13, 15],
|
|
1466
1497
|
[90, 0, 0, 0, 0, 0, 3, 4, 5, 6, 7, 8, 10, 12, 14, 16],
|
|
@@ -1470,7 +1501,7 @@ const y = [
|
|
|
1470
1501
|
[130, 0, 0, 0, 0, 0, 7, 8, 9, 10, 11, 12, 14, 16, 18, 20],
|
|
1471
1502
|
[140, 0, 0, 0, 0, 0, 8, 9, 10, 11, 12, 13, 15, 17, 19, 21],
|
|
1472
1503
|
[150, 0, 0, 0, 0, 0, 9, 10, 11, 12, 13, 14, 16, 18, 20, 22]
|
|
1473
|
-
],
|
|
1504
|
+
], a0 = [
|
|
1474
1505
|
[0, 1, 2, 4, 7, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
1475
1506
|
[80, 2, 3, 5, 8, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
1476
1507
|
[85, 3, 4, 6, 9, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
@@ -1541,7 +1572,7 @@ const y = [
|
|
|
1541
1572
|
0,
|
|
1542
1573
|
0,
|
|
1543
1574
|
0
|
|
1544
|
-
],
|
|
1575
|
+
], x = [
|
|
1545
1576
|
0,
|
|
1546
1577
|
0,
|
|
1547
1578
|
0,
|
|
@@ -1569,19 +1600,19 @@ const y = [
|
|
|
1569
1600
|
0,
|
|
1570
1601
|
0
|
|
1571
1602
|
];
|
|
1572
|
-
function
|
|
1603
|
+
function f0(t, i, o) {
|
|
1573
1604
|
if (A.isWeapon(t.type) || t.type === f.katara)
|
|
1574
|
-
return
|
|
1605
|
+
return r0(t, i, o);
|
|
1575
1606
|
if (t.type === f.glove)
|
|
1576
|
-
return
|
|
1607
|
+
return A0(t, i, o);
|
|
1577
1608
|
if (A.isArmor(t.type) || t.type === f.shoulder)
|
|
1578
|
-
return
|
|
1609
|
+
return D0(t, i, o);
|
|
1579
1610
|
if (A.isAccessory(t.type))
|
|
1580
|
-
return
|
|
1611
|
+
return M0(t, i, o);
|
|
1581
1612
|
if (t.type === f.machineHeart)
|
|
1582
|
-
return
|
|
1613
|
+
return S0(t, i, o);
|
|
1583
1614
|
}
|
|
1584
|
-
const
|
|
1615
|
+
const h0 = {
|
|
1585
1616
|
100: [
|
|
1586
1617
|
[1, 0],
|
|
1587
1618
|
[2, 0],
|
|
@@ -1602,7 +1633,7 @@ const s0 = {
|
|
|
1602
1633
|
[7, 3],
|
|
1603
1634
|
[9, 4]
|
|
1604
1635
|
]
|
|
1605
|
-
},
|
|
1636
|
+
}, u0 = {
|
|
1606
1637
|
100: [
|
|
1607
1638
|
[1, 5, 1],
|
|
1608
1639
|
[2, 20, 2],
|
|
@@ -1623,12 +1654,12 @@ const s0 = {
|
|
|
1623
1654
|
[7, 110, 10],
|
|
1624
1655
|
[10, 170, 15]
|
|
1625
1656
|
]
|
|
1626
|
-
},
|
|
1657
|
+
}, _ = {
|
|
1627
1658
|
30: [1, 2, 3],
|
|
1628
1659
|
15: [2, 3, 4]
|
|
1629
|
-
},
|
|
1660
|
+
}, q = {
|
|
1630
1661
|
30: [1, 2, 3]
|
|
1631
|
-
},
|
|
1662
|
+
}, d0 = {
|
|
1632
1663
|
100: [0, 1, 1],
|
|
1633
1664
|
70: [1, 2, 2],
|
|
1634
1665
|
30: [2, 3, 3],
|
|
@@ -1637,151 +1668,151 @@ const s0 = {
|
|
|
1637
1668
|
100: [1, 1, 2],
|
|
1638
1669
|
70: [2, 2, 3],
|
|
1639
1670
|
30: [3, 4, 5]
|
|
1640
|
-
},
|
|
1671
|
+
}, O = {
|
|
1641
1672
|
100: [1, 2, 3],
|
|
1642
1673
|
70: [2, 3, 5],
|
|
1643
1674
|
30: [3, 5, 7]
|
|
1644
|
-
},
|
|
1645
|
-
[
|
|
1646
|
-
[
|
|
1647
|
-
[
|
|
1648
|
-
[
|
|
1649
|
-
[
|
|
1650
|
-
[
|
|
1675
|
+
}, L = {
|
|
1676
|
+
[s.incSTR]: s.incPAD,
|
|
1677
|
+
[s.incDEX]: s.incPAD,
|
|
1678
|
+
[s.incINT]: s.incMAD,
|
|
1679
|
+
[s.incLUK]: s.incPAD,
|
|
1680
|
+
[s.incMHP]: s.incPAD,
|
|
1681
|
+
[s.incAllStat]: s.incPAD
|
|
1651
1682
|
}, R = {
|
|
1652
|
-
[
|
|
1653
|
-
[
|
|
1654
|
-
[
|
|
1655
|
-
[
|
|
1656
|
-
[
|
|
1657
|
-
[
|
|
1658
|
-
[
|
|
1659
|
-
[
|
|
1683
|
+
[s.incSTR]: "힘",
|
|
1684
|
+
[s.incDEX]: "민첩",
|
|
1685
|
+
[s.incINT]: "지력",
|
|
1686
|
+
[s.incLUK]: "운",
|
|
1687
|
+
[s.incMHP]: "체력",
|
|
1688
|
+
[s.incAllStat]: "올스탯",
|
|
1689
|
+
[s.incPAD]: "공격력",
|
|
1690
|
+
[s.incMAD]: "마력"
|
|
1660
1691
|
};
|
|
1661
1692
|
function g(t) {
|
|
1662
1693
|
return t.req.level > 110 ? 2 : t.req.level > 70 ? 1 : 0;
|
|
1663
1694
|
}
|
|
1664
|
-
function
|
|
1665
|
-
if (
|
|
1695
|
+
function r0(t, i, o) {
|
|
1696
|
+
if (i === s.incAllStat)
|
|
1666
1697
|
return;
|
|
1667
1698
|
const a = g(t);
|
|
1668
|
-
let [
|
|
1669
|
-
const
|
|
1670
|
-
return
|
|
1671
|
-
[
|
|
1672
|
-
[
|
|
1699
|
+
let [h, d] = h0[o][a];
|
|
1700
|
+
const M = L[i], c = R[M];
|
|
1701
|
+
return i === s.incMHP && (d *= 50), { name: d > 0 ? `${o}% ${c}(${R[i]}) 주문서` : `${o}% ${c} 주문서`, option: /* @__PURE__ */ new Map([
|
|
1702
|
+
[i, d],
|
|
1703
|
+
[M, h]
|
|
1673
1704
|
]) };
|
|
1674
1705
|
}
|
|
1675
|
-
function
|
|
1676
|
-
const a = g(t), [
|
|
1677
|
-
let c = [], n = [],
|
|
1678
|
-
if (
|
|
1679
|
-
n = [[
|
|
1680
|
-
else if (n = [[
|
|
1681
|
-
if (!(o in
|
|
1706
|
+
function D0(t, i, o) {
|
|
1707
|
+
const a = g(t), [h, d, M] = u0[o][a];
|
|
1708
|
+
let c = [], n = [], D = [];
|
|
1709
|
+
if (i === s.incMHP)
|
|
1710
|
+
n = [[s.incMHP, d + h * 50]];
|
|
1711
|
+
else if (n = [[s.incMHP, d]], i === s.incAllStat) {
|
|
1712
|
+
if (!(o in _))
|
|
1682
1713
|
return;
|
|
1683
|
-
const
|
|
1714
|
+
const S = _[o][a];
|
|
1684
1715
|
c = [
|
|
1685
|
-
[
|
|
1686
|
-
[
|
|
1687
|
-
[
|
|
1688
|
-
[
|
|
1716
|
+
[s.incSTR, S],
|
|
1717
|
+
[s.incDEX, S],
|
|
1718
|
+
[s.incINT, S],
|
|
1719
|
+
[s.incLUK, S]
|
|
1689
1720
|
];
|
|
1690
1721
|
} else
|
|
1691
|
-
c = [[
|
|
1692
|
-
t.upgradeCount === 3 && (t.req.job === 0 ?
|
|
1693
|
-
[
|
|
1694
|
-
[
|
|
1695
|
-
] : Math.floor(t.req.job / 2) % 2 === 1 ?
|
|
1696
|
-
const b = `${o}% ${R[
|
|
1722
|
+
c = [[i, h]];
|
|
1723
|
+
t.upgradeCount === 3 && (t.req.job === 0 ? D = [
|
|
1724
|
+
[s.incPAD, 1],
|
|
1725
|
+
[s.incMAD, 1]
|
|
1726
|
+
] : Math.floor(t.req.job / 2) % 2 === 1 ? D = [[s.incMAD, 1]] : D = [[s.incPAD, 1]]);
|
|
1727
|
+
const b = `${o}% ${R[i]} 주문서`, r = new Map([
|
|
1697
1728
|
...c,
|
|
1698
|
-
...
|
|
1729
|
+
...D,
|
|
1699
1730
|
...n,
|
|
1700
|
-
[
|
|
1731
|
+
[s.incPDD, M]
|
|
1701
1732
|
]);
|
|
1702
|
-
return { name: b, option:
|
|
1733
|
+
return { name: b, option: r };
|
|
1703
1734
|
}
|
|
1704
|
-
function
|
|
1705
|
-
const a = g(t),
|
|
1706
|
-
if (
|
|
1735
|
+
function A0(t, i, o) {
|
|
1736
|
+
const a = g(t), h = d0[o][a];
|
|
1737
|
+
if (h === 0)
|
|
1707
1738
|
return {
|
|
1708
1739
|
name: `${o}% 방어력 주문서`,
|
|
1709
|
-
option: /* @__PURE__ */ new Map([[
|
|
1740
|
+
option: /* @__PURE__ */ new Map([[s.incPDD, 3]])
|
|
1710
1741
|
};
|
|
1711
1742
|
{
|
|
1712
|
-
const
|
|
1743
|
+
const d = L[i];
|
|
1713
1744
|
return {
|
|
1714
|
-
name: `${o}% ${R[
|
|
1715
|
-
option: /* @__PURE__ */ new Map([[
|
|
1745
|
+
name: `${o}% ${R[d]} 주문서`,
|
|
1746
|
+
option: /* @__PURE__ */ new Map([[d, h]])
|
|
1716
1747
|
};
|
|
1717
1748
|
}
|
|
1718
1749
|
}
|
|
1719
|
-
function
|
|
1750
|
+
function M0(t, i, o) {
|
|
1720
1751
|
if (!(o in W))
|
|
1721
1752
|
return;
|
|
1722
|
-
const a = g(t),
|
|
1723
|
-
let
|
|
1724
|
-
if (
|
|
1725
|
-
|
|
1726
|
-
else if (
|
|
1727
|
-
if (!(o in
|
|
1753
|
+
const a = g(t), h = W[o][a];
|
|
1754
|
+
let d = [];
|
|
1755
|
+
if (i === s.incMHP)
|
|
1756
|
+
d = [[s.incMHP, h * 50]];
|
|
1757
|
+
else if (i === s.incAllStat) {
|
|
1758
|
+
if (!(o in q))
|
|
1728
1759
|
return;
|
|
1729
|
-
const n =
|
|
1730
|
-
|
|
1731
|
-
[
|
|
1732
|
-
[
|
|
1733
|
-
[
|
|
1734
|
-
[
|
|
1760
|
+
const n = q[o][a];
|
|
1761
|
+
d = [
|
|
1762
|
+
[s.incSTR, n],
|
|
1763
|
+
[s.incDEX, n],
|
|
1764
|
+
[s.incINT, n],
|
|
1765
|
+
[s.incLUK, n]
|
|
1735
1766
|
];
|
|
1736
1767
|
} else
|
|
1737
|
-
|
|
1738
|
-
const
|
|
1739
|
-
return { name:
|
|
1768
|
+
d = [[i, h]];
|
|
1769
|
+
const M = `${o}% ${R[i]} 주문서`, c = new Map(d);
|
|
1770
|
+
return { name: M, option: c };
|
|
1740
1771
|
}
|
|
1741
|
-
function
|
|
1742
|
-
if (!(o in
|
|
1772
|
+
function S0(t, i, o) {
|
|
1773
|
+
if (!(o in O))
|
|
1743
1774
|
return;
|
|
1744
|
-
const a = g(t),
|
|
1745
|
-
return { name: `${o}% ${R[
|
|
1775
|
+
const a = g(t), h = O[o][a], d = L[i];
|
|
1776
|
+
return { name: `${o}% ${R[i]} 주문서`, option: /* @__PURE__ */ new Map([[d, h]]) };
|
|
1746
1777
|
}
|
|
1747
|
-
function
|
|
1748
|
-
return t.getBooleanValue(
|
|
1778
|
+
function L0(t) {
|
|
1779
|
+
return t.getBooleanValue(s.blockGoldHammer) || t.getBooleanValue(s.onlyUpgrade) || t.totalUpgradeCount <= 0 || t.hammerCount > 0 ? !1 : (t.hammerCount = 1, !0);
|
|
1749
1780
|
}
|
|
1750
|
-
function
|
|
1781
|
+
function b0(t, i) {
|
|
1751
1782
|
if (t.upgradeCountLeft < 1)
|
|
1752
1783
|
return !1;
|
|
1753
1784
|
t.upgradeCount += 1;
|
|
1754
|
-
for (const [o, a] of
|
|
1785
|
+
for (const [o, a] of i.option)
|
|
1755
1786
|
t.option(o).upgrade += a;
|
|
1756
1787
|
return !0;
|
|
1757
1788
|
}
|
|
1758
|
-
function
|
|
1759
|
-
const a =
|
|
1760
|
-
return a ?
|
|
1789
|
+
function H0(t, i, o) {
|
|
1790
|
+
const a = f0(t, i, o);
|
|
1791
|
+
return a ? b0(t, a) : !1;
|
|
1761
1792
|
}
|
|
1762
|
-
function
|
|
1793
|
+
function K0(t) {
|
|
1763
1794
|
return t.upgradeCountLeft < 1 ? !1 : (t.upgradeFailCount += 1, !0);
|
|
1764
1795
|
}
|
|
1765
|
-
function
|
|
1796
|
+
function x0(t) {
|
|
1766
1797
|
return t.upgradeFailCount < 1 ? !1 : (t.upgradeFailCount -= 1, !0);
|
|
1767
1798
|
}
|
|
1768
|
-
function
|
|
1799
|
+
function _0(t) {
|
|
1769
1800
|
t.upgradeCount = 0, t.upgradeFailCount = 0, t.hammerCount = 0;
|
|
1770
|
-
for (const [,
|
|
1771
|
-
|
|
1801
|
+
for (const [, i] of t.options)
|
|
1802
|
+
i.upgrade = 0;
|
|
1772
1803
|
return !0;
|
|
1773
1804
|
}
|
|
1774
|
-
function
|
|
1775
|
-
const
|
|
1776
|
-
|
|
1805
|
+
function v0(t) {
|
|
1806
|
+
const i = {};
|
|
1807
|
+
i.id = t.itemID, i.n = t.name, t.desc.length > 0 && (i.d = t.desc), i.i = t.icon, t.anvilIcon && (i.i2 = t.anvilIcon), t.anvilName && (i.n2 = t.anvilName), i.t = t.type, i.r = t.req, i.pr = C(t.props, (a) => a !== 0), i.o = C(t.options, (a) => !a.empty, R0), t.totalUpgradeCount > 0 && (i.c = t.totalUpgradeCount), t.upgradeCount > 0 && (i.up = t.upgradeCount), t.upgradeFailCount > 0 && (i.f = t.upgradeFailCount), t.hammerCount > 0 && (i.h = t.hammerCount), t.maxStar > 0 && (i.m = t.maxStar), t.star > 0 && (i.s = t.star), t.amazing && (i.a = t.amazing), t.karma !== void 0 && (i.k = t.karma), t.canPotential && (i.cp = t.canPotential), t.grade > 0 && (i.g = t.grade), t.grade > 0 && t.potentials.length > 0 && (i.p = V(t.potentials, void 0, k)), t.additionalGrade > 0 && (i.g2 = t.additionalGrade), t.additionalGrade > 0 && t.additionalPotentials.length > 0 && (i.p2 = V(
|
|
1777
1808
|
t.additionalPotentials,
|
|
1778
1809
|
void 0,
|
|
1779
1810
|
k
|
|
1780
1811
|
));
|
|
1781
|
-
const o =
|
|
1782
|
-
return o && (
|
|
1812
|
+
const o = w0(t.soulWeapon);
|
|
1813
|
+
return o && (i.w = o), i;
|
|
1783
1814
|
}
|
|
1784
|
-
function
|
|
1815
|
+
function R0(t) {
|
|
1785
1816
|
return [t.base, t.bonus, t.upgrade, t.enchant];
|
|
1786
1817
|
}
|
|
1787
1818
|
function k(t) {
|
|
@@ -1790,109 +1821,109 @@ function k(t) {
|
|
|
1790
1821
|
t: t.optionType,
|
|
1791
1822
|
l: t.reqLevel,
|
|
1792
1823
|
s: t.summary,
|
|
1793
|
-
o: C(t.option, (
|
|
1824
|
+
o: C(t.option, (i) => i !== 0)
|
|
1794
1825
|
} : null;
|
|
1795
1826
|
}
|
|
1796
|
-
function
|
|
1797
|
-
const
|
|
1798
|
-
if (t.enchanted && (
|
|
1799
|
-
return
|
|
1827
|
+
function w0(t) {
|
|
1828
|
+
const i = {};
|
|
1829
|
+
if (t.enchanted && (i.e = t.enchanted), t.soul && (i.s = t.soul), t.charge > 0 && (i.c = t.charge), t.chargeOption.size > 0 && (i.o = C(t.chargeOption, (o) => o !== 0)), Object.keys(i).length > 0)
|
|
1830
|
+
return i;
|
|
1800
1831
|
}
|
|
1801
|
-
const
|
|
1802
|
-
const
|
|
1832
|
+
const g0 = (t) => {
|
|
1833
|
+
const i = (c) => typeof c.id == "number" && typeof c.n == "string" && (c.d === void 0 || typeof c.d == "string") && typeof c.i == "object" && c.i !== null && o(c.i) && (c.i2 === void 0 || typeof c.i2 == "object" && c.i2 !== null && o(c.i2)) && (c.n2 === void 0 || typeof c.n2 == "string") && (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(
|
|
1803
1834
|
(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"
|
|
1804
1835
|
) && Array.isArray(c.o) && c.o.every(
|
|
1805
1836
|
(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"
|
|
1806
1837
|
) && (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.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(
|
|
1807
|
-
(n) => n === null || typeof n == "object" && n !== null &&
|
|
1838
|
+
(n) => n === null || typeof n == "object" && n !== null && h(n)
|
|
1808
1839
|
)) && (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(
|
|
1809
|
-
(n) => n === null || typeof n == "object" && n !== null &&
|
|
1810
|
-
)) && (c.w === void 0 || typeof c.w == "object" && c.w !== null && Array.isArray(c.w) === !1 &&
|
|
1840
|
+
(n) => n === null || typeof n == "object" && n !== null && h(n)
|
|
1841
|
+
)) && (c.w === void 0 || typeof c.w == "object" && c.w !== null && Array.isArray(c.w) === !1 && d(c.w)), o = (c) => typeof c.id == "number" && Array.isArray(c.origin) && c.origin.length === 2 && typeof c.origin[0] == "number" && typeof c.origin[1] == "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(
|
|
1811
1842
|
(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"
|
|
1812
|
-
),
|
|
1843
|
+
), d = (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(
|
|
1813
1844
|
(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"
|
|
1814
|
-
)),
|
|
1845
|
+
)), M = (c) => typeof c.name == "string" && typeof c.skill == "string" && c.option instanceof Map && [...c.option].every(
|
|
1815
1846
|
(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"
|
|
1816
1847
|
) && typeof c.multiplier == "number";
|
|
1817
|
-
return typeof t == "object" && t !== null &&
|
|
1848
|
+
return typeof t == "object" && t !== null && i(t);
|
|
1818
1849
|
};
|
|
1819
|
-
function
|
|
1820
|
-
return JSON.stringify(
|
|
1850
|
+
function q0(t) {
|
|
1851
|
+
return JSON.stringify(v0(t));
|
|
1821
1852
|
}
|
|
1822
|
-
function
|
|
1823
|
-
return
|
|
1853
|
+
function W0(t) {
|
|
1854
|
+
return F(JSON.parse(t));
|
|
1824
1855
|
}
|
|
1825
|
-
function
|
|
1856
|
+
function O0(t) {
|
|
1826
1857
|
try {
|
|
1827
|
-
const
|
|
1828
|
-
if (
|
|
1829
|
-
return
|
|
1858
|
+
const i = JSON.parse(t);
|
|
1859
|
+
if (g0(i))
|
|
1860
|
+
return F(i);
|
|
1830
1861
|
} catch {
|
|
1831
1862
|
}
|
|
1832
1863
|
return null;
|
|
1833
1864
|
}
|
|
1834
|
-
function C(t,
|
|
1865
|
+
function C(t, i, o) {
|
|
1835
1866
|
let a = [...t];
|
|
1836
|
-
return
|
|
1867
|
+
return i && (a = a.filter((h) => i(h[1]))), o ? a.map((h) => [h[0], o(h[1])]) : a;
|
|
1837
1868
|
}
|
|
1838
|
-
function
|
|
1869
|
+
function V(t, i, o) {
|
|
1839
1870
|
let a = t;
|
|
1840
|
-
return
|
|
1871
|
+
return i && (a = a.filter(i)), o ? a.map(o) : a === t ? [...t] : a;
|
|
1841
1872
|
}
|
|
1842
|
-
function U(t,
|
|
1843
|
-
return
|
|
1873
|
+
function U(t, i) {
|
|
1874
|
+
return i ? new Map(t.map((o) => [o[0], i(o[1])])) : new Map(t);
|
|
1844
1875
|
}
|
|
1845
|
-
function
|
|
1846
|
-
return
|
|
1876
|
+
function j(t, i) {
|
|
1877
|
+
return i ? [...t].map(i) : [...t];
|
|
1847
1878
|
}
|
|
1848
|
-
function
|
|
1849
|
-
const
|
|
1850
|
-
return
|
|
1879
|
+
function F(t) {
|
|
1880
|
+
const i = new A();
|
|
1881
|
+
return i.itemID = t.id, i.name = t.n, t.d && (i.desc = t.d), i.icon = t.i, t.i2 && t.n2 && (i.anvilIcon = t.i2, i.anvilName = t.n2), i.type = t.t, i.req = t.r, i.props = U(t.pr), i.options = U(t.o, E0), t.c && (i.totalUpgradeCount = t.c), t.up && (i.upgradeCount = t.up), t.f && (i.upgradeFailCount = t.f), t.h && (i.hammerCount = t.h), t.m && (i.maxStar = t.m), t.s && (i.star = t.s), t.a && (i.amazing = t.a), t.k && (i.karma = t.k), t.cp && (i.canPotential = t.cp), t.g && (i.grade = t.g), t.p && (i.potentials = j(t.p, z)), t.g2 && (i.additionalGrade = t.g2), t.p2 && (i.additionalPotentials = j(t.p2, z)), C0(t.w, i), i;
|
|
1851
1882
|
}
|
|
1852
|
-
function
|
|
1853
|
-
const
|
|
1854
|
-
return
|
|
1883
|
+
function E0(t) {
|
|
1884
|
+
const i = new $();
|
|
1885
|
+
return i.base = t[0], i.bonus = t[1], i.upgrade = t[2], i.enchant = t[3], i;
|
|
1855
1886
|
}
|
|
1856
|
-
function
|
|
1887
|
+
function z(t) {
|
|
1857
1888
|
if (!t)
|
|
1858
1889
|
return null;
|
|
1859
|
-
const
|
|
1860
|
-
return
|
|
1890
|
+
const i = new I();
|
|
1891
|
+
return i.code = t.c, i.optionType = t.t, i.reqLevel = t.l, i.summary = t.s, i.option = U(t.o), i;
|
|
1861
1892
|
}
|
|
1862
|
-
function
|
|
1893
|
+
function C0(t, i) {
|
|
1863
1894
|
if (t) {
|
|
1864
|
-
const o =
|
|
1895
|
+
const o = i.soulWeapon;
|
|
1865
1896
|
t?.e && (o.enchanted = t.e), t?.s && (o.soul = t.s), t?.c && (o.charge = t.c), t?.o && (o.chargeOption = U(t.o));
|
|
1866
1897
|
}
|
|
1867
1898
|
}
|
|
1868
1899
|
export {
|
|
1869
|
-
|
|
1900
|
+
u as BonusStatType,
|
|
1870
1901
|
A as Gear,
|
|
1871
1902
|
$ as GearOption,
|
|
1872
|
-
|
|
1903
|
+
s as GearPropType,
|
|
1873
1904
|
f as GearType,
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1905
|
+
I as Potential,
|
|
1906
|
+
N as PotentialGrade,
|
|
1907
|
+
B as SoulWeapon,
|
|
1908
|
+
N0 as addAmazingEnhancement,
|
|
1909
|
+
U0 as addBonusStat,
|
|
1910
|
+
G as addStarforce,
|
|
1911
|
+
K0 as addUpgradeFailCount,
|
|
1912
|
+
L0 as applyGoldHammer,
|
|
1913
|
+
b0 as applyScroll,
|
|
1914
|
+
H0 as applySpellTrace,
|
|
1915
|
+
v0 as gearToPlain,
|
|
1916
|
+
Q as getBonusStatOption,
|
|
1917
|
+
Z as getBonusStatValue,
|
|
1918
|
+
f0 as getSpellTraceScroll,
|
|
1919
|
+
g0 as isGearLike,
|
|
1920
|
+
W0 as parseGear,
|
|
1921
|
+
F as plainToGear,
|
|
1922
|
+
I0 as recalculateStarforce,
|
|
1923
|
+
X0 as resetBonusStat,
|
|
1924
|
+
e as resetEnhancement,
|
|
1925
|
+
_0 as resetUpgrade,
|
|
1926
|
+
x0 as restoreUpgradeCount,
|
|
1927
|
+
q0 as stringifyGear,
|
|
1928
|
+
O0 as validateParseGear
|
|
1898
1929
|
};
|