Advertisement
Lonely_Wanderer

modinfo

Feb 12th, 2024
1,128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 10.60 KB | None | 0 0
  1. ChooseTranslationTable = ChooseTranslationTable or function() end
  2. name ="New Achivement"
  3. description = "Achievement (Reburn) 更新 2023.6.23"
  4. author = "ACLegend"
  5. version = "2.2.11"
  6.  
  7. forumthread = ""
  8.  
  9. api_version = 10
  10.  
  11. dst_compatible = true
  12. dont_starve_compatible = false
  13. reign_of_giants_compatible = false
  14. all_clients_require_mod = true
  15.  
  16. icon_atlas = "modicon.xml"
  17. icon = "modicon.tex"
  18.  
  19. server_filter_tags = {}
  20.  
  21.  
  22. local MODINFO_NAME = {
  23.     CAN_LEARN = {
  24.         "Can Learn Ability",
  25.         ["zh"] = "是否能学习能力",
  26.         ["en"] = "Can Learn Ability",
  27.     },
  28.     START_AWARD = {
  29.         "Give gifts at the start",
  30.         ["zh"] = "开局是否送物品",
  31.         ["en"] = "Give gifts at the start",
  32.     },
  33.     BOSS_STRENGTHEN = {
  34.         "Boss strengthen",
  35.         ["zh"] = "BOSS加强",
  36.         ["en"] = "Boss strengthen",
  37.     },
  38.     RETRUN_POINT = {
  39.         "Rebate points for reset ability",
  40.         ["zh"] = "重置时返回成就百分比",
  41.         ["en"] = "return points percent",
  42.     },
  43.     SHOW_TITLE = {
  44.         "Show title",
  45.         ["zh"] = "显示称号",
  46.         ["en"] = "Show title",
  47.     },
  48.     LANGUAGE = {
  49.         "Language",
  50.         ["zh"] = "语言",
  51.         ["en"] = "Language",
  52.     },
  53.     DIFFICULTY = {
  54.         "Difficulty",
  55.         ["zh"] = "成就完成难度",
  56.         ["en"] = "Difficulty",
  57.     },
  58.     ABILITYIFFICULTY = {
  59.         "Ability Difficulty",
  60.         ["zh"] = "能力学习消耗点数",
  61.         ["en"] = "Ability Cost",
  62.     },
  63.     MAX_DAMAGE = {
  64.         "Max Damage up",
  65.         ["zh"] = "提升攻击最大学习次数",
  66.         ["en"] = "Max Damage up",
  67.     },
  68.     MAX_SPEED = {
  69.         "Max Speed up",
  70.         ["zh"] = "提升速度最大学习次数",
  71.         ["en"] = "Max Speed up",
  72.     },
  73.     MAX_ABSORB = {
  74.         "Max Absorb up",
  75.         ["zh"] = "提升防御最大学习次数",
  76.         ["en"] = "Max Absorb up",
  77.     },
  78.     MAX_CRIT = {
  79.         "Max Crit up",
  80.         ["zh"] = "提升暴击最大学习次数",
  81.         ["en"] = "Max Crit up",
  82.     },
  83.     KILLAMOUNT_CAN_FINISH_ACHIEVEMENT = {
  84.         "kill amount can finish achievement",
  85.         ["zh"] = "消耗杀戮值可以完成成就",
  86.         ["en"] = "Max Crit up",
  87.     },
  88.     COST_KILL_AMOUNT = {
  89.         "kill amount can finish achievement",
  90.         ["zh"] = "完成一个成就消耗杀戮值数量",
  91.         ["en"] = "finsh achievement cost kill amount",
  92.     },
  93.     CAN_HIDE_HUD =
  94.     {
  95.         "hide the main panel by pressing the button N",
  96.         ["zh"] = "是否可按N显隐主面板",
  97.         ["en"] = "press N to show and hide the main panel",
  98.     },
  99. }
  100. configuration_options =
  101. {
  102.     {
  103.         name = "checkcoin",
  104.         label =  ChooseTranslationTable(MODINFO_NAME.CAN_LEARN),
  105.         hover = "Can learn ability",
  106.         options =   {
  107.      
  108.                         {description = "YES", data = false},
  109.                         {description = "NO", data = true},
  110.  
  111.                     },
  112.         default = false,
  113.     },
  114.     {
  115.         name = "checkstart",
  116.         label = ChooseTranslationTable(MODINFO_NAME.START_AWARD),
  117.         hover = "give gifts at the start",
  118.         options =   {
  119.                         {description = "YES", data = true},
  120.                         {description = "NO", data = false},
  121.                     },
  122.         default = true,
  123.     },
  124.     {
  125.         name = "bossstrengthen",
  126.         label = ChooseTranslationTable(MODINFO_NAME.BOSS_STRENGTHEN),
  127.         hover = "Boss strengthen",
  128.         options =   {
  129.      
  130.                         {description = "YES", data = true},
  131.                         {description = "NO", data = false},
  132.  
  133.                     },
  134.         default = false,
  135.     },
  136.     {
  137.         name = "returnpoint",
  138.         label = ChooseTranslationTable(MODINFO_NAME.RETRUN_POINT),
  139.         hover = "Rebate points for reset ability",
  140.         options =   {
  141.      
  142.                         {description = "100%", data = 1.0},
  143.                         {description = "95%", data = 0.95},
  144.                         {description = "90%", data = 0.9},
  145.                         {description = "85%", data = 0.85},
  146.                         {description = "80%", data = 0.8},
  147.                         {description = "75%", data = 0.75},
  148.                         {description = "70%", data = 0.70},
  149.                         {description = "65%", data = 0.65},
  150.                         {description = "60%", data = 0.60},
  151.                         {description = "50%", data = 0.50},
  152.                     },
  153.         default = 0.85,
  154.     },
  155.     {
  156.         name = "showtitle",
  157.         label = ChooseTranslationTable(MODINFO_NAME.SHOW_TITLE),
  158.         hover = "show title",
  159.         options =   {
  160.                         {description = "SHOW", data = true},
  161.                         {description = "HIDE", data = false},
  162.                     },
  163.         default = true,
  164.     },
  165.     {
  166.         name = "language",
  167.         label = ChooseTranslationTable(MODINFO_NAME.LANGUAGE),
  168.         hover = "language",
  169.         options =   {
  170.                         {description = "简体中文", data = "zh"},
  171.                         {description = "English", data = "en"},
  172.                     },
  173.         default = "zh",
  174.     },
  175.     {
  176.         name = "coindifficulty",
  177.         label = ChooseTranslationTable(MODINFO_NAME.DIFFICULTY),
  178.         hover = "Difficulty",
  179.         options =   {
  180.                         {description = "EAZY",hover = "0.5 times", data = 0.5},
  181.                         {description = "NORMAL",hover = "1 times",data = 1},
  182.                         {description = "HARD",hover = "1.5 times", data = 1.5},
  183.                         {description = "NIGHTMARE",hover = "2 times", data = 2},
  184.                     },
  185.         default = 1,
  186.     },
  187.     {
  188.         name = "abilityifficulty",
  189.         label = ChooseTranslationTable(MODINFO_NAME.ABILITYIFFICULTY),
  190.         hover = "Ability learning consumption points multiplier",
  191.         options =   {
  192.                         {description = "ULTRA CHEAP",hover = "0.25 times", data = 0.25},
  193.                         {description = "CHEAP",hover = "0.5 times", data = 0.5},
  194.                         {description = "NORMAL",hover = "1 times", data = 1},
  195.                         {description = "EXPENSIVE",hover = "1.5 times", data = 1.5},
  196.                         {description = "VERY EXPENSIVE",hover = "2 times", data = 2},
  197.                     },
  198.         default = 1,
  199.     },
  200.     {
  201.         name = "max_damageup",
  202.         label = ChooseTranslationTable(MODINFO_NAME.MAX_DAMAGE),
  203.         hover = "Maximum number of learning damageup",
  204.         options =   {
  205.                         {description = "5",hover = "5", data = 5},
  206.                         {description = "10",hover = "10", data = 10},
  207.                         {description = "15",hover = "15", data = 15},
  208.                         {description = "20",hover = "20", data = 20},
  209.                         {description = "25",hover = "25", data = 25},
  210.                         {description = "30",hover = "30", data = 30},
  211.                         {description = "35",hover = "35", data = 35},
  212.                         {description = "40",hover = "40", data = 40},
  213.                     },
  214.         default = 5,
  215.     },
  216.     {
  217.         name = "max_speedup",
  218.         label = ChooseTranslationTable(MODINFO_NAME.MAX_SPEED),
  219.         hover = "Maximum number of learning speedup",
  220.         options =   {
  221.                         {description = "5",hover = "5", data = 5},
  222.                         {description = "10",hover = "10", data = 10},
  223.                         {description = "15",hover = "15", data = 15},
  224.                         {description = "20",hover = "20", data = 20},
  225.                         {description = "25",hover = "25", data = 25},
  226.                         {description = "30",hover = "30", data = 30},
  227.                         {description = "35",hover = "35", data = 35},
  228.                         {description = "40",hover = "40", data = 40},
  229.                     },
  230.         default = 5,
  231.     },
  232.     {
  233.         name = "max_absorbup",
  234.         label = ChooseTranslationTable(MODINFO_NAME.MAX_ABSORB),
  235.         hover = "Maximum number of learning defenseup",
  236.         options =   {
  237.                         {description = "5",hover = "5", data = 5},
  238.                         {description = "10",hover = "10", data = 10},
  239.                         {description = "15",hover = "15", data = 15},
  240.                         {description = "20",hover = "20", data = 20},
  241.                         {description = "25",hover = "25", data = 25},
  242.                         {description = "30",hover = "30", data = 30},
  243.                         {description = "35",hover = "35", data = 35},
  244.                         {description = "40",hover = "40", data = 40},
  245.                     },
  246.         default = 5,
  247.     },
  248.     {
  249.         name = "max_crit",
  250.         label = ChooseTranslationTable(MODINFO_NAME.MAX_CRIT),
  251.         hover = "Maximum number of learning crit",
  252.         options =   {
  253.                         {description = "5",hover = "5", data = 5},
  254.                         {description = "10",hover = "10", data = 10},
  255.                         {description = "15",hover = "15", data = 15},
  256.                         {description = "20",hover = "20", data = 20},
  257.                     },
  258.         default = 20,
  259.     },
  260.     {
  261.         name = "killamount_can_finish_achievement",
  262.         label = ChooseTranslationTable(MODINFO_NAME.KILLAMOUNT_CAN_FINISH_ACHIEVEMENT),
  263.         hover = "killamount can finish achievement",
  264.         options =   {
  265.      
  266.             {description = "YES", data = true},
  267.             {description = "NO", data = false},
  268.  
  269.         },
  270.         default = true,
  271.     },
  272.     {
  273.         name = "cost_kill_amount",
  274.         label = ChooseTranslationTable(MODINFO_NAME.COST_KILL_AMOUNT),
  275.         hover = "finsh achievement cost",
  276.         options =   {
  277.             {description = "500",hover = "500", data = 500},
  278.             {description = "800",hover = "800", data = 800},
  279.             {description = "1000",hover = "1000", data = 1000},
  280.             {description = "1500",hover = "1500", data = 1500},
  281.             {description = "2000",hover = "2000", data = 2000},
  282.             {description = "2500",hover = "2500", data = 2500},
  283.             {description = "5000",hover = "5000", data = 5000},
  284.         },
  285.         default = 1000,
  286.     },
  287.     {
  288.         name = "can_hide_hud",
  289.         label = ChooseTranslationTable(MODINFO_NAME.CAN_HIDE_HUD),
  290.         hover = "Is it possible to hide the main panel by pressing the button N",
  291.         options =   {
  292.             {description = "YES", data = true},
  293.             {description = "NO", data = false},
  294.         },
  295.         default = true,
  296.     },
  297. }
  298.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement