var t = require; var e = module; var i = exports; Object.defineProperty(i, "__esModule", {value: !0}), (i.getGradeLv = i.getGradeIndexByGrade = i.getGradeBgByGrade = i.getRarityUrlByGrade = i.CostumeAbilityType = i.RarityType = i.CostumeParts = i.CostumeConst = void 0); const s = t("ConfigManager"); var o; function a(t) { let e = -1; return t >= o.mystic ? (e = 3) : t >= o.legendary ? (e = 2) : t >= o.epic ? (e = 1) : t >= o.common && (e = 0), e; } i.CostumeConst || (i.CostumeConst = {}), ((t = i.CostumeParts || (i.CostumeParts = {}))[(t.head = 1)] = "head"), (t[(t.body = 2)] = "body"), (t[(t.hand = 3)] = "hand"), ((t = o = i.RarityType || (i.RarityType = {}))[(t.none = 0)] = "none"), (t[(t.common = 1)] = "common"), (t[(t.uncommon = 2)] = "uncommon"), (t[(t.rare = 3)] = "rare"), (t[(t.epic = 4)] = "epic"), (t[(t.epic1 = 5)] = "epic1"), (t[(t.epic2 = 6)] = "epic2"), (t[(t.legendary = 7)] = "legendary"), (t[(t.legendary1 = 8)] = "legendary1"), (t[(t.legendary2 = 9)] = "legendary2"), (t[(t.legendary3 = 10)] = "legendary3"), (t[(t.mystic = 11)] = "mystic"), s.registerJSONConf("CostumeInfo", "files/CostumeInfo"), s.registerJSONConf("CostumeMerge", "files/CostumeMerge"), s.registerJSONConf("CostumeUpgrade", "files/CostumeUpgrade"), ((t = i.CostumeAbilityType || (i.CostumeAbilityType = {}))[(t.base = 100)] = "base"), (t[(t.doublebase = 101)] = "doublebase"), (t[(t.all_employees_production_speed = 201)] = "all_employees_production_speed"), (t[(t.all_employees_move_speed = 202)] = "all_employees_move_speed"), (t[(t.all_employees_perfect_dish_rate = 203)] = "all_employees_perfect_dish_rate"), (t[(t.extremely_generous_tip_rate = 204)] = "extremely_generous_tip_rate"), (t[(t.additional_cashier_charge = 205)] = "additional_cashier_charge"), (t[(t.menu_item_upgrade_discount = 206)] = "menu_item_upgrade_discount"), (t[(t.waiter_production_speed = 301)] = "waiter_production_speed"), (t[(t.chef_production_speed = 302)] = "chef_production_speed"), (t[(t.waiter_move_speed = 303)] = "waiter_move_speed"), (t[(t.chef_move_speed = 304)] = "chef_move_speed"), (t[(t.instaCompleted_dish_rate = 305)] = "instaCompleted_dish_rate"), (t[(t.upgrade_discount = 306)] = "upgrade_discount"), (t[(t.production_speed = 401)] = "production_speed"), (t[(t.move_speed = 402)] = "move_speed"), (t[(t.perfect_dish_rate = 403)] = "perfect_dish_rate"), (t[(t.self_base_rate = 404)] = "self_base_rate"), (i.getRarityUrlByGrade = function (t) { var e = "Texture/quality/pz_"; return t < o.common ? e + 0 : t < o.uncommon ? e + 1 : t < o.rare ? e + 2 : t < o.epic ? e + 3 : t < o.legendary ? e + 4 : t < o.mystic ? e + 5 : t >= o.mystic ? e + 6 : e; }), (i.getGradeBgByGrade = function (t) { return "Texture/quality/dk_" + a(t); }), (i.getGradeIndexByGrade = a), (i.getGradeLv = function (t) { let e = 0; switch (t) { case o.epic1: case o.legendary1: e = 1; break; case o.epic2: case o.legendary2: e = 2; break; case o.legendary3: e = 3; } return e; });