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