◆42Lab是非盈利性、非官方的云图计划维基百科。
◆诚邀指挥官们加入编辑部共同建设wiki。点这里加入42Lab
如果您发现某些内容错误/空缺,请勇于修正/添加!参与进来其实很容易!
◆有任何意见、建议、纠错,欢迎在任意评论区评论
◆编辑讨论QQ群741423564 微博@GFwiki少前百科 欢迎您

模块:Elmeir

来自42LAB

可在模块:Elmeir/doc创建此模块的帮助文档

local p ={}
local talent_data={
  ["3011"] = {
    name = "生命强化-守卫",
    coin = "守卫采样参数",
    cost = { 30, 60, 150, 300, 600 },
    targets = { "守卫最大生命" },
    values = { { "+120", "+300", "+540", "+840", "+1200" } }
  },
  ["3012"] = {
    name = "攻击强化-射手",
    coin = "射手采样参数",
    cost = { 30, 60, 150, 300, 600 },
    targets = { "射手攻击力" },
    values = { { "+4", "+10", "+17", "+27", "+38" } }
  },
  ["3013"] = {
    name = "算力扩充-特种",
    coin = "特种采样参数",
    cost = { 30, 60, 150, 300, 600 },
    targets = { "特种算力" },
    values = { { "+4", "+10", "+17", "+27", "+38" } }
  },
  ["3021"] = {
    name = "暴击增幅-射手",
    coin = "射手采样参数",
    cost = { 100, 200, 400, 800, 1000 },
    targets = { "射手暴击率" },
    values = { { "+0.3%", "+0.8%", "+1.4%", "+2.1%", "+3.0%" } },
    pre_condition = "电子对抗总等级9级"
  },
  ["3022"] = {
    name = "技能提速-特种",
    coin = "特种采样参数",
    cost = { 100, 200, 400, 800, 1000 },
    targets = { "特种技能急速" },
    values = { { "+0.5%", "+1.3%", "+2.3%", "+3.5%", "+5.0%" } },
    pre_condition = "电子对抗总等级9级"
  },
  ["3031"] = {
    name = "算力扩充-射手",
    coin = "射手采样参数",
    cost = { 120, 240, 480, 720, 840 },
    targets = { "射手算力" },
    values = { { "+4", "+10", "+17", "+27", "+38" } },
    pre_condition = "暴击增幅-射手3级"
  },
  ["3032"] = {
    name = "攻击强化-战士",
    coin = "战士采样参数",
    cost = { 120, 240, 480, 720, 840 },
    targets = { "战士攻击力" },
    values = { { "+4", "+10", "+17", "+27", "+38" } },
    pre_condition = "暴击增幅-射手3级"
  },
  ["3033"] = {
    name = "算力扩充-医师",
    coin = "医师采样参数",
    cost = { 120, 240, 480, 720, 840 },
    targets = { "医师算力" },
    values = { { "+4", "+10", "+17", "+27", "+38" } },
    pre_condition = "技能提速-特种3级"
  },
  ["3036"] = {
    name = "方程式拓展反馈",
    reward = {
      ["石英砂"] = 100,
      ["底格币"] = 5000
    },
    pre_condition = "技能提速-特种3级"
  },
  ["3041"] = {
    name = "抗性升阈-战士",
    coin = "战士采样参数",
    cost = { 170, 330, 650, 970, 1140 },
    targets = { "战士效果抵抗" },
    values = { { "+5", "+13", "+23", "+35", "+50" } },
    pre_condition = "电子对抗总等级24级"
  },
  ["3042"] = {
    name = "技能提速-医师",
    coin = "医师采样参数",
    cost = { 210, 420, 830, 1240, 1450 },
    targets = { "医师技能急速" },
    values = { { "+0.5%", "+1.3%", "+2.3%", "+3.5%", "+5.0%" } },
    pre_condition = "电子对抗总等级24级"
  },
  ["3051"] = {
    name = "防御强化-守卫",
    coin = "守卫采样参数",
    cost = { 140, 270, 540, 810, 940 },
    targets = { "守卫物理防御" },
    values = { { "+3", "+8", "+14", "+22", "+31" } },
    pre_condition = "抗性升阈-战士3级"
  },
  ["3052"] = {
    name = "穿甲强化-射手",
    coin = "射手采样参数",
    cost = { 220, 430, 860, 1290, 1500 },
    targets = { "射手物理穿透" },
    values = { { "+2", "+5", "+9", "+15", "+21" } },
    pre_condition = "抗性升阈-战士3级"
  },
  ["3053"] = {
    name = "攻击强化-特种",
    coin = "特种采样参数",
    cost = { 220, 430, 850, 1280, 1490 },
    targets = { "特种攻击力" },
    values = { { "+4", "+10", "+17", "+27", "+38" } },
    pre_condition = "技能提速-医师3级"
  },
  ["3056"] = {
    name = "方程式拓展反馈",
    reward = {
      ["石英砂"] = 100,
      ["底格币"] = 5000
    },
    pre_condition = "抗性升阈-战士3级"
  },
  ["3057"] = {
    name = "方程式拓展反馈",
    reward = {
      ["石英砂"] = 100,
      ["底格币"] = 5000
    },
    pre_condition = "技能提速-医师3级"
  },
  ["3061"] = {
    name = "抗性升阈-守卫",
    coin = "守卫采样参数",
    cost = { 270, 530, 1060, 1590, 1850 },
    targets = { "守卫效果抵抗" },
    values = { { "+5", "+13", "+23", "+35", "+50" } },
    pre_condition = "电子对抗总等级39级"
  },
  ["3062"] = {
    name = "技能提速-特种",
    coin = "特种采样参数",
    cost = { 430, 840, 1680, 2510, 2940 },
    targets = { "特种技能急速" },
    values = { { "+0.5%", "+1.3%", "+2.3%", "+3.5%", "+5.0%" } },
    pre_condition = "电子对抗总等级39级"
  },
  ["3071"] = {
    name = "算力扩充-战士",
    coin = "战士采样参数",
    cost = { 250, 500, 980, 1470, 1710 },
    targets = { "战士算力" },
    values = { { "+4", "+10", "+17", "+27", "+38" } },
    pre_condition = "技能提速-特种3级"
  },
  ["3072"] = {
    name = "生命强化-特种",
    coin = "特种采样参数",
    cost = { 380, 750, 1490, 2240, 2600 },
    targets = { "特种最大生命" },
    values = { { "+120", "+300", "+540", "+840", "+1200" } },
    pre_condition = "技能提速-特种3级"
  },
  ["3073"] = {
    name = "防御强化-医师",
    coin = "医师采样参数",
    cost = { 320, 630, 1250, 1880, 2180 },
    targets = { "医师物理防御" },
    values = { { "+3", "+8", "+14", "+22", "+31" } },
    pre_condition = "技能提速-特种3级"
  },
  ["3076"] = {
    name = "方程式拓展反馈",
    reward = {
      ["石英砂"] = 150,
      ["底格币"] = 10000
    },
    pre_condition = "抗性升阈-守卫3级"
  },
  ["3081"] = {
    name = "暴击强化-射手",
    coin = "射手采样参数",
    cost = { 750, 1510, 3010, 4520, 5270 },
    targets = { "射手暴击伤害" },
    values = { { "+0.6%", "+1.5%", "+2.7%", "+4.2%", "+6.0%" } },
    pre_condition = "电子对抗总等级54级"
  },
  ["3082"] = {
    name = "疗效强化-医师",
    coin = "医师采样参数",
    cost = { 630, 1260, 2510, 3760, 4390 },
    targets = { "医师治疗效果" },
    values = { { "+0.3%", "+0.8%", "+1.4%", "+2.1%", "+3.0%" } },
    pre_condition = "电子对抗总等级54级"
  },
  ["3091"] = {
    name = "算防强化-守卫",
    coin = "守卫采样参数",
    cost = { 390, 770, 1540, 2300, 2680 },
    targets = { "守卫算量防御" },
    values = { { "+3", "+8", "+14", "+22", "+31" } },
    pre_condition = "暴击强化-射手3级"
  },
  ["3092"] = {
    name = "生命强化-战士",
    coin = "战士采样参数",
    cost = { 400, 800, 1600, 2400, 2790 },
    targets = { "战士最大生命" },
    values = { { "+120", "+300", "+540", "+840", "+1200" } },
    pre_condition = "暴击强化-射手3级"
  },
  ["3093"] = {
    name = "算防强化-医师",
    coin = "医师采样参数",
    cost = { 510, 1020, 2040, 3060, 3560 },
    targets = { "医师算量防御" },
    values = { { "+3", "+8", "+14", "+22", "+31" } },
    pre_condition = "疗效强化-医师3级"
  },
  ["3096"] = {
    name = "方程式拓展反馈",
    reward = {
      ["石英砂"] = 150,
      ["底格币"] = 10000
    },
    pre_condition = "疗效强化-医师3级"
  },
  ["3101"] = {
    name = "暴击增幅-战士",
    coin = "战士采样参数",
    cost = { 740, 1470, 2930, 4400, 5130 },
    targets = { "战士暴击率" },
    values = { { "+0.3%", "+0.8%", "+1.4%", "+2.1%", "+3.0%" } },
    pre_condition = "电子对抗总等级69级"
  },
  ["3102"] = {
    name = "技能提速-特种",
    coin = "特种采样参数",
    cost = { 1130, 2230, 4460, 6690, 7810 },
    targets = { "特种技能急速" },
    values = { { "+0.5%", "+1.3%", "+2.3%", "+3.5%", "+5.0%" } },
    pre_condition = "电子对抗总等级69级"
  },
  ["3111"] = {
    name = "生命增幅-守卫",
    coin = "守卫采样参数",
    cost = { 750, 1130, 1500, 1500, 1880, 2250, 2250, 3000, 3000, 3750 },
    targets = { "守卫最大生命值" },
    values = { { "+1.4%", "+2.8%", "+4.2%", "+5.6%", "+7.0%", "+8.4%", "+9.8%", "+11.2%", "+12.6%", "+14.0%" } },
    pre_condition = "暴击增幅-战士5级"
  },
  ["3112"] = {
    name = "攻击增幅-射手",
    coin = "射手采样参数",
    cost = { 660, 980, 1310, 1310, 1640, 1970, 1970, 2620, 2620, 3280 },
    targets = { "射手攻击力" },
    values = { { "+1.5%", "+3.0%", "+4.5%", "+6.0%", "+7.5%", "+9.0%", "+10.5%", "+12.0%", "+13.5%", "+15.0%" } },
    pre_condition = "暴击增幅-战士5级"
  },
  ["3113"] = {
    name = "算力增幅-特种",
    coin = "特种采样参数",
    cost = { 660, 970, 1300, 1300, 1630, 1960, 1960, 2600, 2600, 3250 },
    targets = { "特种算力" },
    values = { { "+1.5%", "+3.0%", "+4.5%", "+6.0%", "+7.5%", "+9.0%", "+10.5%", "+12.0%", "+13.5%", "+15.0%" } },
    pre_condition = "技能提速-特种5级"
  },
  ["3116"] = {
    name = "方程式拓展反馈",
    reward = {
      ["石英砂"] = 150,
      ["底格币"] = 10000
    },
    pre_condition = "暴击增幅-战士5级"
  },
  ["3117"] = {
    name = "方程式拓展反馈",
    reward = {
      ["石英砂"] = 150,
      ["底格币"] = 10000
    },
    pre_condition = "技能提速-特种5级"
  },
  ["3121"] = {
    name = "技能提速-守卫",
    coin = "守卫采样参数",
    cost = { 610, 920, 1220, 1220, 1520, 1820, 1820, 2430, 2430, 3040 },
    targets = { "守卫技能急速" },
    values = { { "+1.0%", "+2.0%", "+3.0%", "+4.0%", "+5.0%", "+6.0%", "+7.0%", "+8.0%", "+9.0%", "+10.0%" } },
    pre_condition = "电子对抗总等级90级"
  },
  ["3122"] = {
    name = "暴击增幅-射手",
    coin = "射手采样参数",
    cost = { 1200, 1800, 2400, 2400, 3000, 3590, 3590, 4800, 4800, 5990 },
    targets = { "射手暴击率" },
    values = { { "+0.6%", "+1.2%", "+1.8%", "+2.4%", "+3.0%", "+3.6%", "+4.2%", "+4.8%", "+5.4%", "+6.0%" } },
    pre_condition = "电子对抗总等级90级"
  },
  ["3131"] = {
    name = "算力增幅-射手",
    coin = "射手采样参数",
    cost = { 970, 1460, 1940, 1940, 2430, 2910, 2910, 3880, 3880, 4850 },
    targets = { "射手算力" },
    values = { { "+1.5%", "+3.0%", "+4.5%", "+6.0%", "+7.5%", "+9.0%", "+10.5%", "+12.0%", "+13.5%", "+15.0%" } },
    pre_condition = "暴击增幅-射手5级"
  },
  ["3132"] = {
    name = "算力增幅-战士",
    coin = "战士采样参数",
    cost = { 630, 960, 1270, 1270, 1590, 1900, 1900, 2540, 2540, 3170 },
    targets = { "战士算力" },
    values = { { "+1.5%", "+3.0%", "+4.5%", "+6.0%", "+7.5%", "+9.0%", "+10.5%", "+12.0%", "+13.5%", "+15.0%" } },
    pre_condition = "暴击增幅-射手5级"
  },
  ["3133"] = {
    name = "算力增幅-医师",
    coin = "医师采样参数",
    cost = { 810, 1220, 1620, 1620, 2020, 2420, 2420, 3240, 3240, 4040 },
    targets = { "医师算力" },
    values = { { "+1.5%", "+3.0%", "+4.5%", "+6.0%", "+7.5%", "+9.0%", "+10.5%", "+12.0%", "+13.5%", "+15.0%" } },
    pre_condition = "暴击增幅-射手5级"
  },
  ["3136"] = {
    name = "方程式拓展反馈",
    reward = {
      ["石英砂"] = 150,
      ["底格币"] = 10000
    },
    pre_condition = "暴击增幅-射手5级"
  },
  ["3141"] = {
    name = "抗性升阈-战士",
    coin = "战士采样参数",
    cost = { 1150, 1720, 2290, 2290, 2860, 3430, 3430, 4570, 4570, 5710 },
    targets = { "战士效果抵抗" },
    values = { { "+10", "+20", "+30", "+40", "+50", "+60", "+70", "+80", "+90", "+100" } },
    pre_condition = "电子对抗总等级115级"
  },
  ["3142"] = {
    name = "技能提速-医师",
    coin = "医师采样参数",
    cost = { 1460, 2190, 2920, 2920, 3650, 4380, 4380, 5830, 5830, 7290 },
    targets = { "医师技能急速" },
    values = { { "+1.0%", "+2.0%", "+3.0%", "+4.0%", "+5.0%", "+6.0%", "+7.0%", "+8.0%", "+9.0%", "+10.0%" } },
    pre_condition = "电子对抗总等级115级"
  },
  ["3151"] = {
    name = "防御增幅-守卫",
    coin = "守卫采样参数",
    cost = { 880, 1310, 1750, 1750, 2190, 2620, 2620, 3500, 3500, 4380 },
    targets = { "守卫物理防御" },
    values = { { "+1.4%", "+2.8%", "+4.2%", "+5.6%", "+7.0%", "+8.4%", "+9.8%", "+11.2%", "+12.6%", "+14.0%" } },
    pre_condition = "抗性升阈-战士5级"
  },
  ["3152"] = {
    name = "攻击增幅-特种",
    coin = "特种采样参数",
    cost = { 1390, 2080, 2770, 2770, 3470, 4160, 4160, 5560, 5560, 6940 },
    targets = { "特种攻击力" },
    values = { { "+1.5%", "+3.0%", "+4.5%", "+6.0%", "+7.5%", "+9.0%", "+10.5%", "+12.0%", "+13.5%", "+15.0%" } },
    pre_condition = "技能提速-医师5级"
  },
  ["3153"] = {
    name = "防御增幅-医师",
    coin = "医师采样参数",
    cost = { 1170, 1750, 2330, 2330, 2910, 3490, 3490, 4660, 4660, 5820 },
    targets = { "医师物理防御" },
    values = { { "+1.4%", "+2.8%", "+4.2%", "+5.6%", "+7.0%", "+8.4%", "+9.8%", "+11.2%", "+12.6%", "+14.0%" } },
    pre_condition = "技能提速-医师5级"
  },
  ["3156"] = {
    name = "方程式拓展反馈",
    reward = {
      ["石英砂"] = 150,
      ["底格币"] = 10000
    },
    pre_condition = "抗性升阈-战士5级"
  },
  ["3161"] = {
    name = "抗性升阈-守卫",
    coin = "守卫采样参数",
    cost = { 1560, 2340, 3110, 3110, 3890, 4680, 4680, 6230, 6230, 7790 },
    targets = { "守卫效果抵抗" },
    values = { { "+10", "+20", "+30", "+40", "+50", "+60", "+70", "+80", "+90", "+100" } },
    pre_condition = "电子对抗总等级140级"
  },
  ["3162"] = {
    name = "疗效强化-医师",
    coin = "医师采样参数",
    cost = { 2070, 3110, 4140, 4140, 5180, 6220, 6220, 8290, 8290, 10360 },
    targets = { "医师治疗效果" },
    values = { { "+0.6%", "+1.2%", "+1.8%", "+2.4%", "+3.0%", "+3.6%", "+4.2%", "+4.8%", "+5.4%", "+6.0%" } },
    pre_condition = "电子对抗总等级140级"
  },
  ["3171"] = {
    name = "穿甲强化-射手",
    coin = "射手采样参数",
    cost = { 1960, 2930, 3910, 3910, 4880, 5870, 5870, 7830, 7830, 9780 },
    targets = { "射手物理穿透" },
    values = { { "+4", "+9", "+13", "+18", "+22", "+26", "+31", "+35", "+40", "+44" } },
    pre_condition = "抗性升阈-守卫5级"
  },
  ["3172"] = {
    name = "攻击增幅-战士",
    coin = "战士采样参数",
    cost = { 1280, 1920, 2550, 2550, 3190, 3840, 3840, 5110, 5110, 6380 },
    targets = { "战士攻击力" },
    values = { { "+1.5%", "+3.0%", "+4.5%", "+6.0%", "+7.5%", "+9.0%", "+10.5%", "+12.0%", "+13.5%", "+15.0%" } },
    pre_condition = "抗性升阈-守卫5级"
  },
  ["3173"] = {
    name = "生命增幅-特种",
    coin = "特种采样参数",
    cost = { 1940, 2910, 3880, 3880, 4850, 5830, 5830, 7770, 7770, 9710 },
    targets = { "特种最大生命值" },
    values = { { "+1.4%", "+2.8%", "+4.2%", "+5.6%", "+7.0%", "+8.4%", "+9.8%", "+11.2%", "+12.6%", "+14.0%" } },
    pre_condition = "疗效强化-医师5级"
  },
  ["3176"] = {
    name = "方程式拓展反馈",
    reward = {
      ["石英砂"] = 200,
      ["底格币"] = 15000
    },
    pre_condition = "抗性升阈-守卫5级"
  },
  ["3177"] = {
    name = "方程式拓展反馈",
    reward = {
      ["石英砂"] = 200,
      ["底格币"] = 15000
    },
    pre_condition = "疗效强化-医师5级"
  },
  ["3181"] = {
    name = "暴击强化-射手",
    coin = "射手采样参数",
    cost = { 3440, 5150, 6870, 6870, 8590, 10300, 10300, 13730, 13730, 17170 },
    targets = { "射手暴击伤害" },
    values = { { "+1.2%", "+2.4%", "+3.6%", "+4.8%", "+6.0%", "+7.2%", "+8.4%", "+9.6%", "+10.8%", "+12.0%" } },
    pre_condition = "电子对抗总等级165级"
  },
  ["3182"] = {
    name = "技能提速-特种",
    coin = "特种采样参数",
    cost = { 3420, 5110, 6830, 6830, 8530, 10220, 10220, 13640, 13640, 17050 },
    targets = { "特种技能急速" },
    values = { { "+1.0%", "+2.0%", "+3.0%", "+4.0%", "+5.0%", "+6.0%", "+7.0%", "+8.0%", "+9.0%", "+10.0%" } },
    pre_condition = "电子对抗总等级165级"
  },
  ["3191"] = {
    name = "算防增幅-守卫",
    coin = "守卫采样参数",
    cost = { 1670, 2500, 3340, 3340, 4170, 5000, 5000, 6670, 6670, 8330 },
    targets = { "守卫算量防御" },
    values = { { "+1.4%", "+2.8%", "+4.2%", "+5.6%", "+7.0%", "+8.4%", "+9.8%", "+11.2%", "+12.6%", "+14.0%" } },
    pre_condition = "暴击强化-射手5级"
  },
  ["3192"] = {
    name = "生命增幅-战士",
    coin = "战士采样参数",
    cost = { 1740, 2610, 3480, 3480, 4350, 5220, 5220, 6950, 6950, 8690 },
    targets = { "战士最大生命值" },
    values = { { "+1.4%", "+2.8%", "+4.2%", "+5.6%", "+7.0%", "+8.4%", "+9.8%", "+11.2%", "+12.6%", "+14.0%" } },
    pre_condition = "技能提速-特种5级"
  },
  ["3193"] = {
    name = "算防增幅-医师",
    coin = "医师采样参数",
    cost = { 2220, 3330, 4440, 4440, 5550, 6660, 6660, 8870, 8870, 11090 },
    targets = { "医师算量防御" },
    values = { { "+1.4%", "+2.8%", "+4.2%", "+5.6%", "+7.0%", "+8.4%", "+9.8%", "+11.2%", "+12.6%", "+14.0%" } },
    pre_condition = "技能提速-特种5级"
  },
  ["3196"] = {
    name = "方程式拓展反馈",
    reward = {
      ["石英砂"] = 200,
      ["底格币"] = 15000
    },
    pre_condition = "暴击强化-射手5级"
  },
  ["3197"] = {
    name = "方程式拓展反馈",
    reward = {
      ["石英砂"] = 200,
      ["底格币"] = 15000
    },
    pre_condition = "技能提速-特种5级"
  },
  ["3201"] = {
    name = "技能提速-守卫",
    coin = "守卫采样参数",
    cost = { 2890, 4340, 5780, 5780, 7220, 8670, 8670, 11560, 11560, 14440 },
    targets = { "守卫技能急速" },
    values = { { "+1.0%", "+2.0%", "+3.0%", "+4.0%", "+5.0%", "+6.0%", "+7.0%", "+8.0%", "+9.0%", "+10.0%" } },
    pre_condition = "电子对抗总等级190级"
  },
  ["3202"] = {
    name = "暴击增幅-战士",
    coin = "战士采样参数",
    cost = { 3020, 4520, 6030, 6030, 7530, 9040, 9040, 12050, 12050, 15060 },
    targets = { "战士暴击率" },
    values = { { "+0.6%", "+1.2%", "+1.8%", "+2.4%", "+3.0%", "+3.6%", "+4.2%", "+4.8%", "+5.4%", "+6.0%" } },
    pre_condition = "电子对抗总等级190级"
  },
  ["3215"] = {
    name = "方程式拓展反馈",
    reward = {
      ["石英砂"] = 200,
      ["底格币"] = 15000
    },
    pre_condition = "技能提速-守卫5级"
  },
  ["3216"] = {
    name = "方程式拓展反馈",
    reward = {
      ["石英砂"] = 200,
      ["底格币"] = 15000
    },
    pre_condition = "技能提速-守卫5级"
  },
  ["3217"] = {
    name = "方程式拓展反馈",
    reward = {
      ["石英砂"] = 200,
      ["底格币"] = 15000
    },
    pre_condition = "暴击增幅-战士5级"
  },
  ["3218"] = {
    name = "方程式拓展反馈",
    reward = {
      ["石英砂"] = 200,
      ["底格币"] = 15000
    },
    pre_condition = "暴击增幅-战士5级"
  },
  ["3219"] = {
    name = "方程式拓展反馈",
    reward = {
      ["石英砂"] = 200,
      ["底格币"] = 15000
    },
    pre_condition = "暴击增幅-战士5级"
  },
  ["3221"] = {
    name = "多模块升级-守卫",
    coin = "守卫采样参数",
    cost = { 230, 350, 460, 460, 580, 690, 690, 920, 920, 1150, 1390, 1620, 1850, 2080, 2310, 2540, 2770, 3000, 3230, 3460, 3690, 3930, 4160, 4390, 4620, 4850, 5080, 5310, 5540, 5770 },
    targets = { "守卫最大生命值", "守卫物理防御", "守卫算量防御" },
    values = { { "+0.2%", "+0.4%", "+0.6%", "+0.8%", "+1.0%", "+1.2%", "+1.4%", "+1.6%", "+1.8%", "+2.0%", "+2.2%", "+2.4%", "+2.6%", "+2.8%", "+3.0%", "+3.2%", "+3.4%", "+3.6%", "+3.8%", "+4.0%", "+4.3%", "+4.6%", "+4.9%", "+5.2%", "+5.5%", "+5.8%", "+6.1%", "+6.4%", "+6.7%", "+7.0%" }, { "+0.2%", "+0.4%", "+0.6%", "+0.8%", "+1.0%", "+1.2%", "+1.4%", "+1.6%", "+1.8%", "+2.0%", "+2.2%", "+2.4%", "+2.6%", "+2.8%", "+3.0%", "+3.2%", "+3.4%", "+3.6%", "+3.8%", "+4.0%", "+4.3%", "+4.6%", "+4.9%", "+5.2%", "+5.5%", "+5.8%", "+6.1%", "+6.4%", "+6.7%", "+7.0%" }, { "+0.2%", "+0.4%", "+0.6%", "+0.8%", "+1.0%", "+1.2%", "+1.4%", "+1.6%", "+1.8%", "+2.0%", "+2.2%", "+2.4%", "+2.6%", "+2.8%", "+3.0%", "+3.2%", "+3.4%", "+3.6%", "+3.8%", "+4.0%", "+4.3%", "+4.6%", "+4.9%", "+5.2%", "+5.5%", "+5.8%", "+6.1%", "+6.4%", "+6.7%", "+7.0%" } },
    pre_condition = "电子对抗总等级200级"
  },
  ["3222"] = {
    name = "多模块升级-射手",
    coin = "射手采样参数",
    cost = { 230, 350, 460, 460, 580, 690, 690, 920, 920, 1150, 1390, 1620, 1850, 2080, 2310, 2540, 2770, 3000, 3230, 3460, 3690, 3930, 4160, 4390, 4620, 4850, 5080, 5310, 5540, 5770 },
    targets = { "射手攻击力", "射手算力", "射手物理穿透" },
    values = { { "+0.2%", "+0.4%", "+0.6%", "+0.8%", "+1.0%", "+1.2%", "+1.4%", "+1.6%", "+1.8%", "+2.0%", "+2.2%", "+2.4%", "+2.6%", "+2.8%", "+3.0%", "+3.2%", "+3.4%", "+3.6%", "+3.8%", "+4.0%", "+4.3%", "+4.6%", "+4.9%", "+5.2%", "+5.5%", "+5.8%", "+6.1%", "+6.4%", "+6.7%", "+7.0%" }, { "+0.2%", "+0.4%", "+0.6%", "+0.8%", "+1.0%", "+1.2%", "+1.4%", "+1.6%", "+1.8%", "+2.0%", "+2.2%", "+2.4%", "+2.6%", "+2.8%", "+3.0%", "+3.2%", "+3.4%", "+3.6%", "+3.8%", "+4.0%", "+4.3%", "+4.6%", "+4.9%", "+5.2%", "+5.5%", "+5.8%", "+6.1%", "+6.4%", "+6.7%", "+7.0%" }, { "+0.2%", "+0.4%", "+0.6%", "+0.8%", "+1.0%", "+1.2%", "+1.4%", "+1.6%", "+1.8%", "+2.0%", "+2.2%", "+2.4%", "+2.6%", "+2.8%", "+3.0%", "+3.2%", "+3.4%", "+3.6%", "+3.8%", "+4.0%", "+4.3%", "+4.6%", "+4.9%", "+5.2%", "+5.5%", "+5.8%", "+6.1%", "+6.4%", "+6.7%", "+7.0%" } },
    pre_condition = "电子对抗总等级200级"
  },
  ["3223"] = {
    name = "多模块升级-战士",
    coin = "战士采样参数",
    cost = { 230, 350, 460, 460, 580, 690, 690, 920, 920, 1150, 1390, 1620, 1850, 2080, 2310, 2540, 2770, 3000, 3230, 3460, 3690, 3930, 4160, 4390, 4620, 4850, 5080, 5310, 5540, 5770 },
    targets = { "战士攻击力", "战士算力", "战士最大生命值" },
    values = { { "+0.2%", "+0.4%", "+0.6%", "+0.8%", "+1.0%", "+1.2%", "+1.4%", "+1.6%", "+1.8%", "+2.0%", "+2.2%", "+2.4%", "+2.6%", "+2.8%", "+3.0%", "+3.2%", "+3.4%", "+3.6%", "+3.8%", "+4.0%", "+4.3%", "+4.6%", "+4.9%", "+5.2%", "+5.5%", "+5.8%", "+6.1%", "+6.4%", "+6.7%", "+7.0%" }, { "+0.2%", "+0.4%", "+0.6%", "+0.8%", "+1.0%", "+1.2%", "+1.4%", "+1.6%", "+1.8%", "+2.0%", "+2.2%", "+2.4%", "+2.6%", "+2.8%", "+3.0%", "+3.2%", "+3.4%", "+3.6%", "+3.8%", "+4.0%", "+4.3%", "+4.6%", "+4.9%", "+5.2%", "+5.5%", "+5.8%", "+6.1%", "+6.4%", "+6.7%", "+7.0%" }, { "+0.2%", "+0.4%", "+0.6%", "+0.8%", "+1.0%", "+1.2%", "+1.4%", "+1.6%", "+1.8%", "+2.0%", "+2.2%", "+2.4%", "+2.6%", "+2.8%", "+3.0%", "+3.2%", "+3.4%", "+3.6%", "+3.8%", "+4.0%", "+4.3%", "+4.6%", "+4.9%", "+5.2%", "+5.5%", "+5.8%", "+6.1%", "+6.4%", "+6.7%", "+7.0%" } },
    pre_condition = "电子对抗总等级200级"
  },
  ["3224"] = {
    name = "多模块升级-特种",
    coin = "特种采样参数",
    cost = { 230, 350, 460, 460, 580, 690, 690, 920, 920, 1150, 1390, 1620, 1850, 2080, 2310, 2540, 2770, 3000, 3230, 3460, 3690, 3930, 4160, 4390, 4620, 4850, 5080, 5310, 5540, 5770 },
    targets = { "特种算力", "特种攻击力", "特种最大生命值" },
    values = { { "+0.2%", "+0.4%", "+0.6%", "+0.8%", "+1.0%", "+1.2%", "+1.4%", "+1.6%", "+1.8%", "+2.0%", "+2.2%", "+2.4%", "+2.6%", "+2.8%", "+3.0%", "+3.2%", "+3.4%", "+3.6%", "+3.8%", "+4.0%", "+4.3%", "+4.6%", "+4.9%", "+5.2%", "+5.5%", "+5.8%", "+6.1%", "+6.4%", "+6.7%", "+7.0%" }, { "+0.2%", "+0.4%", "+0.6%", "+0.8%", "+1.0%", "+1.2%", "+1.4%", "+1.6%", "+1.8%", "+2.0%", "+2.2%", "+2.4%", "+2.6%", "+2.8%", "+3.0%", "+3.2%", "+3.4%", "+3.6%", "+3.8%", "+4.0%", "+4.3%", "+4.6%", "+4.9%", "+5.2%", "+5.5%", "+5.8%", "+6.1%", "+6.4%", "+6.7%", "+7.0%" }, { "+0.2%", "+0.4%", "+0.6%", "+0.8%", "+1.0%", "+1.2%", "+1.4%", "+1.6%", "+1.8%", "+2.0%", "+2.2%", "+2.4%", "+2.6%", "+2.8%", "+3.0%", "+3.2%", "+3.4%", "+3.6%", "+3.8%", "+4.0%", "+4.3%", "+4.6%", "+4.9%", "+5.2%", "+5.5%", "+5.8%", "+6.1%", "+6.4%", "+6.7%", "+7.0%" } },
    pre_condition = "电子对抗总等级200级"
  },
  ["3225"] = {
    name = "多模块升级-医师",
    coin = "医师采样参数",
    cost = { 230, 350, 460, 460, 580, 690, 690, 920, 920, 1150, 1390, 1620, 1850, 2080, 2310, 2540, 2770, 3000, 3230, 3460, 3690, 3930, 4160, 4390, 4620, 4850, 5080, 5310, 5540, 5770 },
    targets = { "医师算力", "医师物理防御", "医师算量防御" },
    values = { { "+0.2%", "+0.4%", "+0.6%", "+0.8%", "+1.0%", "+1.2%", "+1.4%", "+1.6%", "+1.8%", "+2.0%", "+2.2%", "+2.4%", "+2.6%", "+2.8%", "+3.0%", "+3.2%", "+3.4%", "+3.6%", "+3.8%", "+4.0%", "+4.3%", "+4.6%", "+4.9%", "+5.2%", "+5.5%", "+5.8%", "+6.1%", "+6.4%", "+6.7%", "+7.0%" }, { "+0.2%", "+0.4%", "+0.6%", "+0.8%", "+1.0%", "+1.2%", "+1.4%", "+1.6%", "+1.8%", "+2.0%", "+2.2%", "+2.4%", "+2.6%", "+2.8%", "+3.0%", "+3.2%", "+3.4%", "+3.6%", "+3.8%", "+4.0%", "+4.3%", "+4.6%", "+4.9%", "+5.2%", "+5.5%", "+5.8%", "+6.1%", "+6.4%", "+6.7%", "+7.0%" }, { "+0.2%", "+0.4%", "+0.6%", "+0.8%", "+1.0%", "+1.2%", "+1.4%", "+1.6%", "+1.8%", "+2.0%", "+2.2%", "+2.4%", "+2.6%", "+2.8%", "+3.0%", "+3.2%", "+3.4%", "+3.6%", "+3.8%", "+4.0%", "+4.3%", "+4.6%", "+4.9%", "+5.2%", "+5.5%", "+5.8%", "+6.1%", "+6.4%", "+6.7%", "+7.0%" } },
    pre_condition = "电子对抗总等级200级"
  }
}
function p.TalentTable()
	local html = mw.html.create()
	local talent_table = p.Preprocessing() 
	local wikitable = html:tag('table'):addClass('wikitable'):cssText("width:70%; background: transparent;")
	for row=1,23 do --22行+首行职业
		local row_tag = 'td'
		if row == 1 then row_tag = 'th' end
		local table_tr = wikitable:tag('tr')
		for column=1,5 do
			local template = '<div class="talent-icon %s">%s</div>'
			local content = talent_table[row-1]
			if content and content[column] then
				local img = string.format('[[file:SectorBuilding_%s.png]]' , content[column].num )
				local class =  content[column].size .. string.format(' data-%s',content[column].num)
				local text = content[column].name
				local table_td = table_tr:tag( row_tag ):wikitext( string.format( template , class , text) ):done()
			else
				local table_td = table_tr:tag( row_tag ):wikitext( ):done()
			end
		end
	end
	return html
end

function p.Preprocessing()
	local temp_table = {}
	for i, v in pairs(talent_data) do
		local row = tonumber(string.sub(i,2,3))
		local column = 6
		local coin_list = {'守卫采样参数','射手采样参数','战士采样参数','特种采样参数','医师采样参数'}
		for a, b in ipairs(coin_list) do if v.coin == b then column = a end end
		if not temp_table[row] then temp_table[row]= { } end
		local size = 'small'
		if row%2==0 or v.name=='方程式拓展反馈' then size = 'big' end 
		table.insert( temp_table[row] , column , { ['name'] = v.name , ['size'] = size , ['num'] = i }  )
	end
	--for i, v in ipairs (temp_table)do mw.log(i,v[1],v[2],v[3],v[4],v[5]) end
	return temp_table
end

return p