cfg_revive.lua 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. -- 此文件工具自动生成,不要修改
  2. ---@class cfg_revive_column
  3. ---被关联,不可重复
  4. ---@field id number @复活ID column=1 A
  5. ---1=副本复活点复活(读地图复活点)
  6. ---2=复活点复活
  7. ---3=原地复活
  8. ---4=自动传送到指定地图坐标(读地图复活点)
  9. ---5=自动原地复活(倒计时后原地复活)
  10. ---@field type number @复活类型 column=2 B
  11. ---直接显示按钮上面
  12. ---@field name string @文字描述 column=3 C
  13. ---读item表物品ID。
  14. ---@field itemId number @货币类型 column=4 D
  15. ---每次增加的数量
  16. ---格式:次数#数量|次数#数量.....
  17. ---@field quantity IntListList @数量 column=5 E
  18. ---基础单价
  19. ---@field price number @基础单价 column=6 F
  20. ---每次增加的价格
  21. ---@field addPrice number @每次增加的价格 column=7 G
  22. ---最大价格
  23. ---@field maxPrice number @最大价格 column=8 H
  24. ---等待时间
  25. ---@field cd number @等待时间 column=9 I
  26. ---增加时间
  27. ---@field addCd number @增加时间 column=10 J
  28. ---最大时间
  29. ---@field maxCd number @最大时间 column=11 K
  30. local cfg_revive =
  31. {
  32. {id=1, type=1, name="回城复活"},
  33. {id=2, type=2, name="立即入口复活", itemId=70800001, quantity={{1,1},{2,2},{3,4},{4,6}}, price=20, addPrice=30, maxPrice=100},
  34. {id=3, name="立即原地复活", itemId=70800001, quantity={{1,1},{2,2},{3,4},{4,6}}, price=20, addPrice=30, maxPrice=100},
  35. {id=4, type=4, name="自动入口复活", cd=30, addCd=10, maxCd=60},
  36. {id=5, type=5, name="自动原地复活", cd=30, addCd=10, maxCd=60},
  37. {id=6, type=2, name="免费立即复活"},
  38. {id=7, name="免费立即复活"},
  39. {id=8, type=4, name="免费复活", cd=30, addCd=10, maxCd=60},
  40. {id=9, name="原地复活", itemId=70800001, quantity={{1,1},{2,2},{3,4},{4,6}}, price=20, addPrice=30, maxPrice=100},
  41. {id=10, type=1, name="免费复活", cd=30, addCd=10, maxCd=60},
  42. {id=11, type=4, name="入口复活", cd=30, addCd=10, maxCd=60},
  43. {id=12, name="立即复活", itemId=70800001, quantity={{1,1},{2,2},{3,4},{4,6}}, price=30, addPrice=30, maxPrice=100},
  44. }
  45. local defaults = {type=3, itemId=0, quantity={}, price=0, addPrice=0, maxPrice=0, cd=0, addCd=0, maxCd=0}
  46. local mt = {__index = defaults}
  47. for _, v in ipairs(cfg_revive) do
  48. setmetatable(v, mt)
  49. end
  50. return cfg_revive