@malib/gear 0.15.0 → 1.0.0-next.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/dist/index.cjs +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +1 -0
- package/dist/lib/Gear.d.ts +413 -0
- package/dist/lib/GearAttribute.d.ts +54 -0
- package/dist/lib/GearReq.d.ts +72 -0
- package/dist/lib/data/GearAttributeData.d.ts +103 -0
- package/dist/lib/data/GearData.d.ts +130 -0
- package/dist/lib/data/GearOption.d.ts +69 -0
- package/dist/lib/data/GearType.d.ts +220 -0
- package/dist/lib/data/PotentialData.d.ts +8 -0
- package/dist/lib/data/PotentialGrade.d.ts +7 -0
- package/dist/lib/data/SoulSlotData.d.ts +39 -0
- package/dist/lib/data/index.d.ts +7 -0
- package/dist/lib/enhance/addOption.d.ts +96 -0
- package/dist/lib/enhance/exceptional.d.ts +48 -0
- package/dist/lib/enhance/spellTrace.d.ts +59 -0
- package/dist/lib/enhance/starforce.d.ts +133 -0
- package/dist/lib/enhance/upgrade.d.ts +90 -0
- package/dist/lib/errors.d.ts +27 -0
- package/dist/lib/gearOption.d.ts +9 -0
- package/dist/lib/gearType.d.ts +55 -0
- package/dist/lib/soulSlot.d.ts +58 -0
- package/dist/lib/testUtils.d.ts +5 -0
- package/dist/lib/utils.d.ts +3 -0
- package/package.json +13 -10
- package/index.cjs +0 -2
- package/index.d.ts +0 -1
- package/index.js +0 -2200
- package/internal.d.ts +0 -26
- package/lib/create/create-gear.d.ts +0 -38
- package/lib/create/create-potential.d.ts +0 -32
- package/lib/create/create-soul.d.ts +0 -56
- package/lib/create/interfaces/gear.d.ts +0 -27
- package/lib/create/interfaces/itemoption.d.ts +0 -13
- package/lib/create/interfaces/soul.d.ts +0 -17
- package/lib/gear.d.ts +0 -226
- package/lib/gearoption.d.ts +0 -19
- package/lib/gearproptype.d.ts +0 -103
- package/lib/geartype.d.ts +0 -441
- package/lib/logic/bonusstat.d.ts +0 -40
- package/lib/logic/bonusstattype.d.ts +0 -47
- package/lib/logic/enhancement.d.ts +0 -40
- package/lib/logic/exceptional.d.ts +0 -16
- package/lib/logic/exceptionalparts.d.ts +0 -5
- package/lib/logic/scroll.d.ts +0 -28
- package/lib/logic/upgrade.d.ts +0 -47
- package/lib/migrate/migrate.d.ts +0 -34
- package/lib/potential.d.ts +0 -38
- package/lib/potentialgrade.d.ts +0 -29
- package/lib/serialize/fromplain.d.ts +0 -8
- package/lib/serialize/interface.d.ts +0 -95
- package/lib/serialize/toplain.d.ts +0 -8
- package/lib/serialize/util.d.ts +0 -27
- package/lib/serialize/validate.d.ts +0 -7
- package/lib/soul.d.ts +0 -73
package/index.js
DELETED
|
@@ -1,2200 +0,0 @@
|
|
|
1
|
-
class _ {
|
|
2
|
-
constructor() {
|
|
3
|
-
this.base = 0, this.bonus = 0, this.upgrade = 0, this.enchant = 0;
|
|
4
|
-
}
|
|
5
|
-
/** 모든 수치가 0일 경우 `true`; 아닐 경우 `false` */
|
|
6
|
-
get empty() {
|
|
7
|
-
return this.base === 0 && this.bonus === 0 && this.upgrade === 0 && this.enchant === 0;
|
|
8
|
-
}
|
|
9
|
-
/** 모든 수치의 합; 합이 음수일 경우 `0` */
|
|
10
|
-
get sum() {
|
|
11
|
-
return Math.max(0, this.base + this.bonus + this.upgrade + this.enchant);
|
|
12
|
-
}
|
|
13
|
-
/** 기본 수치 대비 변화량 */
|
|
14
|
-
get diff() {
|
|
15
|
-
return this.bonus + this.upgrade + this.enchant;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
var i = /* @__PURE__ */ ((t) => (t[t.incSTR = 1] = "incSTR", t[t.incSTRr = 2] = "incSTRr", t[t.incDEX = 3] = "incDEX", t[t.incDEXr = 4] = "incDEXr", t[t.incINT = 5] = "incINT", t[t.incINTr = 6] = "incINTr", t[t.incLUK = 7] = "incLUK", t[t.incLUKr = 8] = "incLUKr", t[t.incAllStat = 9] = "incAllStat", t[t.incMHP = 10] = "incMHP", t[t.incMMP = 11] = "incMMP", t[t.incMHPr = 12] = "incMHPr", t[t.incMMPr = 13] = "incMMPr", t[t.incMDF = 14] = "incMDF", t[t.incARC = 15] = "incARC", t[t.incAUT = 16] = "incAUT", t[t.incPAD = 17] = "incPAD", t[t.incMAD = 18] = "incMAD", t[t.incAD = 19] = "incAD", t[t.incPDD = 20] = "incPDD", t[t.incSpeed = 21] = "incSpeed", t[t.incJump = 22] = "incJump", t[t.knockback = 23] = "knockback", t[t.bdR = 24] = "bdR", t[t.incBDR = 25] = "incBDR", t[t.imdR = 26] = "imdR", t[t.incIMDR = 27] = "incIMDR", t[t.damR = 28] = "damR", t[t.nbdR = 29] = "nbdR", t[t.statR = 30] = "statR", t[t.incCHUC = 31] = "incCHUC", t[t.incPADr = 100] = "incPADr", t[t.incMADr = 101] = "incMADr", t[t.incPDDr = 102] = "incPDDr", t[t.incCr = 103] = "incCr", t[t.incDAMr = 104] = "incDAMr", t[t.RecoveryHP = 105] = "RecoveryHP", t[t.RecoveryMP = 106] = "RecoveryMP", t[t.face = 107] = "face", t[t.prop = 108] = "prop", t[t.time = 109] = "time", t[t.HP = 110] = "HP", t[t.MP = 111] = "MP", t[t.attackType = 112] = "attackType", t[t.ignoreTargetDEF = 113] = "ignoreTargetDEF", t[t.ignoreDAM = 114] = "ignoreDAM", t[t.ignoreDAMr = 115] = "ignoreDAMr", t[t.DAMreflect = 116] = "DAMreflect", t[t.mpconReduce = 117] = "mpconReduce", t[t.incMesoProp = 118] = "incMesoProp", t[t.incRewardProp = 119] = "incRewardProp", t[t.incAllskill = 120] = "incAllskill", t[t.RecoveryUP = 121] = "RecoveryUP", t[t.boss = 122] = "boss", t[t.level = 123] = "level", t[t.incTerR = 124] = "incTerR", t[t.incAsrR = 125] = "incAsrR", t[t.incEXPr = 126] = "incEXPr", t[t.reduceCooltime = 127] = "reduceCooltime", t[t.incSTRlv = 128] = "incSTRlv", t[t.incDEXlv = 129] = "incDEXlv", t[t.incINTlv = 130] = "incINTlv", t[t.incLUKlv = 131] = "incLUKlv", t[t.incMHPlv = 132] = "incMHPlv", t[t.incPADlv = 133] = "incPADlv", t[t.incMADlv = 134] = "incMADlv", t[t.incCriticaldamage = 135] = "incCriticaldamage", t[t.attackSpeed = 200] = "attackSpeed", t[t.setItemID = 201] = "setItemID", t[t.durability = 202] = "durability", t[t.reduceReq = 203] = "reduceReq", t[t.only = 1100] = "only", t[t.tradeBlock = 1101] = "tradeBlock", t[t.accountSharable = 1102] = "accountSharable", t[t.onlyEquip = 1103] = "onlyEquip", t[t.tradeAvailable = 1104] = "tradeAvailable", t[t.equipTradeBlock = 1105] = "equipTradeBlock", t[t.sharableOnce = 1106] = "sharableOnce", t[t.charismaEXP = 1107] = "charismaEXP", t[t.senseEXP = 1108] = "senseEXP", t[t.insightEXP = 1109] = "insightEXP", t[t.willEXP = 1110] = "willEXP", t[t.craftEXP = 1111] = "craftEXP", t[t.charmEXP = 1112] = "charmEXP", t[t.accountShareTag = 1113] = "accountShareTag", t[t.bossReward = 1114] = "bossReward", t[t.noPotential = 1115] = "noPotential", t[t.fixedPotential = 1116] = "fixedPotential", t[t.specialGrade = 1117] = "specialGrade", t[t.fixedGrade = 1118] = "fixedGrade", t[t.superiorEqp = 1119] = "superiorEqp", t[t.incPQEXPr = 1120] = "incPQEXPr", t[t.jokerToSetItem = 1121] = "jokerToSetItem", t[t.blockGoldHammer = 1122] = "blockGoldHammer", t[t.exceptUpgrade = 1123] = "exceptUpgrade", t[t.onlyUpgrade = 1124] = "onlyUpgrade", t[t.noLookChange = 1125] = "noLookChange", t[t.tucIgnoreForPotential = 1126] = "tucIgnoreForPotential", t))(i || {}), 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
|
-
class Q {
|
|
20
|
-
constructor(o) {
|
|
21
|
-
this.enchanted = !1, this.charge = 0, this.chargeOption = /* @__PURE__ */ new Map(), this.gear = o;
|
|
22
|
-
}
|
|
23
|
-
get can() {
|
|
24
|
-
return D.isWeapon(this.gear.type);
|
|
25
|
-
}
|
|
26
|
-
get type() {
|
|
27
|
-
return this.gear.option(i.incPAD).base >= this.gear.option(i.incMAD).base ? i.incPAD : i.incMAD;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* 소울 인챈트를 적용합니다.
|
|
31
|
-
* @returns 적용했을 경우 `true`; 아닐 경우 `false`.
|
|
32
|
-
* 이미 소울 인챈트 상태이거나 장비 분류가 무기가 아닐 경우 `false`를 반환합니다.
|
|
33
|
-
*/
|
|
34
|
-
enchant() {
|
|
35
|
-
return this.enchanted || !this.can ? !1 : (this.enchanted = !0, this.soul = void 0, this.charge = 0, this.chargeOption.clear(), !0);
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* 소울 인챈트를 해제합니다.
|
|
39
|
-
* @returns 해제했을 경우 `true`; 아닐 경우 `false`.
|
|
40
|
-
* 소울 인챈트 상태가 아닐 경우 `false`를 반환합니다.
|
|
41
|
-
*/
|
|
42
|
-
disenchant() {
|
|
43
|
-
return this.enchanted ? (this.enchanted = !1, this.soul = void 0, this.charge = 0, this.chargeOption.clear(), !0) : !1;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* 소울 충전량을 설정합니다.
|
|
47
|
-
* 소울 충전량으로 증가하는 옵션을 다시 계산합니다.
|
|
48
|
-
* `0`부터 `1000`까지의 값으로 설정할 수 있습니다.
|
|
49
|
-
* @param charge 소울 충전량.
|
|
50
|
-
* @returns 설정했을 경우 `true`; 아닐 경우 `false`.
|
|
51
|
-
* 소울 인챈트 상태가 아닐 경우 `false`를 반환합니다.
|
|
52
|
-
*/
|
|
53
|
-
setCharge(o) {
|
|
54
|
-
return !this.enchanted || o < 0 || o > 1e3 ? !1 : (this.charge = o, this.updateChargeOption(), !0);
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* 소울을 장착합니다.
|
|
58
|
-
* 소울 충전량으로 증가하는 옵션을 다시 계산합니다.
|
|
59
|
-
* 소울 인챈트가 적용된 상태에만 장착됩니다.
|
|
60
|
-
* @param soul 장착할 소울.
|
|
61
|
-
* @returns 장착했을 경우 `true`; 아닐 경우 `false`.
|
|
62
|
-
* 소울 인챈트 상태가 아닐 경우 `false`를 반환합니다.
|
|
63
|
-
*/
|
|
64
|
-
setSoul(o) {
|
|
65
|
-
return this.enchanted ? (this.soul = o, this.updateChargeOption(), !0) : !1;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* 장착된 소울을 제거합니다.
|
|
69
|
-
* @returns 제거했을 경우 `true`; 아닐 경우 `false`.
|
|
70
|
-
* 소울 인챈트 상태가 아니거나 장착된 소울이 없을 경우 `false`를 반환합니다.
|
|
71
|
-
*/
|
|
72
|
-
removeSoul() {
|
|
73
|
-
return !this.enchanted || !this.soul ? !1 : (this.soul = void 0, this.updateChargeOption(), !0);
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* 소울 충전량으로 증가하는 옵션을 다시 계산합니다.
|
|
77
|
-
* @returns 적용했을 경우 `true`; 아닐 경우 `false`.
|
|
78
|
-
*/
|
|
79
|
-
updateChargeOption() {
|
|
80
|
-
return this.chargeOption.clear(), this.chargeOption.set(this.type, this.getChargeAD()), !0;
|
|
81
|
-
}
|
|
82
|
-
getChargeAD() {
|
|
83
|
-
if (!this.enchanted || this.charge === 0)
|
|
84
|
-
return 0;
|
|
85
|
-
const o = Math.min(Math.ceil(this.charge / 100) - 1, 5);
|
|
86
|
-
if (this.soul) {
|
|
87
|
-
const s = this.soul.multiplier;
|
|
88
|
-
return 10 + o * s;
|
|
89
|
-
}
|
|
90
|
-
return 5 + o;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
const E = class {
|
|
94
|
-
constructor() {
|
|
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
|
-
id: 0
|
|
97
|
-
}, this.req = {
|
|
98
|
-
level: 0,
|
|
99
|
-
str: 0,
|
|
100
|
-
dex: 0,
|
|
101
|
-
int: 0,
|
|
102
|
-
luk: 0,
|
|
103
|
-
job: 0,
|
|
104
|
-
specJob: 0
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* 업그레이드 가능 횟수
|
|
109
|
-
*/
|
|
110
|
-
get upgradeCountLeft() {
|
|
111
|
-
return this.totalUpgradeCount + this.hammerCount - this.upgradeCount - this.upgradeFailCount;
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* 익셉셔널 업그레이드 가능 횟수
|
|
115
|
-
*/
|
|
116
|
-
get exceptionalUpgradeCountLeft() {
|
|
117
|
-
return this.exceptionalTotalUpgradeCount - this.exceptionalUpgradeCount;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* 가중치를 포함하여 계산한 현재 옵션과 기본 옵션의 차이
|
|
121
|
-
*/
|
|
122
|
-
get diff() {
|
|
123
|
-
let t = 0;
|
|
124
|
-
for (const [o, s] of this.options)
|
|
125
|
-
t += Math.floor(s.diff / E.getPropTypeWeight(o));
|
|
126
|
-
return t;
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* 장비를 처음 획득했을 때 추가옵션이 존재했는지 여부
|
|
130
|
-
*
|
|
131
|
-
* *일부 저레벨 장비의 경우 인게임과 차이가 있습니다.*
|
|
132
|
-
*
|
|
133
|
-
* 장비 아이콘 왼쪽 위의 원이 채워져있으면 `true`; 아니면 `false`입니다.
|
|
134
|
-
*/
|
|
135
|
-
get isNewBonusType() {
|
|
136
|
-
return !!([...this.options.values()].some((o) => o.bonus > 0) && this.getPropValue(i.tradeAvailable) !== 1);
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* 지정된 장비 옵션 종류과 연결된 옵션을 가져옵니다.
|
|
140
|
-
* @param type 장비 옵션 종류.
|
|
141
|
-
* @returns 장비 옵션 객체. 존재하지 않을 경우 장비에 추가한 뒤 반환합니다.
|
|
142
|
-
*/
|
|
143
|
-
option(t) {
|
|
144
|
-
return this.options.has(t) || this.options.set(t, new _()), this.options.get(t);
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
* 지정된 장비 속성 종류과 연결된 값을 가져옵니다.
|
|
148
|
-
* @param type 장비 속성 종류.
|
|
149
|
-
* @returns 속성의 값. 장비에 존재하지 않을 경우 추가하지 않고 `0`을 반환합니다.
|
|
150
|
-
*/
|
|
151
|
-
getPropValue(t) {
|
|
152
|
-
return this.props.get(t) ?? 0;
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* 지정된 장비 속성 종류과 연결된 `boolean` 값을 가져옵니다.
|
|
156
|
-
* @param type 장비 속성 종류.
|
|
157
|
-
* @returns 속성이 존재하고 값이 `0` 이상일 경우 `true`; 아닐 경우 `false`.
|
|
158
|
-
*/
|
|
159
|
-
getBooleanValue(t) {
|
|
160
|
-
return (this.props.get(t) ?? 0) > 0;
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* 장비에 신비의 모루 외형을 적용합니다.
|
|
164
|
-
* @param icon 외형 아이콘.
|
|
165
|
-
* @param name 외형 장비명.
|
|
166
|
-
*/
|
|
167
|
-
setAnvil(t) {
|
|
168
|
-
this.anvil = t;
|
|
169
|
-
}
|
|
170
|
-
/**
|
|
171
|
-
* 장비에 적용된 신비의 모루 외형을 제거합니다.
|
|
172
|
-
*/
|
|
173
|
-
resetAnvil() {
|
|
174
|
-
this.anvil = void 0;
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* 장비 분류가 주무기인지 여부를 확인합니다. 블레이드(`katara`)는 포함되지 않습니다.
|
|
178
|
-
* @param type 장비 분류.
|
|
179
|
-
* @returns 주무기일 경우 `true`; 아닐 경우 `false`.
|
|
180
|
-
*/
|
|
181
|
-
static isWeapon(t) {
|
|
182
|
-
return this.isLeftWeapon(t) || this.isDoubleHandWeapon(t);
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* 장비 분류가 한손무기인지 여부를 확인합니다. 블레이드(`katara`)는 포함되지 않습니다.
|
|
186
|
-
* @param type 장비 분류.
|
|
187
|
-
* @returns 한손무기일 경우 `true`; 아닐 경우 `false`.
|
|
188
|
-
*/
|
|
189
|
-
static isLeftWeapon(t) {
|
|
190
|
-
return t >= 121 && t <= 139 && t !== r.katara || Math.floor(t / 10) === 121;
|
|
191
|
-
}
|
|
192
|
-
/**
|
|
193
|
-
* 장비 분류가 두손무기인지 여부를 확인합니다.
|
|
194
|
-
* @param type 장비 분류.
|
|
195
|
-
* @returns 두손무기일 경우 `true`; 아닐 경우 `false`.
|
|
196
|
-
*/
|
|
197
|
-
static isDoubleHandWeapon(t) {
|
|
198
|
-
return t >= 140 && t <= 149 || t >= 152 && t <= 159 || Math.floor(t / 10) === 140;
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
* 장비 분류가 보조무기인지 여부를 확인합니다. 블레이드(`katara`), 방패류가 포함됩니다.
|
|
202
|
-
* @param type 장비 분류.
|
|
203
|
-
* @returns 보조무기일 경우 `true`; 아닐 경우 `false`.
|
|
204
|
-
*/
|
|
205
|
-
static isSubWeapon(t) {
|
|
206
|
-
switch (t) {
|
|
207
|
-
case r.katara:
|
|
208
|
-
case r.shield:
|
|
209
|
-
case r.demonShield:
|
|
210
|
-
case r.soulShield:
|
|
211
|
-
return !0;
|
|
212
|
-
default:
|
|
213
|
-
return Math.floor(t / 1e3) === 135;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
/**
|
|
217
|
-
* 장비 분류가 방패인지 여부를 확인합니다.
|
|
218
|
-
* @param type 장비 분류.
|
|
219
|
-
* @returns 방패일 경우 `true`; 아닐 경우 `false`.
|
|
220
|
-
*/
|
|
221
|
-
static isShield(t) {
|
|
222
|
-
switch (t) {
|
|
223
|
-
case r.shield:
|
|
224
|
-
case r.demonShield:
|
|
225
|
-
case r.soulShield:
|
|
226
|
-
return !0;
|
|
227
|
-
default:
|
|
228
|
-
return !1;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
/**
|
|
232
|
-
* 장비 분류가 방어구인지 여부를 확인합니다. 어깨장식이 포함되지 않고 방패가 포함됩니다.
|
|
233
|
-
* @param type 장비 분류.
|
|
234
|
-
* @returns 방어구일 경우 `true`; 아닐 경우 `false`.
|
|
235
|
-
*/
|
|
236
|
-
static isArmor(t) {
|
|
237
|
-
return t === 100 || t >= 104 && t <= 110 || t === r.soulShield || t === r.demonShield;
|
|
238
|
-
}
|
|
239
|
-
/**
|
|
240
|
-
* 장비 분류가 장신구인지 여부를 확인합니다. 어깨장식이 포함됩니다.
|
|
241
|
-
* @param type 장비 분류.
|
|
242
|
-
* @returns 장신구일 경우 `true`; 아닐 경우 `false`.
|
|
243
|
-
*/
|
|
244
|
-
static isAccessory(t) {
|
|
245
|
-
return t >= 101 && t <= 103 || t >= 111 && t <= 113 || t === 115;
|
|
246
|
-
}
|
|
247
|
-
/**
|
|
248
|
-
* 장비 분류가 메카닉 장비인지 여부를 확인합니다.
|
|
249
|
-
* @param type 장비 분류.
|
|
250
|
-
* @returns 메카닉 장비일 경우 `true`; 아닐 경우 `false`.
|
|
251
|
-
*/
|
|
252
|
-
static isMechanicGear(t) {
|
|
253
|
-
return t >= 161 && t <= 165;
|
|
254
|
-
}
|
|
255
|
-
/**
|
|
256
|
-
* 장비 분류가 에반 드래곤 장비인지 여부를 확인합니다.
|
|
257
|
-
* @param type 장비 분류.
|
|
258
|
-
* @returns 에반 드래곤 장비일 경우 `true`; 아닐 경우 `false`.
|
|
259
|
-
*/
|
|
260
|
-
static isDragonGear(t) {
|
|
261
|
-
return t >= 194 && t <= 197;
|
|
262
|
-
}
|
|
263
|
-
/**
|
|
264
|
-
* 장비 ID로부터 장비 분류를 계산합니다.
|
|
265
|
-
* @param gearID 장비 ID.
|
|
266
|
-
* @returns 장비 분류.
|
|
267
|
-
*/
|
|
268
|
-
static getGearType(t) {
|
|
269
|
-
switch (Math.floor(t / 1e3)) {
|
|
270
|
-
case 1098:
|
|
271
|
-
return r.soulShield;
|
|
272
|
-
case 1099:
|
|
273
|
-
return r.demonShield;
|
|
274
|
-
case 1212:
|
|
275
|
-
return r.shiningRod;
|
|
276
|
-
case 1213:
|
|
277
|
-
return r.tuner;
|
|
278
|
-
case 1214:
|
|
279
|
-
return r.breathShooter;
|
|
280
|
-
case 1404:
|
|
281
|
-
return r.chakram;
|
|
282
|
-
}
|
|
283
|
-
if (Math.floor(t / 1e4) === 135)
|
|
284
|
-
switch (Math.floor(t / 100)) {
|
|
285
|
-
case 13522:
|
|
286
|
-
case 13528:
|
|
287
|
-
case 13529:
|
|
288
|
-
case 13540:
|
|
289
|
-
return Math.floor(t / 10);
|
|
290
|
-
default:
|
|
291
|
-
return Math.floor(t / 100) * 10;
|
|
292
|
-
}
|
|
293
|
-
if (Math.floor(t / 1e4) === 119)
|
|
294
|
-
switch (Math.floor(t / 100)) {
|
|
295
|
-
case 11902:
|
|
296
|
-
return Math.floor(t / 10);
|
|
297
|
-
}
|
|
298
|
-
return Math.floor(t / 1e4);
|
|
299
|
-
}
|
|
300
|
-
/**
|
|
301
|
-
* 장비의 최대 강화 수치를 계산합니다.
|
|
302
|
-
* @param gear 계산할 장비.
|
|
303
|
-
* @returns 장비의 최대 강화 수치.
|
|
304
|
-
* 최대 업그레이드 가능 횟수가 `0`이거나 `onlyUpgrade` 속성이 존재하거나 메카닉 장비 또는 드래곤 장비일 경우 `0`입니다.
|
|
305
|
-
*/
|
|
306
|
-
static getMaxStar(t) {
|
|
307
|
-
if (t.totalUpgradeCount <= 0 || t.getBooleanValue(i.onlyUpgrade) || E.isMechanicGear(t.type) || E.isDragonGear(t.type))
|
|
308
|
-
return 0;
|
|
309
|
-
let o;
|
|
310
|
-
const s = t.req.level;
|
|
311
|
-
for (const a of E.starData)
|
|
312
|
-
if (s >= a[0])
|
|
313
|
-
o = a;
|
|
314
|
-
else
|
|
315
|
-
break;
|
|
316
|
-
return o === void 0 ? 0 : t.getBooleanValue(i.superiorEqp) ? o[2] : o[1];
|
|
317
|
-
}
|
|
318
|
-
static getPropTypeWeight(t) {
|
|
319
|
-
if (t < 100)
|
|
320
|
-
switch (t) {
|
|
321
|
-
case i.incSTR:
|
|
322
|
-
case i.incDEX:
|
|
323
|
-
case i.incINT:
|
|
324
|
-
case i.incLUK:
|
|
325
|
-
case i.incPAD:
|
|
326
|
-
case i.incMAD:
|
|
327
|
-
case i.incSpeed:
|
|
328
|
-
case i.incJump:
|
|
329
|
-
return 1;
|
|
330
|
-
case i.incMHP:
|
|
331
|
-
case i.incMMP:
|
|
332
|
-
return 100;
|
|
333
|
-
case i.incPDD:
|
|
334
|
-
return 10;
|
|
335
|
-
case i.incAD:
|
|
336
|
-
return 2;
|
|
337
|
-
}
|
|
338
|
-
return Number.MAX_VALUE;
|
|
339
|
-
}
|
|
340
|
-
};
|
|
341
|
-
let D = E;
|
|
342
|
-
D.starData = [
|
|
343
|
-
[0, 5, 3],
|
|
344
|
-
[95, 8, 5],
|
|
345
|
-
[110, 10, 8],
|
|
346
|
-
[120, 15, 10],
|
|
347
|
-
[130, 20, 12],
|
|
348
|
-
[140, 25, 15]
|
|
349
|
-
];
|
|
350
|
-
class w {
|
|
351
|
-
constructor() {
|
|
352
|
-
this.code = 0, this.optionType = 0, this.reqLevel = 0, this.summary = "", this.option = /* @__PURE__ */ new Map();
|
|
353
|
-
}
|
|
354
|
-
/**
|
|
355
|
-
* 장비에 표시되는 문자열
|
|
356
|
-
*/
|
|
357
|
-
get convertSummary() {
|
|
358
|
-
const o = [...this.option.keys()];
|
|
359
|
-
o.sort((a, f) => i[f].length - i[a].length);
|
|
360
|
-
let s = this.summary;
|
|
361
|
-
for (const a of o)
|
|
362
|
-
s = s.replace(
|
|
363
|
-
`#${i[a]}`,
|
|
364
|
-
(this.option.get(a) ?? 0).toString()
|
|
365
|
-
);
|
|
366
|
-
return s;
|
|
367
|
-
}
|
|
368
|
-
/**
|
|
369
|
-
* 장비의 착용 가능 레벨로부터 잠재옵션의 레벨을 계산합니다.
|
|
370
|
-
* @param gearReqLevel 장비의 착용 가능 레벨.
|
|
371
|
-
* @returns 잠재옵션 레벨. 1부터 25까지의 값입니다.
|
|
372
|
-
*/
|
|
373
|
-
static getPotentialLevel(o) {
|
|
374
|
-
return o <= 0 ? 1 : o >= 250 ? 25 : Math.floor((o + 9) / 10);
|
|
375
|
-
}
|
|
376
|
-
/**
|
|
377
|
-
* 잠재옵션 분류와 장비 분류를 비교합니다.
|
|
378
|
-
* @param optionType 잠재옵션 분류.
|
|
379
|
-
* @param gearType 장비 분류.
|
|
380
|
-
* @returns 잠재옵션 분류가 장비 분류에 적용 가능한 경우 `true`; 아닌 경우 `false`.
|
|
381
|
-
*/
|
|
382
|
-
static checkOptionType(o, s) {
|
|
383
|
-
switch (o) {
|
|
384
|
-
case 0:
|
|
385
|
-
return !0;
|
|
386
|
-
case 10:
|
|
387
|
-
return D.isWeapon(s) || D.isSubWeapon(s) || s === r.emblem;
|
|
388
|
-
case 11:
|
|
389
|
-
return !w.checkOptionType(10, s);
|
|
390
|
-
case 20:
|
|
391
|
-
return D.isSubWeapon(s) || s === r.cap || s === r.coat || s === r.longcoat || s === r.pants || s === r.shoes || s === r.glove || s === r.cape || s === r.belt || s === r.shoulder;
|
|
392
|
-
case 40:
|
|
393
|
-
return s === r.faceAccessory || s === r.eyeAccessory || s === r.earrings || s === r.ring || s === r.pendant;
|
|
394
|
-
case 51:
|
|
395
|
-
return s === r.cap;
|
|
396
|
-
case 52:
|
|
397
|
-
return s === r.coat || s === r.longcoat;
|
|
398
|
-
case 53:
|
|
399
|
-
return s === r.pants;
|
|
400
|
-
case 54:
|
|
401
|
-
return s === r.glove;
|
|
402
|
-
case 55:
|
|
403
|
-
return s === r.shoes;
|
|
404
|
-
default:
|
|
405
|
-
return !1;
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
}
|
|
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 l0(t, o, s) {
|
|
411
|
-
const a = Y(t, o, s);
|
|
412
|
-
if (a.size === 0)
|
|
413
|
-
return !1;
|
|
414
|
-
for (const [f, u] of a)
|
|
415
|
-
t.option(f).bonus += u;
|
|
416
|
-
return !0;
|
|
417
|
-
}
|
|
418
|
-
function Z(t) {
|
|
419
|
-
for (const [, o] of t.options)
|
|
420
|
-
o.bonus = 0;
|
|
421
|
-
return !0;
|
|
422
|
-
}
|
|
423
|
-
function Y(t, o, s) {
|
|
424
|
-
const a = G(o), f = P(t, o, s);
|
|
425
|
-
return f === 0 ? /* @__PURE__ */ new Map() : new Map(a.map((u) => [u, f]));
|
|
426
|
-
}
|
|
427
|
-
function P(t, o, s) {
|
|
428
|
-
const a = t.req.level, f = t.getBooleanValue(i.bossReward), u = t.type;
|
|
429
|
-
if (a < 0 || f && s < 3)
|
|
430
|
-
return 0;
|
|
431
|
-
switch (o) {
|
|
432
|
-
case d.STR:
|
|
433
|
-
case d.DEX:
|
|
434
|
-
case d.INT:
|
|
435
|
-
case d.LUK:
|
|
436
|
-
return I(a, s);
|
|
437
|
-
case d.STR_DEX:
|
|
438
|
-
case d.STR_INT:
|
|
439
|
-
case d.STR_LUK:
|
|
440
|
-
case d.DEX_INT:
|
|
441
|
-
case d.DEX_LUK:
|
|
442
|
-
case d.INT_LUK:
|
|
443
|
-
return p(a, s);
|
|
444
|
-
case d.PDD:
|
|
445
|
-
return I(a, s);
|
|
446
|
-
case d.PAD:
|
|
447
|
-
case d.MAD:
|
|
448
|
-
return m(
|
|
449
|
-
a,
|
|
450
|
-
s,
|
|
451
|
-
o,
|
|
452
|
-
t.type,
|
|
453
|
-
f,
|
|
454
|
-
t.option(i.incPAD).base,
|
|
455
|
-
t.option(i.incMAD).base
|
|
456
|
-
);
|
|
457
|
-
case d.MHP:
|
|
458
|
-
case d.MMP:
|
|
459
|
-
return y(a, s);
|
|
460
|
-
case d.speed:
|
|
461
|
-
case d.jump:
|
|
462
|
-
return D.isWeapon(u) ? 0 : s;
|
|
463
|
-
case d.damR:
|
|
464
|
-
return D.isWeapon(u) ? s : 0;
|
|
465
|
-
case d.bdR:
|
|
466
|
-
return a < 90 || !D.isWeapon(u) ? 0 : 2 * s;
|
|
467
|
-
case d.allStatR:
|
|
468
|
-
return a < 70 && !D.isWeapon(u) ? 0 : s;
|
|
469
|
-
case d.reduceReq:
|
|
470
|
-
return T(a, s);
|
|
471
|
-
default:
|
|
472
|
-
return 0;
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
function I(t, o) {
|
|
476
|
-
return t >= 250 ? Math.floor(t / 20) * o : (Math.floor(t / 20) + 1) * o;
|
|
477
|
-
}
|
|
478
|
-
function p(t, o) {
|
|
479
|
-
return (Math.floor(t / 40) + 1) * o;
|
|
480
|
-
}
|
|
481
|
-
function m(t, o, s, a, f, u, h) {
|
|
482
|
-
if (D.isWeapon(a)) {
|
|
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
|
-
let n = u;
|
|
485
|
-
if (a === r.heavySword || a === r.longSword) {
|
|
486
|
-
if (a === r.longSword)
|
|
487
|
-
switch (n) {
|
|
488
|
-
case 100:
|
|
489
|
-
n = 102;
|
|
490
|
-
break;
|
|
491
|
-
case 103:
|
|
492
|
-
n = 105;
|
|
493
|
-
break;
|
|
494
|
-
case 105:
|
|
495
|
-
n = 107;
|
|
496
|
-
break;
|
|
497
|
-
case 112:
|
|
498
|
-
n = 114;
|
|
499
|
-
break;
|
|
500
|
-
case 117:
|
|
501
|
-
n = 121;
|
|
502
|
-
break;
|
|
503
|
-
case 135:
|
|
504
|
-
n = 139;
|
|
505
|
-
break;
|
|
506
|
-
case 169:
|
|
507
|
-
n = 173;
|
|
508
|
-
break;
|
|
509
|
-
case 203:
|
|
510
|
-
n = 207;
|
|
511
|
-
break;
|
|
512
|
-
case 293:
|
|
513
|
-
n = 297;
|
|
514
|
-
break;
|
|
515
|
-
case 337:
|
|
516
|
-
n = 342;
|
|
517
|
-
break;
|
|
518
|
-
}
|
|
519
|
-
const M = t > 180 ? 6 : t > 160 ? 5 : t > 110 ? 4 : 3;
|
|
520
|
-
return Math.ceil(n * c[o - 1] * M / 100);
|
|
521
|
-
} else if (s === d.MAD && h >= n && (n = h), f) {
|
|
522
|
-
const M = t > 160 ? 18 : t > 150 ? 15 : t > 110 ? 12 : 9;
|
|
523
|
-
return Math.ceil(n * c[o - 1] * M / 100);
|
|
524
|
-
} else {
|
|
525
|
-
const M = t > 110 ? 4 : 3;
|
|
526
|
-
return Math.ceil(n * c[o - 1] * M / 100);
|
|
527
|
-
}
|
|
528
|
-
} else if (t < 60)
|
|
529
|
-
return 0;
|
|
530
|
-
return o;
|
|
531
|
-
}
|
|
532
|
-
function y(t, o) {
|
|
533
|
-
return t < 10 ? 3 * o : t >= 250 ? 700 * o : Math.floor(t / 10) * 30 * o;
|
|
534
|
-
}
|
|
535
|
-
function T(t, o) {
|
|
536
|
-
return o * 5;
|
|
537
|
-
}
|
|
538
|
-
function G(t) {
|
|
539
|
-
switch (t) {
|
|
540
|
-
case d.STR:
|
|
541
|
-
return [i.incSTR];
|
|
542
|
-
case d.DEX:
|
|
543
|
-
return [i.incDEX];
|
|
544
|
-
case d.INT:
|
|
545
|
-
return [i.incINT];
|
|
546
|
-
case d.LUK:
|
|
547
|
-
return [i.incLUK];
|
|
548
|
-
case d.STR_DEX:
|
|
549
|
-
return [i.incSTR, i.incDEX];
|
|
550
|
-
case d.STR_INT:
|
|
551
|
-
return [i.incSTR, i.incINT];
|
|
552
|
-
case d.STR_LUK:
|
|
553
|
-
return [i.incSTR, i.incLUK];
|
|
554
|
-
case d.DEX_INT:
|
|
555
|
-
return [i.incDEX, i.incINT];
|
|
556
|
-
case d.DEX_LUK:
|
|
557
|
-
return [i.incDEX, i.incLUK];
|
|
558
|
-
case d.INT_LUK:
|
|
559
|
-
return [i.incINT, i.incLUK];
|
|
560
|
-
case d.PDD:
|
|
561
|
-
return [i.incPDD];
|
|
562
|
-
case d.PAD:
|
|
563
|
-
return [i.incPAD];
|
|
564
|
-
case d.MAD:
|
|
565
|
-
return [i.incMAD];
|
|
566
|
-
case d.MHP:
|
|
567
|
-
return [i.incMHP];
|
|
568
|
-
case d.MMP:
|
|
569
|
-
return [i.incMMP];
|
|
570
|
-
case d.speed:
|
|
571
|
-
return [i.incSpeed];
|
|
572
|
-
case d.jump:
|
|
573
|
-
return [i.incJump];
|
|
574
|
-
case d.damR:
|
|
575
|
-
return [i.damR];
|
|
576
|
-
case d.bdR:
|
|
577
|
-
return [i.bdR];
|
|
578
|
-
case d.allStatR:
|
|
579
|
-
return [i.statR];
|
|
580
|
-
case d.reduceReq:
|
|
581
|
-
return [i.reduceReq];
|
|
582
|
-
default:
|
|
583
|
-
return [];
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
const e = 25, H = 15;
|
|
587
|
-
function $(t, o = !1) {
|
|
588
|
-
if (t.getBooleanValue(i.incCHUC))
|
|
589
|
-
return !1;
|
|
590
|
-
if (t.getBooleanValue(i.superiorEqp))
|
|
591
|
-
return t0(t);
|
|
592
|
-
if (t.star >= t.maxStar && !o || t.star >= e)
|
|
593
|
-
return !1;
|
|
594
|
-
t.star += 1;
|
|
595
|
-
const s = t.star, a = g(t, !1, !1), f = g(t, !1, !0), u = D.isWeapon(t.type) || t.type === r.katara, h = [
|
|
596
|
-
[i.incSTR, i.incDEX],
|
|
597
|
-
[i.incINT, i.incLUK],
|
|
598
|
-
[i.incDEX, i.incSTR],
|
|
599
|
-
[i.incLUK, i.incDEX],
|
|
600
|
-
[i.incSTR, i.incDEX]
|
|
601
|
-
], c = [
|
|
602
|
-
i.incSTR,
|
|
603
|
-
i.incDEX,
|
|
604
|
-
i.incINT,
|
|
605
|
-
i.incLUK
|
|
606
|
-
];
|
|
607
|
-
let n;
|
|
608
|
-
const M = t.req.job;
|
|
609
|
-
if (M === 0)
|
|
610
|
-
n = /* @__PURE__ */ new Set([
|
|
611
|
-
i.incSTR,
|
|
612
|
-
i.incDEX,
|
|
613
|
-
i.incINT,
|
|
614
|
-
i.incLUK
|
|
615
|
-
]);
|
|
616
|
-
else {
|
|
617
|
-
n = /* @__PURE__ */ new Set();
|
|
618
|
-
for (let A = 0; A < 5; A++)
|
|
619
|
-
if (M & 1 << A)
|
|
620
|
-
for (const b of h[A])
|
|
621
|
-
n.add(b);
|
|
622
|
-
}
|
|
623
|
-
for (const A of c)
|
|
624
|
-
(n.has(A) || s > 15 && (t.option(A).base > 0 || t.option(A).upgrade > 0)) && (t.option(A).enchant += a[s]);
|
|
625
|
-
if (u) {
|
|
626
|
-
const A = M === 0 || Math.floor(M / 2) % 2 === 1 || t.option(i.incMAD).upgrade > 0;
|
|
627
|
-
if (s > 15)
|
|
628
|
-
t.option(i.incPAD).enchant += f[s], A && (t.option(i.incMAD).enchant += f[s]);
|
|
629
|
-
else {
|
|
630
|
-
const b = t.option(i.incPAD).sum - t.option(i.incPAD).bonus;
|
|
631
|
-
if (t.option(i.incPAD).enchant += Math.floor(b / 50) + 1, A) {
|
|
632
|
-
const B = t.option(i.incMAD).sum - t.option(i.incMAD).bonus;
|
|
633
|
-
t.option(i.incMAD).enchant += Math.floor(B / 50) + 1;
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
} else
|
|
637
|
-
t.option(i.incPAD).enchant += f[s], t.option(i.incMAD).enchant += f[s], t.type === r.glove && (M === 0 ? (t.option(i.incPAD).enchant += X[s], t.option(i.incMAD).enchant += X[s]) : Math.floor(M / 2) % 2 === 1 ? t.option(i.incMAD).enchant += X[s] : t.option(i.incPAD).enchant += X[s]);
|
|
638
|
-
if (!u && t.type !== r.machineHeart) {
|
|
639
|
-
const A = t.option(i.incPDD).sum - t.option(i.incPDD).bonus;
|
|
640
|
-
t.option(i.incPDD).enchant += Math.floor(A / 20) + 1;
|
|
641
|
-
}
|
|
642
|
-
const v = [
|
|
643
|
-
r.cap,
|
|
644
|
-
r.coat,
|
|
645
|
-
r.longcoat,
|
|
646
|
-
r.pants,
|
|
647
|
-
r.cape,
|
|
648
|
-
r.ring,
|
|
649
|
-
r.pendant,
|
|
650
|
-
r.belt,
|
|
651
|
-
r.shoulder,
|
|
652
|
-
r.shield
|
|
653
|
-
];
|
|
654
|
-
return u ? (t.option(i.incMHP).enchant += L[s], t.option(i.incMMP).enchant += L[s]) : v.includes(t.type) && (t.option(i.incMHP).enchant += L[s]), t.type === r.shoes && (t.option(i.incSpeed).enchant += q[s], t.option(i.incJump).enchant += q[s]), !0;
|
|
655
|
-
}
|
|
656
|
-
function t0(t) {
|
|
657
|
-
if (t.star >= t.maxStar)
|
|
658
|
-
return !1;
|
|
659
|
-
t.star += 1;
|
|
660
|
-
const o = t.star, s = g(t, !1, !1), a = g(t, !1, !0), f = [
|
|
661
|
-
i.incSTR,
|
|
662
|
-
i.incDEX,
|
|
663
|
-
i.incINT,
|
|
664
|
-
i.incLUK
|
|
665
|
-
];
|
|
666
|
-
for (const c of f)
|
|
667
|
-
t.option(c).base > 0 && (t.option(c).enchant += s[o]);
|
|
668
|
-
const u = [i.incPAD, i.incMAD];
|
|
669
|
-
for (const c of u)
|
|
670
|
-
t.option(c).base > 0 && (t.option(c).enchant += a[o]);
|
|
671
|
-
const h = t.option(i.incPDD).sum - t.option(i.incPDD).bonus;
|
|
672
|
-
return t.option(i.incPDD).enchant += Math.floor(h / 20) + 1, !0;
|
|
673
|
-
}
|
|
674
|
-
function J0(t, o = !1, s = !1) {
|
|
675
|
-
if (t.getBooleanValue(i.incCHUC) || t.getBooleanValue(i.superiorEqp) || t.req.level > 150 || t.star >= t.maxStar && !s || t.star >= H)
|
|
676
|
-
return !1;
|
|
677
|
-
t.amazing || (t.amazing = !0, t.maxStar = Math.min(t.maxStar, H)), t.star += 1;
|
|
678
|
-
const a = t.star, f = g(t, !0, !1), u = g(t, !0, !0), h = D.isWeapon(t.type) || t.type === r.katara, c = [
|
|
679
|
-
i.incSTR,
|
|
680
|
-
i.incDEX,
|
|
681
|
-
i.incINT,
|
|
682
|
-
i.incLUK
|
|
683
|
-
];
|
|
684
|
-
for (const v of c)
|
|
685
|
-
if (t.option(v).sum > 0) {
|
|
686
|
-
let b = f[a];
|
|
687
|
-
o && D.isAccessory(t.type) && (b += a > 5 ? 2 : 1), t.option(v).enchant += b;
|
|
688
|
-
}
|
|
689
|
-
const n = [i.incPAD, i.incMAD];
|
|
690
|
-
for (const v of n) {
|
|
691
|
-
const A = t.option(v).sum;
|
|
692
|
-
if (A > 0) {
|
|
693
|
-
h && (t.option(v).enchant += Math.floor(A / 50) + 1);
|
|
694
|
-
let b = u[a];
|
|
695
|
-
o && (h || t.type === r.shield) && (b += 1), t.option(v).enchant += b;
|
|
696
|
-
}
|
|
697
|
-
}
|
|
698
|
-
o && D.isArmor(t.type) && (t.option(i.incMHP).enchant += 50);
|
|
699
|
-
const M = t.option(i.incPDD).sum;
|
|
700
|
-
return t.option(i.incPDD).enchant += Math.floor(M / 20) + 1, !0;
|
|
701
|
-
}
|
|
702
|
-
function l(t) {
|
|
703
|
-
if (t.getBooleanValue(i.incCHUC))
|
|
704
|
-
return !1;
|
|
705
|
-
t.star = 0, t.amazing = !1, t.maxStar = D.getMaxStar(t);
|
|
706
|
-
for (const [, o] of t.options)
|
|
707
|
-
o.enchant = 0;
|
|
708
|
-
return !0;
|
|
709
|
-
}
|
|
710
|
-
function B0(t) {
|
|
711
|
-
if (t.getBooleanValue(i.incCHUC) || t.amazing)
|
|
712
|
-
return !1;
|
|
713
|
-
const o = t.star;
|
|
714
|
-
l(t);
|
|
715
|
-
for (let s = 0; s < o; s++)
|
|
716
|
-
$(t, !0);
|
|
717
|
-
return !0;
|
|
718
|
-
}
|
|
719
|
-
function g(t, o, s) {
|
|
720
|
-
let a;
|
|
721
|
-
t.getBooleanValue(i.superiorEqp) ? s ? a = n0 : a = o0 : o ? s ? a = a0 : a = r0 : s ? D.isWeapon(t.type) || t.type === r.katara ? a = c0 : a = i0 : a = s0;
|
|
722
|
-
const f = t.req.level;
|
|
723
|
-
for (const u of [...a].reverse())
|
|
724
|
-
if (f >= u[0])
|
|
725
|
-
return u;
|
|
726
|
-
throw Error(`Gear has invalid reqLevel.
|
|
727
|
-
` + t);
|
|
728
|
-
}
|
|
729
|
-
const n0 = [
|
|
730
|
-
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
731
|
-
[110, 0, 0, 0, 0, 0, 5, 6, 7, 0, 0, 0, 0, 0, 0, 0],
|
|
732
|
-
[150, 0, 0, 0, 0, 0, 9, 10, 11, 12, 13, 15, 17, 19, 21, 23]
|
|
733
|
-
], o0 = [
|
|
734
|
-
[0, 1, 2, 4, 7, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
735
|
-
[80, 2, 3, 5, 8, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
736
|
-
[110, 9, 10, 12, 15, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
737
|
-
[150, 19, 20, 22, 25, 29, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
|
738
|
-
], c0 = [
|
|
739
|
-
[
|
|
740
|
-
0,
|
|
741
|
-
0,
|
|
742
|
-
0,
|
|
743
|
-
0,
|
|
744
|
-
0,
|
|
745
|
-
0,
|
|
746
|
-
0,
|
|
747
|
-
0,
|
|
748
|
-
0,
|
|
749
|
-
0,
|
|
750
|
-
0,
|
|
751
|
-
0,
|
|
752
|
-
0,
|
|
753
|
-
0,
|
|
754
|
-
0,
|
|
755
|
-
0,
|
|
756
|
-
0,
|
|
757
|
-
0,
|
|
758
|
-
0,
|
|
759
|
-
0,
|
|
760
|
-
0,
|
|
761
|
-
0,
|
|
762
|
-
0,
|
|
763
|
-
0,
|
|
764
|
-
0,
|
|
765
|
-
0
|
|
766
|
-
],
|
|
767
|
-
[
|
|
768
|
-
108,
|
|
769
|
-
0,
|
|
770
|
-
0,
|
|
771
|
-
0,
|
|
772
|
-
0,
|
|
773
|
-
0,
|
|
774
|
-
0,
|
|
775
|
-
0,
|
|
776
|
-
0,
|
|
777
|
-
0,
|
|
778
|
-
0,
|
|
779
|
-
0,
|
|
780
|
-
0,
|
|
781
|
-
0,
|
|
782
|
-
0,
|
|
783
|
-
0,
|
|
784
|
-
4,
|
|
785
|
-
5,
|
|
786
|
-
5,
|
|
787
|
-
6,
|
|
788
|
-
7,
|
|
789
|
-
8,
|
|
790
|
-
9,
|
|
791
|
-
27,
|
|
792
|
-
28,
|
|
793
|
-
29
|
|
794
|
-
],
|
|
795
|
-
[
|
|
796
|
-
118,
|
|
797
|
-
0,
|
|
798
|
-
0,
|
|
799
|
-
0,
|
|
800
|
-
0,
|
|
801
|
-
0,
|
|
802
|
-
0,
|
|
803
|
-
0,
|
|
804
|
-
0,
|
|
805
|
-
0,
|
|
806
|
-
0,
|
|
807
|
-
0,
|
|
808
|
-
0,
|
|
809
|
-
0,
|
|
810
|
-
0,
|
|
811
|
-
0,
|
|
812
|
-
5,
|
|
813
|
-
6,
|
|
814
|
-
6,
|
|
815
|
-
7,
|
|
816
|
-
8,
|
|
817
|
-
9,
|
|
818
|
-
10,
|
|
819
|
-
28,
|
|
820
|
-
29,
|
|
821
|
-
30
|
|
822
|
-
],
|
|
823
|
-
[
|
|
824
|
-
128,
|
|
825
|
-
0,
|
|
826
|
-
0,
|
|
827
|
-
0,
|
|
828
|
-
0,
|
|
829
|
-
0,
|
|
830
|
-
0,
|
|
831
|
-
0,
|
|
832
|
-
0,
|
|
833
|
-
0,
|
|
834
|
-
0,
|
|
835
|
-
0,
|
|
836
|
-
0,
|
|
837
|
-
0,
|
|
838
|
-
0,
|
|
839
|
-
0,
|
|
840
|
-
6,
|
|
841
|
-
7,
|
|
842
|
-
7,
|
|
843
|
-
8,
|
|
844
|
-
9,
|
|
845
|
-
10,
|
|
846
|
-
11,
|
|
847
|
-
29,
|
|
848
|
-
30,
|
|
849
|
-
31
|
|
850
|
-
],
|
|
851
|
-
[
|
|
852
|
-
138,
|
|
853
|
-
0,
|
|
854
|
-
0,
|
|
855
|
-
0,
|
|
856
|
-
0,
|
|
857
|
-
0,
|
|
858
|
-
0,
|
|
859
|
-
0,
|
|
860
|
-
0,
|
|
861
|
-
0,
|
|
862
|
-
0,
|
|
863
|
-
0,
|
|
864
|
-
0,
|
|
865
|
-
0,
|
|
866
|
-
0,
|
|
867
|
-
0,
|
|
868
|
-
7,
|
|
869
|
-
8,
|
|
870
|
-
8,
|
|
871
|
-
9,
|
|
872
|
-
10,
|
|
873
|
-
11,
|
|
874
|
-
12,
|
|
875
|
-
30,
|
|
876
|
-
31,
|
|
877
|
-
32
|
|
878
|
-
],
|
|
879
|
-
[
|
|
880
|
-
148,
|
|
881
|
-
0,
|
|
882
|
-
0,
|
|
883
|
-
0,
|
|
884
|
-
0,
|
|
885
|
-
0,
|
|
886
|
-
0,
|
|
887
|
-
0,
|
|
888
|
-
0,
|
|
889
|
-
0,
|
|
890
|
-
0,
|
|
891
|
-
0,
|
|
892
|
-
0,
|
|
893
|
-
0,
|
|
894
|
-
0,
|
|
895
|
-
0,
|
|
896
|
-
8,
|
|
897
|
-
9,
|
|
898
|
-
9,
|
|
899
|
-
10,
|
|
900
|
-
11,
|
|
901
|
-
12,
|
|
902
|
-
13,
|
|
903
|
-
31,
|
|
904
|
-
32,
|
|
905
|
-
33
|
|
906
|
-
],
|
|
907
|
-
[
|
|
908
|
-
158,
|
|
909
|
-
0,
|
|
910
|
-
0,
|
|
911
|
-
0,
|
|
912
|
-
0,
|
|
913
|
-
0,
|
|
914
|
-
0,
|
|
915
|
-
0,
|
|
916
|
-
0,
|
|
917
|
-
0,
|
|
918
|
-
0,
|
|
919
|
-
0,
|
|
920
|
-
0,
|
|
921
|
-
0,
|
|
922
|
-
0,
|
|
923
|
-
0,
|
|
924
|
-
9,
|
|
925
|
-
9,
|
|
926
|
-
10,
|
|
927
|
-
11,
|
|
928
|
-
12,
|
|
929
|
-
13,
|
|
930
|
-
14,
|
|
931
|
-
32,
|
|
932
|
-
33,
|
|
933
|
-
34
|
|
934
|
-
],
|
|
935
|
-
[
|
|
936
|
-
198,
|
|
937
|
-
0,
|
|
938
|
-
0,
|
|
939
|
-
0,
|
|
940
|
-
0,
|
|
941
|
-
0,
|
|
942
|
-
0,
|
|
943
|
-
0,
|
|
944
|
-
0,
|
|
945
|
-
0,
|
|
946
|
-
0,
|
|
947
|
-
0,
|
|
948
|
-
0,
|
|
949
|
-
0,
|
|
950
|
-
0,
|
|
951
|
-
0,
|
|
952
|
-
13,
|
|
953
|
-
13,
|
|
954
|
-
14,
|
|
955
|
-
14,
|
|
956
|
-
15,
|
|
957
|
-
16,
|
|
958
|
-
17,
|
|
959
|
-
34,
|
|
960
|
-
35,
|
|
961
|
-
36
|
|
962
|
-
],
|
|
963
|
-
[
|
|
964
|
-
248,
|
|
965
|
-
0,
|
|
966
|
-
0,
|
|
967
|
-
0,
|
|
968
|
-
0,
|
|
969
|
-
0,
|
|
970
|
-
0,
|
|
971
|
-
0,
|
|
972
|
-
0,
|
|
973
|
-
0,
|
|
974
|
-
0,
|
|
975
|
-
0,
|
|
976
|
-
0,
|
|
977
|
-
0,
|
|
978
|
-
0,
|
|
979
|
-
0,
|
|
980
|
-
15,
|
|
981
|
-
15,
|
|
982
|
-
16,
|
|
983
|
-
16,
|
|
984
|
-
17,
|
|
985
|
-
18,
|
|
986
|
-
19,
|
|
987
|
-
36,
|
|
988
|
-
37,
|
|
989
|
-
38
|
|
990
|
-
]
|
|
991
|
-
], i0 = [
|
|
992
|
-
[
|
|
993
|
-
0,
|
|
994
|
-
0,
|
|
995
|
-
0,
|
|
996
|
-
0,
|
|
997
|
-
0,
|
|
998
|
-
0,
|
|
999
|
-
0,
|
|
1000
|
-
0,
|
|
1001
|
-
0,
|
|
1002
|
-
0,
|
|
1003
|
-
0,
|
|
1004
|
-
0,
|
|
1005
|
-
0,
|
|
1006
|
-
0,
|
|
1007
|
-
0,
|
|
1008
|
-
0,
|
|
1009
|
-
0,
|
|
1010
|
-
0,
|
|
1011
|
-
0,
|
|
1012
|
-
0,
|
|
1013
|
-
0,
|
|
1014
|
-
0,
|
|
1015
|
-
0,
|
|
1016
|
-
0,
|
|
1017
|
-
0,
|
|
1018
|
-
0
|
|
1019
|
-
],
|
|
1020
|
-
[
|
|
1021
|
-
108,
|
|
1022
|
-
0,
|
|
1023
|
-
0,
|
|
1024
|
-
0,
|
|
1025
|
-
0,
|
|
1026
|
-
0,
|
|
1027
|
-
0,
|
|
1028
|
-
0,
|
|
1029
|
-
0,
|
|
1030
|
-
0,
|
|
1031
|
-
0,
|
|
1032
|
-
0,
|
|
1033
|
-
0,
|
|
1034
|
-
0,
|
|
1035
|
-
0,
|
|
1036
|
-
0,
|
|
1037
|
-
5,
|
|
1038
|
-
6,
|
|
1039
|
-
7,
|
|
1040
|
-
8,
|
|
1041
|
-
9,
|
|
1042
|
-
10,
|
|
1043
|
-
12,
|
|
1044
|
-
13,
|
|
1045
|
-
15,
|
|
1046
|
-
17
|
|
1047
|
-
],
|
|
1048
|
-
[
|
|
1049
|
-
118,
|
|
1050
|
-
0,
|
|
1051
|
-
0,
|
|
1052
|
-
0,
|
|
1053
|
-
0,
|
|
1054
|
-
0,
|
|
1055
|
-
0,
|
|
1056
|
-
0,
|
|
1057
|
-
0,
|
|
1058
|
-
0,
|
|
1059
|
-
0,
|
|
1060
|
-
0,
|
|
1061
|
-
0,
|
|
1062
|
-
0,
|
|
1063
|
-
0,
|
|
1064
|
-
0,
|
|
1065
|
-
6,
|
|
1066
|
-
7,
|
|
1067
|
-
8,
|
|
1068
|
-
9,
|
|
1069
|
-
10,
|
|
1070
|
-
11,
|
|
1071
|
-
13,
|
|
1072
|
-
14,
|
|
1073
|
-
16,
|
|
1074
|
-
18
|
|
1075
|
-
],
|
|
1076
|
-
[
|
|
1077
|
-
128,
|
|
1078
|
-
0,
|
|
1079
|
-
0,
|
|
1080
|
-
0,
|
|
1081
|
-
0,
|
|
1082
|
-
0,
|
|
1083
|
-
0,
|
|
1084
|
-
0,
|
|
1085
|
-
0,
|
|
1086
|
-
0,
|
|
1087
|
-
0,
|
|
1088
|
-
0,
|
|
1089
|
-
0,
|
|
1090
|
-
0,
|
|
1091
|
-
0,
|
|
1092
|
-
0,
|
|
1093
|
-
7,
|
|
1094
|
-
8,
|
|
1095
|
-
9,
|
|
1096
|
-
10,
|
|
1097
|
-
11,
|
|
1098
|
-
12,
|
|
1099
|
-
14,
|
|
1100
|
-
16,
|
|
1101
|
-
18,
|
|
1102
|
-
20
|
|
1103
|
-
],
|
|
1104
|
-
[
|
|
1105
|
-
138,
|
|
1106
|
-
0,
|
|
1107
|
-
0,
|
|
1108
|
-
0,
|
|
1109
|
-
0,
|
|
1110
|
-
0,
|
|
1111
|
-
0,
|
|
1112
|
-
0,
|
|
1113
|
-
0,
|
|
1114
|
-
0,
|
|
1115
|
-
0,
|
|
1116
|
-
0,
|
|
1117
|
-
0,
|
|
1118
|
-
0,
|
|
1119
|
-
0,
|
|
1120
|
-
0,
|
|
1121
|
-
8,
|
|
1122
|
-
9,
|
|
1123
|
-
10,
|
|
1124
|
-
11,
|
|
1125
|
-
12,
|
|
1126
|
-
13,
|
|
1127
|
-
15,
|
|
1128
|
-
17,
|
|
1129
|
-
19,
|
|
1130
|
-
21
|
|
1131
|
-
],
|
|
1132
|
-
[
|
|
1133
|
-
148,
|
|
1134
|
-
0,
|
|
1135
|
-
0,
|
|
1136
|
-
0,
|
|
1137
|
-
0,
|
|
1138
|
-
0,
|
|
1139
|
-
0,
|
|
1140
|
-
0,
|
|
1141
|
-
0,
|
|
1142
|
-
0,
|
|
1143
|
-
0,
|
|
1144
|
-
0,
|
|
1145
|
-
0,
|
|
1146
|
-
0,
|
|
1147
|
-
0,
|
|
1148
|
-
0,
|
|
1149
|
-
9,
|
|
1150
|
-
10,
|
|
1151
|
-
11,
|
|
1152
|
-
12,
|
|
1153
|
-
13,
|
|
1154
|
-
14,
|
|
1155
|
-
16,
|
|
1156
|
-
18,
|
|
1157
|
-
20,
|
|
1158
|
-
22
|
|
1159
|
-
],
|
|
1160
|
-
[
|
|
1161
|
-
158,
|
|
1162
|
-
0,
|
|
1163
|
-
0,
|
|
1164
|
-
0,
|
|
1165
|
-
0,
|
|
1166
|
-
0,
|
|
1167
|
-
0,
|
|
1168
|
-
0,
|
|
1169
|
-
0,
|
|
1170
|
-
0,
|
|
1171
|
-
0,
|
|
1172
|
-
0,
|
|
1173
|
-
0,
|
|
1174
|
-
0,
|
|
1175
|
-
0,
|
|
1176
|
-
0,
|
|
1177
|
-
10,
|
|
1178
|
-
11,
|
|
1179
|
-
12,
|
|
1180
|
-
13,
|
|
1181
|
-
14,
|
|
1182
|
-
15,
|
|
1183
|
-
17,
|
|
1184
|
-
19,
|
|
1185
|
-
21,
|
|
1186
|
-
23
|
|
1187
|
-
],
|
|
1188
|
-
[
|
|
1189
|
-
198,
|
|
1190
|
-
0,
|
|
1191
|
-
0,
|
|
1192
|
-
0,
|
|
1193
|
-
0,
|
|
1194
|
-
0,
|
|
1195
|
-
0,
|
|
1196
|
-
0,
|
|
1197
|
-
0,
|
|
1198
|
-
0,
|
|
1199
|
-
0,
|
|
1200
|
-
0,
|
|
1201
|
-
0,
|
|
1202
|
-
0,
|
|
1203
|
-
0,
|
|
1204
|
-
0,
|
|
1205
|
-
12,
|
|
1206
|
-
13,
|
|
1207
|
-
14,
|
|
1208
|
-
15,
|
|
1209
|
-
16,
|
|
1210
|
-
17,
|
|
1211
|
-
19,
|
|
1212
|
-
21,
|
|
1213
|
-
23,
|
|
1214
|
-
25
|
|
1215
|
-
],
|
|
1216
|
-
[
|
|
1217
|
-
248,
|
|
1218
|
-
0,
|
|
1219
|
-
0,
|
|
1220
|
-
0,
|
|
1221
|
-
0,
|
|
1222
|
-
0,
|
|
1223
|
-
0,
|
|
1224
|
-
0,
|
|
1225
|
-
0,
|
|
1226
|
-
0,
|
|
1227
|
-
0,
|
|
1228
|
-
0,
|
|
1229
|
-
0,
|
|
1230
|
-
0,
|
|
1231
|
-
0,
|
|
1232
|
-
0,
|
|
1233
|
-
14,
|
|
1234
|
-
15,
|
|
1235
|
-
16,
|
|
1236
|
-
17,
|
|
1237
|
-
18,
|
|
1238
|
-
19,
|
|
1239
|
-
21,
|
|
1240
|
-
23,
|
|
1241
|
-
25,
|
|
1242
|
-
27
|
|
1243
|
-
]
|
|
1244
|
-
], s0 = [
|
|
1245
|
-
[
|
|
1246
|
-
0,
|
|
1247
|
-
2,
|
|
1248
|
-
2,
|
|
1249
|
-
2,
|
|
1250
|
-
2,
|
|
1251
|
-
2,
|
|
1252
|
-
3,
|
|
1253
|
-
3,
|
|
1254
|
-
3,
|
|
1255
|
-
3,
|
|
1256
|
-
3,
|
|
1257
|
-
3,
|
|
1258
|
-
3,
|
|
1259
|
-
3,
|
|
1260
|
-
3,
|
|
1261
|
-
3,
|
|
1262
|
-
0,
|
|
1263
|
-
0,
|
|
1264
|
-
0,
|
|
1265
|
-
0,
|
|
1266
|
-
0,
|
|
1267
|
-
0,
|
|
1268
|
-
0,
|
|
1269
|
-
0,
|
|
1270
|
-
0,
|
|
1271
|
-
0
|
|
1272
|
-
],
|
|
1273
|
-
[
|
|
1274
|
-
108,
|
|
1275
|
-
2,
|
|
1276
|
-
2,
|
|
1277
|
-
2,
|
|
1278
|
-
2,
|
|
1279
|
-
2,
|
|
1280
|
-
3,
|
|
1281
|
-
3,
|
|
1282
|
-
3,
|
|
1283
|
-
3,
|
|
1284
|
-
3,
|
|
1285
|
-
3,
|
|
1286
|
-
3,
|
|
1287
|
-
3,
|
|
1288
|
-
3,
|
|
1289
|
-
3,
|
|
1290
|
-
3,
|
|
1291
|
-
3,
|
|
1292
|
-
3,
|
|
1293
|
-
3,
|
|
1294
|
-
3,
|
|
1295
|
-
3,
|
|
1296
|
-
3,
|
|
1297
|
-
0,
|
|
1298
|
-
0,
|
|
1299
|
-
0
|
|
1300
|
-
],
|
|
1301
|
-
[
|
|
1302
|
-
118,
|
|
1303
|
-
2,
|
|
1304
|
-
2,
|
|
1305
|
-
2,
|
|
1306
|
-
2,
|
|
1307
|
-
2,
|
|
1308
|
-
3,
|
|
1309
|
-
3,
|
|
1310
|
-
3,
|
|
1311
|
-
3,
|
|
1312
|
-
3,
|
|
1313
|
-
3,
|
|
1314
|
-
3,
|
|
1315
|
-
3,
|
|
1316
|
-
3,
|
|
1317
|
-
3,
|
|
1318
|
-
5,
|
|
1319
|
-
5,
|
|
1320
|
-
5,
|
|
1321
|
-
5,
|
|
1322
|
-
5,
|
|
1323
|
-
5,
|
|
1324
|
-
5,
|
|
1325
|
-
0,
|
|
1326
|
-
0,
|
|
1327
|
-
0
|
|
1328
|
-
],
|
|
1329
|
-
[
|
|
1330
|
-
128,
|
|
1331
|
-
2,
|
|
1332
|
-
2,
|
|
1333
|
-
2,
|
|
1334
|
-
2,
|
|
1335
|
-
2,
|
|
1336
|
-
3,
|
|
1337
|
-
3,
|
|
1338
|
-
3,
|
|
1339
|
-
3,
|
|
1340
|
-
3,
|
|
1341
|
-
3,
|
|
1342
|
-
3,
|
|
1343
|
-
3,
|
|
1344
|
-
3,
|
|
1345
|
-
3,
|
|
1346
|
-
7,
|
|
1347
|
-
7,
|
|
1348
|
-
7,
|
|
1349
|
-
7,
|
|
1350
|
-
7,
|
|
1351
|
-
7,
|
|
1352
|
-
7,
|
|
1353
|
-
0,
|
|
1354
|
-
0,
|
|
1355
|
-
0
|
|
1356
|
-
],
|
|
1357
|
-
[
|
|
1358
|
-
138,
|
|
1359
|
-
2,
|
|
1360
|
-
2,
|
|
1361
|
-
2,
|
|
1362
|
-
2,
|
|
1363
|
-
2,
|
|
1364
|
-
3,
|
|
1365
|
-
3,
|
|
1366
|
-
3,
|
|
1367
|
-
3,
|
|
1368
|
-
3,
|
|
1369
|
-
3,
|
|
1370
|
-
3,
|
|
1371
|
-
3,
|
|
1372
|
-
3,
|
|
1373
|
-
3,
|
|
1374
|
-
9,
|
|
1375
|
-
9,
|
|
1376
|
-
9,
|
|
1377
|
-
9,
|
|
1378
|
-
9,
|
|
1379
|
-
9,
|
|
1380
|
-
9,
|
|
1381
|
-
0,
|
|
1382
|
-
0,
|
|
1383
|
-
0
|
|
1384
|
-
],
|
|
1385
|
-
[
|
|
1386
|
-
148,
|
|
1387
|
-
2,
|
|
1388
|
-
2,
|
|
1389
|
-
2,
|
|
1390
|
-
2,
|
|
1391
|
-
2,
|
|
1392
|
-
3,
|
|
1393
|
-
3,
|
|
1394
|
-
3,
|
|
1395
|
-
3,
|
|
1396
|
-
3,
|
|
1397
|
-
3,
|
|
1398
|
-
3,
|
|
1399
|
-
3,
|
|
1400
|
-
3,
|
|
1401
|
-
3,
|
|
1402
|
-
11,
|
|
1403
|
-
11,
|
|
1404
|
-
11,
|
|
1405
|
-
11,
|
|
1406
|
-
11,
|
|
1407
|
-
11,
|
|
1408
|
-
11,
|
|
1409
|
-
0,
|
|
1410
|
-
0,
|
|
1411
|
-
0
|
|
1412
|
-
],
|
|
1413
|
-
[
|
|
1414
|
-
158,
|
|
1415
|
-
2,
|
|
1416
|
-
2,
|
|
1417
|
-
2,
|
|
1418
|
-
2,
|
|
1419
|
-
2,
|
|
1420
|
-
3,
|
|
1421
|
-
3,
|
|
1422
|
-
3,
|
|
1423
|
-
3,
|
|
1424
|
-
3,
|
|
1425
|
-
3,
|
|
1426
|
-
3,
|
|
1427
|
-
3,
|
|
1428
|
-
3,
|
|
1429
|
-
3,
|
|
1430
|
-
13,
|
|
1431
|
-
13,
|
|
1432
|
-
13,
|
|
1433
|
-
13,
|
|
1434
|
-
13,
|
|
1435
|
-
13,
|
|
1436
|
-
13,
|
|
1437
|
-
0,
|
|
1438
|
-
0,
|
|
1439
|
-
0
|
|
1440
|
-
],
|
|
1441
|
-
[
|
|
1442
|
-
198,
|
|
1443
|
-
2,
|
|
1444
|
-
2,
|
|
1445
|
-
2,
|
|
1446
|
-
2,
|
|
1447
|
-
2,
|
|
1448
|
-
3,
|
|
1449
|
-
3,
|
|
1450
|
-
3,
|
|
1451
|
-
3,
|
|
1452
|
-
3,
|
|
1453
|
-
3,
|
|
1454
|
-
3,
|
|
1455
|
-
3,
|
|
1456
|
-
3,
|
|
1457
|
-
3,
|
|
1458
|
-
15,
|
|
1459
|
-
15,
|
|
1460
|
-
15,
|
|
1461
|
-
15,
|
|
1462
|
-
15,
|
|
1463
|
-
15,
|
|
1464
|
-
15,
|
|
1465
|
-
0,
|
|
1466
|
-
0,
|
|
1467
|
-
0
|
|
1468
|
-
],
|
|
1469
|
-
[
|
|
1470
|
-
248,
|
|
1471
|
-
2,
|
|
1472
|
-
2,
|
|
1473
|
-
2,
|
|
1474
|
-
2,
|
|
1475
|
-
2,
|
|
1476
|
-
3,
|
|
1477
|
-
3,
|
|
1478
|
-
3,
|
|
1479
|
-
3,
|
|
1480
|
-
3,
|
|
1481
|
-
3,
|
|
1482
|
-
3,
|
|
1483
|
-
3,
|
|
1484
|
-
3,
|
|
1485
|
-
3,
|
|
1486
|
-
17,
|
|
1487
|
-
17,
|
|
1488
|
-
17,
|
|
1489
|
-
17,
|
|
1490
|
-
17,
|
|
1491
|
-
17,
|
|
1492
|
-
17,
|
|
1493
|
-
0,
|
|
1494
|
-
0,
|
|
1495
|
-
0
|
|
1496
|
-
]
|
|
1497
|
-
], a0 = [
|
|
1498
|
-
[0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 8, 10, 12, 14],
|
|
1499
|
-
[80, 0, 0, 0, 0, 0, 2, 3, 4, 5, 6, 7, 9, 11, 13, 15],
|
|
1500
|
-
[90, 0, 0, 0, 0, 0, 3, 4, 5, 6, 7, 8, 10, 12, 14, 16],
|
|
1501
|
-
[100, 0, 0, 0, 0, 0, 4, 5, 6, 7, 8, 9, 11, 13, 15, 17],
|
|
1502
|
-
[110, 0, 0, 0, 0, 0, 5, 6, 7, 8, 9, 10, 12, 14, 16, 18],
|
|
1503
|
-
[120, 0, 0, 0, 0, 0, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19],
|
|
1504
|
-
[130, 0, 0, 0, 0, 0, 7, 8, 9, 10, 11, 12, 14, 16, 18, 20],
|
|
1505
|
-
[140, 0, 0, 0, 0, 0, 8, 9, 10, 11, 12, 13, 15, 17, 19, 21],
|
|
1506
|
-
[150, 0, 0, 0, 0, 0, 9, 10, 11, 12, 13, 14, 16, 18, 20, 22]
|
|
1507
|
-
], r0 = [
|
|
1508
|
-
[0, 1, 2, 4, 7, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
1509
|
-
[80, 2, 3, 5, 8, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
1510
|
-
[85, 3, 4, 6, 9, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
1511
|
-
[90, 4, 5, 7, 10, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
1512
|
-
[95, 5, 6, 8, 11, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
1513
|
-
[100, 7, 8, 10, 13, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
1514
|
-
[105, 8, 9, 11, 14, 18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
1515
|
-
[110, 9, 10, 12, 15, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
1516
|
-
[115, 10, 11, 13, 16, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
1517
|
-
[120, 12, 13, 15, 18, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
1518
|
-
[125, 13, 14, 16, 19, 23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
1519
|
-
[130, 14, 15, 17, 20, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
1520
|
-
[135, 15, 16, 18, 21, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
1521
|
-
[140, 17, 18, 20, 23, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
1522
|
-
[145, 18, 19, 21, 24, 28, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
1523
|
-
[150, 19, 20, 22, 25, 29, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
|
1524
|
-
], X = [
|
|
1525
|
-
0,
|
|
1526
|
-
0,
|
|
1527
|
-
0,
|
|
1528
|
-
0,
|
|
1529
|
-
0,
|
|
1530
|
-
1,
|
|
1531
|
-
0,
|
|
1532
|
-
1,
|
|
1533
|
-
0,
|
|
1534
|
-
1,
|
|
1535
|
-
0,
|
|
1536
|
-
1,
|
|
1537
|
-
0,
|
|
1538
|
-
1,
|
|
1539
|
-
1,
|
|
1540
|
-
1,
|
|
1541
|
-
0,
|
|
1542
|
-
0,
|
|
1543
|
-
0,
|
|
1544
|
-
0,
|
|
1545
|
-
0,
|
|
1546
|
-
0,
|
|
1547
|
-
0,
|
|
1548
|
-
0,
|
|
1549
|
-
0,
|
|
1550
|
-
0
|
|
1551
|
-
], L = [
|
|
1552
|
-
0,
|
|
1553
|
-
5,
|
|
1554
|
-
5,
|
|
1555
|
-
5,
|
|
1556
|
-
10,
|
|
1557
|
-
10,
|
|
1558
|
-
15,
|
|
1559
|
-
15,
|
|
1560
|
-
20,
|
|
1561
|
-
20,
|
|
1562
|
-
25,
|
|
1563
|
-
25,
|
|
1564
|
-
25,
|
|
1565
|
-
25,
|
|
1566
|
-
25,
|
|
1567
|
-
25,
|
|
1568
|
-
0,
|
|
1569
|
-
0,
|
|
1570
|
-
0,
|
|
1571
|
-
0,
|
|
1572
|
-
0,
|
|
1573
|
-
0,
|
|
1574
|
-
0,
|
|
1575
|
-
0,
|
|
1576
|
-
0,
|
|
1577
|
-
0
|
|
1578
|
-
], q = [
|
|
1579
|
-
0,
|
|
1580
|
-
0,
|
|
1581
|
-
0,
|
|
1582
|
-
1,
|
|
1583
|
-
1,
|
|
1584
|
-
1,
|
|
1585
|
-
1,
|
|
1586
|
-
1,
|
|
1587
|
-
1,
|
|
1588
|
-
1,
|
|
1589
|
-
1,
|
|
1590
|
-
2,
|
|
1591
|
-
2,
|
|
1592
|
-
2,
|
|
1593
|
-
2,
|
|
1594
|
-
2,
|
|
1595
|
-
0,
|
|
1596
|
-
0,
|
|
1597
|
-
0,
|
|
1598
|
-
0,
|
|
1599
|
-
0,
|
|
1600
|
-
0,
|
|
1601
|
-
0,
|
|
1602
|
-
0,
|
|
1603
|
-
0,
|
|
1604
|
-
0
|
|
1605
|
-
];
|
|
1606
|
-
function Q0(t, o) {
|
|
1607
|
-
if (t.exceptionalUpgradeCountLeft < 1)
|
|
1608
|
-
return !1;
|
|
1609
|
-
t.exceptionalUpgradeCount += 1;
|
|
1610
|
-
for (const [s, a] of o.option) {
|
|
1611
|
-
const f = t.exceptionalOptions.get(s) ?? 0;
|
|
1612
|
-
t.exceptionalOptions.set(s, f + a);
|
|
1613
|
-
}
|
|
1614
|
-
return !0;
|
|
1615
|
-
}
|
|
1616
|
-
function f0(t) {
|
|
1617
|
-
return t.exceptionalUpgradeCount = 0, t.exceptionalOptions.clear(), !0;
|
|
1618
|
-
}
|
|
1619
|
-
function u0(t, o, s) {
|
|
1620
|
-
if (D.isWeapon(t.type) || t.type === r.katara)
|
|
1621
|
-
return A0(t, o, s);
|
|
1622
|
-
if (t.type === r.glove)
|
|
1623
|
-
return b0(t, o, s);
|
|
1624
|
-
if (D.isArmor(t.type) || t.type === r.shoulder)
|
|
1625
|
-
return M0(t, o, s);
|
|
1626
|
-
if (D.isAccessory(t.type))
|
|
1627
|
-
return v0(t, o, s);
|
|
1628
|
-
if (t.type === r.machineHeart)
|
|
1629
|
-
return S0(t, o, s);
|
|
1630
|
-
}
|
|
1631
|
-
const d0 = {
|
|
1632
|
-
100: [
|
|
1633
|
-
[1, 0],
|
|
1634
|
-
[2, 0],
|
|
1635
|
-
[3, 1]
|
|
1636
|
-
],
|
|
1637
|
-
70: [
|
|
1638
|
-
[2, 0],
|
|
1639
|
-
[3, 1],
|
|
1640
|
-
[5, 2]
|
|
1641
|
-
],
|
|
1642
|
-
30: [
|
|
1643
|
-
[3, 1],
|
|
1644
|
-
[5, 2],
|
|
1645
|
-
[7, 3]
|
|
1646
|
-
],
|
|
1647
|
-
15: [
|
|
1648
|
-
[5, 2],
|
|
1649
|
-
[7, 3],
|
|
1650
|
-
[9, 4]
|
|
1651
|
-
]
|
|
1652
|
-
}, h0 = {
|
|
1653
|
-
100: [
|
|
1654
|
-
[1, 5, 1],
|
|
1655
|
-
[2, 20, 2],
|
|
1656
|
-
[3, 30, 3]
|
|
1657
|
-
],
|
|
1658
|
-
70: [
|
|
1659
|
-
[2, 15, 2],
|
|
1660
|
-
[3, 40, 4],
|
|
1661
|
-
[4, 70, 5]
|
|
1662
|
-
],
|
|
1663
|
-
30: [
|
|
1664
|
-
[3, 30, 4],
|
|
1665
|
-
[5, 70, 7],
|
|
1666
|
-
[7, 120, 10]
|
|
1667
|
-
],
|
|
1668
|
-
15: [
|
|
1669
|
-
[4, 45, 6],
|
|
1670
|
-
[7, 110, 10],
|
|
1671
|
-
[10, 170, 15]
|
|
1672
|
-
]
|
|
1673
|
-
}, O = {
|
|
1674
|
-
30: [1, 2, 3],
|
|
1675
|
-
15: [2, 3, 4]
|
|
1676
|
-
}, K = {
|
|
1677
|
-
30: [1, 2, 3]
|
|
1678
|
-
}, D0 = {
|
|
1679
|
-
100: [0, 1, 1],
|
|
1680
|
-
70: [1, 2, 2],
|
|
1681
|
-
30: [2, 3, 3],
|
|
1682
|
-
15: [3, 4, 4]
|
|
1683
|
-
}, k = {
|
|
1684
|
-
100: [1, 1, 2],
|
|
1685
|
-
70: [2, 2, 3],
|
|
1686
|
-
30: [3, 4, 5]
|
|
1687
|
-
}, W = {
|
|
1688
|
-
100: [1, 2, 3],
|
|
1689
|
-
70: [2, 3, 5],
|
|
1690
|
-
30: [3, 5, 7]
|
|
1691
|
-
}, N = {
|
|
1692
|
-
[i.incSTR]: i.incPAD,
|
|
1693
|
-
[i.incDEX]: i.incPAD,
|
|
1694
|
-
[i.incINT]: i.incMAD,
|
|
1695
|
-
[i.incLUK]: i.incPAD,
|
|
1696
|
-
[i.incMHP]: i.incPAD,
|
|
1697
|
-
[i.incAllStat]: i.incPAD
|
|
1698
|
-
}, U = {
|
|
1699
|
-
[i.incSTR]: "힘",
|
|
1700
|
-
[i.incDEX]: "민첩",
|
|
1701
|
-
[i.incINT]: "지력",
|
|
1702
|
-
[i.incLUK]: "운",
|
|
1703
|
-
[i.incMHP]: "체력",
|
|
1704
|
-
[i.incAllStat]: "올스탯",
|
|
1705
|
-
[i.incPAD]: "공격력",
|
|
1706
|
-
[i.incMAD]: "마력"
|
|
1707
|
-
};
|
|
1708
|
-
function x(t) {
|
|
1709
|
-
return t.req.level > 110 ? 2 : t.req.level > 70 ? 1 : 0;
|
|
1710
|
-
}
|
|
1711
|
-
function A0(t, o, s) {
|
|
1712
|
-
if (o === i.incAllStat)
|
|
1713
|
-
return;
|
|
1714
|
-
const a = x(t);
|
|
1715
|
-
let [f, u] = d0[s][a];
|
|
1716
|
-
const h = N[o], c = U[h];
|
|
1717
|
-
return o === i.incMHP && (u *= 50), { name: u > 0 ? `${s}% ${c}(${U[o]}) 주문서` : `${s}% ${c} 주문서`, option: /* @__PURE__ */ new Map([
|
|
1718
|
-
[o, u],
|
|
1719
|
-
[h, f]
|
|
1720
|
-
]) };
|
|
1721
|
-
}
|
|
1722
|
-
function M0(t, o, s) {
|
|
1723
|
-
const a = x(t), [f, u, h] = h0[s][a];
|
|
1724
|
-
let c = [], n = [], M = [];
|
|
1725
|
-
if (o === i.incMHP)
|
|
1726
|
-
n = [[i.incMHP, u + f * 50]];
|
|
1727
|
-
else if (n = [[i.incMHP, u]], o === i.incAllStat) {
|
|
1728
|
-
if (!(s in O))
|
|
1729
|
-
return;
|
|
1730
|
-
const b = O[s][a];
|
|
1731
|
-
c = [
|
|
1732
|
-
[i.incSTR, b],
|
|
1733
|
-
[i.incDEX, b],
|
|
1734
|
-
[i.incINT, b],
|
|
1735
|
-
[i.incLUK, b]
|
|
1736
|
-
];
|
|
1737
|
-
} else
|
|
1738
|
-
c = [[o, f]];
|
|
1739
|
-
t.upgradeCount === 3 && (t.req.job === 0 ? M = [
|
|
1740
|
-
[i.incPAD, 1],
|
|
1741
|
-
[i.incMAD, 1]
|
|
1742
|
-
] : Math.floor(t.req.job / 2) % 2 === 1 ? M = [[i.incMAD, 1]] : M = [[i.incPAD, 1]]);
|
|
1743
|
-
const v = `${s}% ${U[o]} 주문서`, A = new Map([
|
|
1744
|
-
...c,
|
|
1745
|
-
...M,
|
|
1746
|
-
...n,
|
|
1747
|
-
[i.incPDD, h]
|
|
1748
|
-
]);
|
|
1749
|
-
return { name: v, option: A };
|
|
1750
|
-
}
|
|
1751
|
-
function b0(t, o, s) {
|
|
1752
|
-
const a = x(t), f = D0[s][a];
|
|
1753
|
-
if (f === 0)
|
|
1754
|
-
return {
|
|
1755
|
-
name: `${s}% 방어력 주문서`,
|
|
1756
|
-
option: /* @__PURE__ */ new Map([[i.incPDD, 3]])
|
|
1757
|
-
};
|
|
1758
|
-
{
|
|
1759
|
-
const u = N[o];
|
|
1760
|
-
return {
|
|
1761
|
-
name: `${s}% ${U[u]} 주문서`,
|
|
1762
|
-
option: /* @__PURE__ */ new Map([[u, f]])
|
|
1763
|
-
};
|
|
1764
|
-
}
|
|
1765
|
-
}
|
|
1766
|
-
function v0(t, o, s) {
|
|
1767
|
-
if (!(s in k))
|
|
1768
|
-
return;
|
|
1769
|
-
const a = x(t), f = k[s][a];
|
|
1770
|
-
let u = [];
|
|
1771
|
-
if (o === i.incMHP)
|
|
1772
|
-
u = [[i.incMHP, f * 50]];
|
|
1773
|
-
else if (o === i.incAllStat) {
|
|
1774
|
-
if (!(s in K))
|
|
1775
|
-
return;
|
|
1776
|
-
const n = K[s][a];
|
|
1777
|
-
u = [
|
|
1778
|
-
[i.incSTR, n],
|
|
1779
|
-
[i.incDEX, n],
|
|
1780
|
-
[i.incINT, n],
|
|
1781
|
-
[i.incLUK, n]
|
|
1782
|
-
];
|
|
1783
|
-
} else
|
|
1784
|
-
u = [[o, f]];
|
|
1785
|
-
const h = `${s}% ${U[o]} 주문서`, c = new Map(u);
|
|
1786
|
-
return { name: h, option: c };
|
|
1787
|
-
}
|
|
1788
|
-
function S0(t, o, s) {
|
|
1789
|
-
if (!(s in W))
|
|
1790
|
-
return;
|
|
1791
|
-
const a = x(t), f = W[s][a], u = N[o];
|
|
1792
|
-
return { name: `${s}% ${U[o]} 주문서`, option: /* @__PURE__ */ new Map([[u, f]]) };
|
|
1793
|
-
}
|
|
1794
|
-
function Z0(t) {
|
|
1795
|
-
return t.getBooleanValue(i.blockGoldHammer) || t.getBooleanValue(i.onlyUpgrade) || t.totalUpgradeCount <= 0 || t.hammerCount > 0 ? !1 : (t.hammerCount = 1, !0);
|
|
1796
|
-
}
|
|
1797
|
-
function R0(t, o) {
|
|
1798
|
-
if (t.upgradeCountLeft < 1)
|
|
1799
|
-
return !1;
|
|
1800
|
-
t.upgradeCount += 1;
|
|
1801
|
-
for (const [s, a] of o.option)
|
|
1802
|
-
t.option(s).upgrade += a;
|
|
1803
|
-
return !0;
|
|
1804
|
-
}
|
|
1805
|
-
function Y0(t, o, s) {
|
|
1806
|
-
const a = u0(t, o, s);
|
|
1807
|
-
return a ? R0(t, a) : !1;
|
|
1808
|
-
}
|
|
1809
|
-
function P0(t) {
|
|
1810
|
-
return t.upgradeCountLeft < 1 ? !1 : (t.upgradeFailCount += 1, !0);
|
|
1811
|
-
}
|
|
1812
|
-
function p0(t) {
|
|
1813
|
-
return t.upgradeFailCount < 1 ? !1 : (t.upgradeFailCount -= 1, !0);
|
|
1814
|
-
}
|
|
1815
|
-
function C0(t) {
|
|
1816
|
-
t.upgradeCount = 0, t.upgradeFailCount = 0, t.hammerCount = 0;
|
|
1817
|
-
for (const [, o] of t.options)
|
|
1818
|
-
o.upgrade = 0;
|
|
1819
|
-
return !0;
|
|
1820
|
-
}
|
|
1821
|
-
function w0(t, o, s) {
|
|
1822
|
-
const a = new D();
|
|
1823
|
-
if (a.itemID = o, a.type = D.getGearType(o), a.name = t.name, a.desc = t.desc ?? "", a.icon = {
|
|
1824
|
-
id: t.icon
|
|
1825
|
-
}, a.totalUpgradeCount = t.tuc ?? 0, a.exceptionalTotalUpgradeCount = t.etuc ?? 0, t.req && (a.req = {
|
|
1826
|
-
level: t.req.level ?? 0,
|
|
1827
|
-
str: t.req.str ?? 0,
|
|
1828
|
-
luk: t.req.luk ?? 0,
|
|
1829
|
-
dex: t.req.dex ?? 0,
|
|
1830
|
-
int: t.req.int ?? 0,
|
|
1831
|
-
job: t.req.job ?? 0,
|
|
1832
|
-
specJob: t.req.specJob ?? 0
|
|
1833
|
-
}), t.options)
|
|
1834
|
-
for (const [h, c] of Object.entries(t.options)) {
|
|
1835
|
-
const n = i[h];
|
|
1836
|
-
a.option(n).base = c;
|
|
1837
|
-
}
|
|
1838
|
-
if (t.props)
|
|
1839
|
-
for (const [h, c] of Object.entries(t.props)) {
|
|
1840
|
-
const n = i[h];
|
|
1841
|
-
a.props.set(n, c);
|
|
1842
|
-
}
|
|
1843
|
-
t.pots && (a.potentials = t.pots.map((h) => s(h.option, h.level)).filter((h) => h !== void 0)), (a.totalUpgradeCount > 0 || g0(a.type) || D.isSubWeapon(a.type) || a.getBooleanValue(i.tucIgnoreForPotential) || U0(a.itemID)) && (a.canPotential = !0), (D.isMechanicGear(a.type) || D.isDragonGear(a.type)) && (a.canPotential = !1), a.getBooleanValue(i.noPotential) && (a.canPotential = !1);
|
|
1844
|
-
let f;
|
|
1845
|
-
if (f = a.getPropValue(i.fixedGrade))
|
|
1846
|
-
switch (f) {
|
|
1847
|
-
case 2:
|
|
1848
|
-
a.grade = S.rare;
|
|
1849
|
-
break;
|
|
1850
|
-
case 3:
|
|
1851
|
-
a.grade = S.epic;
|
|
1852
|
-
break;
|
|
1853
|
-
case 5:
|
|
1854
|
-
a.grade = S.unique;
|
|
1855
|
-
break;
|
|
1856
|
-
case 7:
|
|
1857
|
-
a.grade = S.legendary;
|
|
1858
|
-
break;
|
|
1859
|
-
default:
|
|
1860
|
-
a.grade = f - 1;
|
|
1861
|
-
break;
|
|
1862
|
-
}
|
|
1863
|
-
a.potentials.some((h) => h !== void 0) && a.grade === S.normal && (a.grade = S.rare), a.type === r.demonShield && (f = a.option(i.incMMP).base, f > 0 && (a.option(i.incMDF).base = f, a.option(i.incMMP).base = 0)), a.maxStar = D.getMaxStar(a);
|
|
1864
|
-
const u = a.getPropValue(i.incCHUC);
|
|
1865
|
-
return u > 0 && (a.star = u), a;
|
|
1866
|
-
}
|
|
1867
|
-
function g0(t) {
|
|
1868
|
-
switch (t) {
|
|
1869
|
-
case r.soulShield:
|
|
1870
|
-
case r.demonShield:
|
|
1871
|
-
case r.katara:
|
|
1872
|
-
case r.magicArrow:
|
|
1873
|
-
case r.card:
|
|
1874
|
-
case r.orb:
|
|
1875
|
-
case r.dragonEssence:
|
|
1876
|
-
case r.soulRing:
|
|
1877
|
-
case r.magnum:
|
|
1878
|
-
case r.emblem:
|
|
1879
|
-
return !0;
|
|
1880
|
-
default:
|
|
1881
|
-
return !1;
|
|
1882
|
-
}
|
|
1883
|
-
}
|
|
1884
|
-
function U0(t) {
|
|
1885
|
-
switch (t) {
|
|
1886
|
-
case 1113231:
|
|
1887
|
-
case 1114302:
|
|
1888
|
-
case 1114305:
|
|
1889
|
-
return !0;
|
|
1890
|
-
default:
|
|
1891
|
-
return !1;
|
|
1892
|
-
}
|
|
1893
|
-
}
|
|
1894
|
-
class m0 {
|
|
1895
|
-
/**
|
|
1896
|
-
* @param gears KMS 장비 정보
|
|
1897
|
-
* @param
|
|
1898
|
-
*/
|
|
1899
|
-
constructor(o, s) {
|
|
1900
|
-
this.gears = o, this.potentialRepository = s;
|
|
1901
|
-
}
|
|
1902
|
-
/**
|
|
1903
|
-
* 아이템 ID 목록을 반환합니다.
|
|
1904
|
-
* @returns 아이템 ID 목록
|
|
1905
|
-
*/
|
|
1906
|
-
ids() {
|
|
1907
|
-
return Object.keys(this.gears).map((o) => Number(o));
|
|
1908
|
-
}
|
|
1909
|
-
/**
|
|
1910
|
-
* 아이템 ID로부터 장비를 생성합니다.
|
|
1911
|
-
* @param id 장비 아이템 ID.
|
|
1912
|
-
* @returns 아이템 ID에 해당하는 장비. 장비가 존재하지 않을 경우 `undefined`를 반환합니다.
|
|
1913
|
-
*/
|
|
1914
|
-
createGearFromId(o) {
|
|
1915
|
-
if (o in this.gears)
|
|
1916
|
-
return w0(
|
|
1917
|
-
this.gears[o],
|
|
1918
|
-
o,
|
|
1919
|
-
(s, a) => this.potentialRepository.createPotentialFromCode(s, a)
|
|
1920
|
-
);
|
|
1921
|
-
}
|
|
1922
|
-
}
|
|
1923
|
-
function E0(t, o, s) {
|
|
1924
|
-
const a = new w();
|
|
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[s])) {
|
|
1927
|
-
const c = i[u];
|
|
1928
|
-
typeof h == "number" && a.option.set(c, h);
|
|
1929
|
-
}
|
|
1930
|
-
const f = a.option.get(i.incDAMr) ?? 0;
|
|
1931
|
-
return f > 0 && (a.option.get(i.boss) ?? 0) > 0 && (a.option.delete(i.incDAMr), a.option.delete(i.boss), a.option.set(i.incBDR, f), a.summary = a.summary.replace("#incDAMr", "#incBDR")), a;
|
|
1932
|
-
}
|
|
1933
|
-
class y0 {
|
|
1934
|
-
/**
|
|
1935
|
-
* @param itemOptions KMS 잠재옵션 정보
|
|
1936
|
-
*/
|
|
1937
|
-
constructor(o) {
|
|
1938
|
-
this.itemOptions = o;
|
|
1939
|
-
}
|
|
1940
|
-
/**
|
|
1941
|
-
* 잠재옵션 코드로부터 잠재옵션을 생성합니다.
|
|
1942
|
-
* 잠재옵션에 `incDAMr` 속성과 `boss` 속성이 존재할 경우 `incBDR` 속성으로 대체됩니다.
|
|
1943
|
-
* @param code 잠재옵션 코드.
|
|
1944
|
-
* @param potentialLevel 장비의 착용 가능 레벨로 계산되는 잠재옵션 레벨. `1`부터 `25`까지의 값입니다.
|
|
1945
|
-
* @returns 코드에 해당하는 잠재옵션. 존재하지 않을 경우 `undefined`를 반환합니다.
|
|
1946
|
-
*/
|
|
1947
|
-
createPotentialFromCode(o, s) {
|
|
1948
|
-
if (o in this.itemOptions)
|
|
1949
|
-
return E0(
|
|
1950
|
-
this.itemOptions[o],
|
|
1951
|
-
o,
|
|
1952
|
-
s
|
|
1953
|
-
);
|
|
1954
|
-
}
|
|
1955
|
-
}
|
|
1956
|
-
function x0(t, o = "PAD") {
|
|
1957
|
-
const s = t.magnificent ? t.options[o] : t.option, a = /* @__PURE__ */ new Map();
|
|
1958
|
-
for (const [f, u] of Object.entries(s)) {
|
|
1959
|
-
const h = i[f];
|
|
1960
|
-
a.set(h, u);
|
|
1961
|
-
}
|
|
1962
|
-
return {
|
|
1963
|
-
name: t.name,
|
|
1964
|
-
skill: t.skill,
|
|
1965
|
-
multiplier: t.multiplier,
|
|
1966
|
-
option: a
|
|
1967
|
-
};
|
|
1968
|
-
}
|
|
1969
|
-
class T0 {
|
|
1970
|
-
/**
|
|
1971
|
-
* @param souls KMS 소울 정보
|
|
1972
|
-
*/
|
|
1973
|
-
constructor(o) {
|
|
1974
|
-
this.souls = o;
|
|
1975
|
-
}
|
|
1976
|
-
/**
|
|
1977
|
-
* 소울 ID 목록을 반환합니다.
|
|
1978
|
-
* @returns 소울 ID 목록
|
|
1979
|
-
*/
|
|
1980
|
-
ids() {
|
|
1981
|
-
return Object.keys(this.souls).map((o) => Number(o));
|
|
1982
|
-
}
|
|
1983
|
-
/**
|
|
1984
|
-
* 소울 ID로부터 소울를 생성합니다.
|
|
1985
|
-
* @param id 소울 ID.
|
|
1986
|
-
* @param type 위대한 소울 옵션 종류. 기본값은 `PAD`입니다.
|
|
1987
|
-
* 위대한 소울이 아닐 경우 무시합니다.
|
|
1988
|
-
* @returns 정보에 해당하는 소울. 존재하지 않을 경우 `undefined`를 반환합니다.
|
|
1989
|
-
*/
|
|
1990
|
-
createSoulFromId(o, s = "PAD") {
|
|
1991
|
-
if (o in this.souls)
|
|
1992
|
-
return x0(this.souls[o], s);
|
|
1993
|
-
}
|
|
1994
|
-
}
|
|
1995
|
-
function G0(t, o, s) {
|
|
1996
|
-
return X0(t, o, s?.ignorePropTypes), L0(t, o), N0(t, o), I0(t, o), H0(t, o), q0(t, o), O0(t, o, s?.getPotentialFunc), K0(t, o), o;
|
|
1997
|
-
}
|
|
1998
|
-
function X0(t, o, s) {
|
|
1999
|
-
for (const [a, f] of t.props)
|
|
2000
|
-
s && s.includes(a) || o.props.set(a, f);
|
|
2001
|
-
o.karma = t.karma;
|
|
2002
|
-
}
|
|
2003
|
-
function L0(t, o) {
|
|
2004
|
-
t.anvil !== void 0 && (o.anvil = t.anvil);
|
|
2005
|
-
}
|
|
2006
|
-
function N0(t, o) {
|
|
2007
|
-
Z(o);
|
|
2008
|
-
for (const [s, a] of t.options)
|
|
2009
|
-
o.option(s).bonus = a.bonus;
|
|
2010
|
-
}
|
|
2011
|
-
function I0(t, o) {
|
|
2012
|
-
if (t.upgradeCount !== void 0 && t.upgradeFailCount !== void 0 && t.hammerCount !== void 0) {
|
|
2013
|
-
C0(o), o.upgradeCount = t.upgradeCount, o.upgradeFailCount = t.upgradeFailCount, o.hammerCount = t.hammerCount;
|
|
2014
|
-
for (const [s, a] of t.options)
|
|
2015
|
-
o.option(s).upgrade = a.upgrade;
|
|
2016
|
-
}
|
|
2017
|
-
}
|
|
2018
|
-
function H0(t, o) {
|
|
2019
|
-
if (t.star !== void 0 && t.star !== 0)
|
|
2020
|
-
if (l(o), t.amazing) {
|
|
2021
|
-
o.star = t.star, o.maxStar = t.maxStar, o.amazing = t.amazing;
|
|
2022
|
-
for (const [s, a] of t.options)
|
|
2023
|
-
o.option(s).enchant = a.enchant;
|
|
2024
|
-
} else
|
|
2025
|
-
for (let s = 0; s < t.star; s++)
|
|
2026
|
-
$(o, !0);
|
|
2027
|
-
}
|
|
2028
|
-
function q0(t, o) {
|
|
2029
|
-
t.exceptionalUpgradeCount !== void 0 && (f0(o), o.exceptionalUpgradeCount = t.exceptionalUpgradeCount, o.exceptionalOptions = new Map(t.exceptionalOptions));
|
|
2030
|
-
}
|
|
2031
|
-
function O0(t, o, s) {
|
|
2032
|
-
const a = w.getPotentialLevel(o.req.level);
|
|
2033
|
-
function f(u) {
|
|
2034
|
-
if (u === null)
|
|
2035
|
-
return null;
|
|
2036
|
-
if (s)
|
|
2037
|
-
return s(u.code, a) ?? null;
|
|
2038
|
-
{
|
|
2039
|
-
const h = new w();
|
|
2040
|
-
return h.code = u.code, h.option = new Map(u.option), h.optionType = u.optionType, h.reqLevel = u.reqLevel, h.summary = u.summary, h;
|
|
2041
|
-
}
|
|
2042
|
-
}
|
|
2043
|
-
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
|
-
function K0(t, o) {
|
|
2046
|
-
o.soulWeapon.enchanted = t.soulWeapon.enchanted, t.soulWeapon.soul && (o.soulWeapon.soul = { ...t.soulWeapon.soul }), o.soulWeapon.setCharge(t.soulWeapon.charge);
|
|
2047
|
-
}
|
|
2048
|
-
function k0(t) {
|
|
2049
|
-
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, W0), 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
|
-
t.additionalPotentials,
|
|
2052
|
-
void 0,
|
|
2053
|
-
j
|
|
2054
|
-
));
|
|
2055
|
-
const s = j0(t.soulWeapon);
|
|
2056
|
-
return s && (o.w = s), o;
|
|
2057
|
-
}
|
|
2058
|
-
function W0(t) {
|
|
2059
|
-
return [t.base, t.bonus, t.upgrade, t.enchant];
|
|
2060
|
-
}
|
|
2061
|
-
function j(t) {
|
|
2062
|
-
return t ? {
|
|
2063
|
-
c: t.code,
|
|
2064
|
-
t: t.optionType,
|
|
2065
|
-
l: t.reqLevel,
|
|
2066
|
-
s: t.summary,
|
|
2067
|
-
o: R(t.option, (o) => o !== 0)
|
|
2068
|
-
} : null;
|
|
2069
|
-
}
|
|
2070
|
-
function j0(t) {
|
|
2071
|
-
const o = {};
|
|
2072
|
-
if (t.enchanted && (o.e = t.enchanted), t.soul && (o.s = F0(t.soul)), t.charge > 0 && (o.c = t.charge), t.chargeOption.size > 0 && (o.o = R(t.chargeOption, (s) => s !== 0)), Object.keys(o).length > 0)
|
|
2073
|
-
return o;
|
|
2074
|
-
}
|
|
2075
|
-
function F0(t) {
|
|
2076
|
-
return t ? {
|
|
2077
|
-
n: t.name,
|
|
2078
|
-
s: t.skill,
|
|
2079
|
-
o: R(t.option, (o) => o !== 0),
|
|
2080
|
-
m: t.multiplier
|
|
2081
|
-
} : void 0;
|
|
2082
|
-
}
|
|
2083
|
-
const V0 = (t) => {
|
|
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 && s(c.an)) && (c.t === 100 || c.t === 101 || c.t === 102 || c.t === 103 || c.t === 104 || c.t === 105 || c.t === 106 || c.t === 107 || c.t === 108 || c.t === 110 || c.t === 111 || c.t === 112 || c.t === 113 || c.t === 114 || c.t === 115 || c.t === 116 || c.t === 118 || c.t === 166 || c.t === 167 || c.t === 109 || c.t === 119 || c.t === 119020 || c.t === 1212 || c.t === 1213 || c.t === 1214 || c.t === 122 || c.t === 123 || c.t === 124 || c.t === 126 || c.t === 127 || c.t === 128 || c.t === 129 || c.t === 130 || c.t === 131 || c.t === 132 || c.t === 133 || c.t === 134 || c.t === 136 || c.t === 137 || c.t === 138 || c.t === 140 || c.t === 1404 || c.t === 141 || c.t === 142 || c.t === 143 || c.t === 144 || c.t === 145 || c.t === 146 || c.t === 147 || c.t === 148 || c.t === 149 || c.t === 150 || c.t === 151 || c.t === 152 || c.t === 153 || c.t === 156 || c.t === 157 || c.t === 158 || c.t === 159 || c.t === 1098 || c.t === 1099 || c.t === 135200 || c.t === 135210 || c.t === 135220 || c.t === 135221 || c.t === 135222 || c.t === 135223 || c.t === 135224 || c.t === 135225 || c.t === 135226 || c.t === 135227 || c.t === 135228 || c.t === 135229 || c.t === 135240 || c.t === 135250 || c.t === 135260 || c.t === 135270 || c.t === 135290 || c.t === 135291 || c.t === 135292 || c.t === 135293 || c.t === 135294 || c.t === 135295 || c.t === 135296 || c.t === 135297 || c.t === 135298 || c.t === 135300 || c.t === 135310 || c.t === 135320 || c.t === 135330 || c.t === 135340 || c.t === 135350 || c.t === 135360 || c.t === 135370 || c.t === 135380 || c.t === 135400 || c.t === 135401 || c.t === 135402 || c.t === 135403 || c.t === 180 || c.t === 161 || c.t === 162 || c.t === 163 || c.t === 164 || c.t === 165 || c.t === 194 || c.t === 195 || c.t === 196 || c.t === 197) && typeof c.r == "object" && c.r !== null && a(c.r) && Array.isArray(c.pr) && c.pr.every(
|
|
2085
|
-
(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
|
-
) && Array.isArray(c.o) && c.o.every(
|
|
2087
|
-
(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"
|
|
2088
|
-
) && (c.c === void 0 || typeof c.c == "number") && (c.up === void 0 || typeof c.up == "number") && (c.f === void 0 || typeof c.f == "number") && (c.h === void 0 || typeof c.h == "number") && (c.ec === void 0 || typeof c.ec == "number") && (c.eu === void 0 || typeof c.eu == "number") && (c.eo === void 0 || Array.isArray(c.eo) && c.eo.every(
|
|
2089
|
-
(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"
|
|
2090
|
-
)) && (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(
|
|
2091
|
-
(n) => n === null || typeof n == "object" && n !== null && f(n)
|
|
2092
|
-
)) && (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
|
-
(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)), s = (c) => typeof c.name == "string" && typeof c.icon == "object" && c.icon !== null && typeof c.icon.id == "number", a = (c) => typeof c.level == "number" && typeof c.str == "number" && typeof c.luk == "number" && typeof c.dex == "number" && typeof c.int == "number" && typeof c.job == "number" && typeof c.specJob == "number", 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
|
-
(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
|
-
), 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
|
-
(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"
|
|
2098
|
-
)), h = (c) => typeof c.n == "string" && typeof c.s == "string" && Array.isArray(c.o) && c.o.every(
|
|
2099
|
-
(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
|
-
) && typeof c.m == "number";
|
|
2101
|
-
return typeof t == "object" && t !== null && o(t);
|
|
2102
|
-
};
|
|
2103
|
-
function e0(t) {
|
|
2104
|
-
return JSON.stringify(k0(t));
|
|
2105
|
-
}
|
|
2106
|
-
function t1(t) {
|
|
2107
|
-
return J(JSON.parse(t));
|
|
2108
|
-
}
|
|
2109
|
-
function n1(t) {
|
|
2110
|
-
try {
|
|
2111
|
-
const o = JSON.parse(t);
|
|
2112
|
-
if (V0(o))
|
|
2113
|
-
return J(o);
|
|
2114
|
-
} catch {
|
|
2115
|
-
}
|
|
2116
|
-
return null;
|
|
2117
|
-
}
|
|
2118
|
-
function R(t, o, s) {
|
|
2119
|
-
let a = [...t];
|
|
2120
|
-
return o && (a = a.filter((f) => o(f[1]))), s ? a.map((f) => [f[0], s(f[1])]) : a;
|
|
2121
|
-
}
|
|
2122
|
-
function F(t, o, s) {
|
|
2123
|
-
let a = t;
|
|
2124
|
-
return o && (a = a.filter(o)), s ? a.map(s) : a === t ? [...t] : a;
|
|
2125
|
-
}
|
|
2126
|
-
function C(t, o) {
|
|
2127
|
-
return o ? new Map(t.map((s) => [s[0], o(s[1])])) : new Map(t);
|
|
2128
|
-
}
|
|
2129
|
-
function V(t, o) {
|
|
2130
|
-
return o ? [...t].map(o) : [...t];
|
|
2131
|
-
}
|
|
2132
|
-
function J(t) {
|
|
2133
|
-
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, z0), 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
|
-
function z0(t) {
|
|
2137
|
-
const o = new _();
|
|
2138
|
-
return o.base = t[0], o.bonus = t[1], o.upgrade = t[2], o.enchant = t[3], o;
|
|
2139
|
-
}
|
|
2140
|
-
function z(t) {
|
|
2141
|
-
if (!t)
|
|
2142
|
-
return null;
|
|
2143
|
-
const o = new w();
|
|
2144
|
-
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
|
-
function _0(t, o) {
|
|
2147
|
-
if (t) {
|
|
2148
|
-
const s = o.soulWeapon;
|
|
2149
|
-
t?.e && (s.enchanted = t.e), t?.s && (s.soul = $0(t.s)), t?.c && (s.charge = t.c), t?.o && (s.chargeOption = C(t.o));
|
|
2150
|
-
}
|
|
2151
|
-
}
|
|
2152
|
-
function $0(t) {
|
|
2153
|
-
if (t)
|
|
2154
|
-
return {
|
|
2155
|
-
name: t.n,
|
|
2156
|
-
skill: t.s,
|
|
2157
|
-
option: C(t.o),
|
|
2158
|
-
multiplier: t.m
|
|
2159
|
-
};
|
|
2160
|
-
}
|
|
2161
|
-
export {
|
|
2162
|
-
d as BonusStatType,
|
|
2163
|
-
D as Gear,
|
|
2164
|
-
_ as GearOption,
|
|
2165
|
-
i as GearPropType,
|
|
2166
|
-
m0 as GearRepository,
|
|
2167
|
-
r as GearType,
|
|
2168
|
-
w as Potential,
|
|
2169
|
-
S as PotentialGrade,
|
|
2170
|
-
y0 as PotentialRepository,
|
|
2171
|
-
T0 as SoulRepository,
|
|
2172
|
-
Q as SoulWeapon,
|
|
2173
|
-
J0 as addAmazingEnhancement,
|
|
2174
|
-
l0 as addBonusStat,
|
|
2175
|
-
$ as addStarforce,
|
|
2176
|
-
P0 as addUpgradeFailCount,
|
|
2177
|
-
Q0 as applyExceptionalEnchant,
|
|
2178
|
-
Z0 as applyGoldHammer,
|
|
2179
|
-
R0 as applyScroll,
|
|
2180
|
-
Y0 as applySpellTrace,
|
|
2181
|
-
w0 as createGearFromNode,
|
|
2182
|
-
E0 as createPotentialFromNode,
|
|
2183
|
-
x0 as createSoulFromNode,
|
|
2184
|
-
k0 as gearToPlain,
|
|
2185
|
-
Y as getBonusStatOption,
|
|
2186
|
-
P as getBonusStatValue,
|
|
2187
|
-
u0 as getSpellTraceScroll,
|
|
2188
|
-
V0 as isGearLike,
|
|
2189
|
-
G0 as migrate,
|
|
2190
|
-
t1 as parseGear,
|
|
2191
|
-
J as plainToGear,
|
|
2192
|
-
B0 as recalculateStarforce,
|
|
2193
|
-
Z as resetBonusStat,
|
|
2194
|
-
l as resetEnhancement,
|
|
2195
|
-
f0 as resetExceptionalEnchant,
|
|
2196
|
-
C0 as resetUpgrade,
|
|
2197
|
-
p0 as restoreUpgradeCount,
|
|
2198
|
-
e0 as stringifyGear,
|
|
2199
|
-
n1 as validateParseGear
|
|
2200
|
-
};
|