cfg_damage_number.lua 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. -- 此文件工具自动生成,不要修改
  2. ---@class cfg_damage_number_column
  3. ---普通
  4. ---普通掉血:101
  5. ---特殊
  6. ---未命中:108
  7. ---反弹伤害:109
  8. ---@field id number @id column=1 A
  9. ---名称备注
  10. ---[[客户端不使用]]@field name string @name column=2 B
  11. ---仅供策划读
  12. ---[[客户端不使用]]@field attackRelationship string @攻击关系 column=3 C
  13. ---0不取值
  14. ---1取值
  15. ---[[客户端不使用]]@field attributeA number @一般攻击 column=4 D
  16. ---0不取值
  17. ---1取值
  18. ---[[客户端不使用]]@field attributeB number @卓越一击 column=5 E
  19. ---0不取值
  20. ---1取值
  21. ---[[客户端不使用]]@field attributeC number @幸运一击 column=6 F
  22. ---0不取值
  23. ---1取值
  24. ---[[客户端不使用]]@field attributeD number @无视防御 column=7 G
  25. ---0不取值
  26. ---1取值
  27. ---[[客户端不使用]]@field attributeE number @双倍伤害 column=8 H
  28. ---0不取值
  29. ---1取值
  30. ---[[客户端不使用]]@field attributeF number @神圣伤害 column=9 I
  31. ---0不取值
  32. ---1取值
  33. ---[[客户端不使用]]@field attributeG number @黑暗伤害 column=10 J
  34. ---0不取值
  35. ---1取值
  36. ---[[客户端不使用]]@field attributeH number @雷电伤害 column=11 K
  37. ---0不取值
  38. ---1取值
  39. ---[[客户端不使用]]@field attributeI number @风暴伤害 column=12 L
  40. ---飘字使用的艺术字图集配置,程序处理后给予图集名称在此处配置
  41. ---不填使用默认艺术字图集
  42. ---@field Atlas string @使用图集 column=13 M
  43. ---伤害数字的显示前缀,有文本、图标两种,文本直接配置文字,使用图标配置“t”,同时使用则配置“t+文本”,不配置则不显示
  44. ---@field prefix string @显示前缀 column=14 N
  45. ---飘字的尺寸缩放,填缩放倍数,默认100,填整数
  46. ---@field size number @显示尺寸 column=15 O
  47. ---控制自身飘血字体颜色,即自身被攻击所显示的飘字
  48. ---读cfg_color中id
  49. ---@field fontColor number @自身飘血字体颜色 column=16 P
  50. ---控制其他玩家飘血字体颜色,即攻击到其他目标所显示的飘字
  51. ---读cfg_color中id
  52. ---@field OtherFontColors number @其他目标飘字颜色 column=17 Q
  53. ---判断伤害数字显示几重
  54. ---@field damageWeight number @伤害显示重数 column=18 R
  55. ---0或空为不可用
  56. ---1为可用
  57. ---@field enable number @开关 column=19 S
  58. ---1普通飘血(现在用的这种)
  59. ---2飘血方向为左上,到一定高度下坠,下坠速度略快
  60. ---3飘血方向为左上,越往上越大,越透明
  61. ---4飘血方向为右上,一直往上飘,直到消失
  62. ---5飘血方向为正上方,飘到一半放大展示,然后缩小,渐渐消失
  63. ---6飘血方向为正上方(位置比5高),飘到一半放大展示,然后缩小,渐渐消失
  64. ---11元素飘血(普通飘血,右下方一点,距离差一行的距离)
  65. ---对应:类别数字对应工程中DamageConfigNumber,此文件的数字
  66. ---@field type number @飘血效果 column=20 T
  67. ---文字的偏移量(s)|计算符的偏移量(o)|数值的偏移量(n)
  68. ---参数说明:
  69. ---文字的偏移量(s): s#x#y#z
  70. ---计算符的偏移量(s): o#x#y#z
  71. ---文字的偏移量(s): n#x#y#z
  72. ---@field typeParams StringListList @飘血效果参数 column=21 U
  73. ---不同id飘血的效果覆盖叠加的凭据值
  74. ---数值大的效果遮盖效果小的
  75. ---同数值效果后来的遮盖先出的
  76. ---@field Order number @层级 column=22 V
  77. ---最小透明度
  78. ---0到100,数值越大越透明,100完全透明
  79. ---@field miniumFadeto number @透明度 column=23 W
  80. local cfg_damage_number =
  81. {
  82. {id=101, OtherFontColors=3011, type=1, typeParams={{"s","0","0","0"},{"o","0","0","0"},{"n","20","0","0"}}, Order=1, miniumFadeto=20},
  83. {id=102, OtherFontColors=3012, typeParams={{"s","0","0","0"},{"o","-5.74","8","0"},{"n","20","0","0"}}, Order=2, miniumFadeto=40},
  84. {id=103, OtherFontColors=3012, typeParams={{"s","0","0","0"},{"o","0","0","0"},{"n","20","0","0"}}, Order=2, miniumFadeto=40},
  85. {id=104, OtherFontColors=3013, typeParams={{"s","0","0","0"},{"o","0","0","0"},{"n","20","0","0"}}, Order=1, miniumFadeto=40},
  86. {id=105, OtherFontColors=3013, typeParams={{"s","0","0","0"},{"o","0","0","0"},{"n","20","0","0"}}, Order=3, miniumFadeto=40},
  87. {id=106, OtherFontColors=254, miniumFadeto=30},
  88. {id=107, OtherFontColors=3011, damageWeight=2, Order=5, miniumFadeto=20},
  89. {id=108, Atlas="DamageMissAtlas", fontColor=3015, OtherFontColors=3014, type=1, Order=6, miniumFadeto=40},
  90. {id=109, OtherFontColors=3017, type=1, Order=8, miniumFadeto=40},
  91. {id=110, OtherFontColors=3018, type=1, Order=9, miniumFadeto=30},
  92. {id=111, OtherFontColors=3012, damageWeight=2, Order=9, miniumFadeto=30},
  93. {id=112, OtherFontColors=3012, damageWeight=2, miniumFadeto=30},
  94. {id=113, OtherFontColors=3013, damageWeight=2, Order=7, miniumFadeto=30},
  95. {id=114, OtherFontColors=3013, damageWeight=2, Order=6, miniumFadeto=40},
  96. {id=115, OtherFontColors=254, damageWeight=2, Order=6, miniumFadeto=40},
  97. {id=116, OtherFontColors=3019, type=1, Order=6, miniumFadeto=40},
  98. {id=117, fontColor=250, OtherFontColors=250, type=1, Order=6, miniumFadeto=40},
  99. {id=118, Atlas="CureAtlas", prefix="t恢复", size=60, fontColor=263, OtherFontColors=263, type=1, typeParams={{"s","0","0","0"},{"o","0","0","0"},{"n","20","0","0"}}, Order=2, miniumFadeto=40},
  100. {id=119, fontColor=285, OtherFontColors=285, type=1, typeParams={{"s","0","0","0"},{"o","0","0","0"},{"n","20","0","0"}}, Order=2, miniumFadeto=40},
  101. {id=120, OtherFontColors=3013, typeParams={{"s","0","0","0"},{"o","0","0","0"},{"n","20","0","0"}}, Order=1, miniumFadeto=40},
  102. {id=121, OtherFontColors=3011, damageWeight=2, Order=5, miniumFadeto=20},
  103. {id=122, OtherFontColors=3012, damageWeight=2, miniumFadeto=30},
  104. {id=123, OtherFontColors=3011, damageWeight=2, Order=5, miniumFadeto=20},
  105. {id=200, Atlas="yuansu0", prefix="神圣", size=50, type=11, typeParams={{"s","0","0","0"},{"o","0","0","0"},{"n","40","20","0"}}},
  106. {id=201, Atlas="yuansu1", prefix="黑暗", size=50, type=11, typeParams={{"s","0","0","0"},{"o","0","0","0"},{"n","40","20","0"}}},
  107. {id=202, Atlas="yuansu2", prefix="雷电", size=50, type=11, typeParams={{"s","0","0","0"},{"o","0","0","0"},{"n","40","20","0"}}},
  108. {id=203, Atlas="yuansu3", prefix="风暴", size=50, type=11, typeParams={{"s","0","0","0"},{"o","0","0","0"},{"n","40","20","0"}}},
  109. {id=204, Atlas="yuansu4", prefix="混沌", size=50, type=11, typeParams={{"s","0","0","0"},{"o","0","0","0"},{"n","40","20","0"}}},
  110. {id=205, Atlas="yuansu5", prefix="神圣雷电", size=50, type=11, typeParams={{"s","0","0","0"},{"o","0","0","0"},{"n","40","20","0"}}},
  111. {id=206, Atlas="yuansu6", prefix="神圣风暴", size=50, type=11, typeParams={{"s","0","0","0"},{"o","0","0","0"},{"n","40","20","0"}}},
  112. {id=207, Atlas="yuansu7", prefix="黑暗雷电", size=50, type=11, typeParams={{"s","0","0","0"},{"o","0","0","0"},{"n","40","20","0"}}},
  113. {id=208, Atlas="yuansu8", prefix="黑暗风暴", size=50, type=11, typeParams={{"s","0","0","0"},{"o","0","0","0"},{"n","40","20","0"}}},
  114. {id=209, Atlas="yuansu9", prefix="雷电风暴", size=50, type=11, typeParams={{"s","0","0","0"},{"o","0","0","0"},{"n","40","20","0"}}},
  115. {id=210, Atlas="yuansu10", prefix="混沌雷电", size=50, type=11, typeParams={{"s","0","0","0"},{"o","0","0","0"},{"n","40","20","0"}}},
  116. {id=211, Atlas="yuansu11", prefix="混沌风暴", size=50, type=11, typeParams={{"s","0","0","0"},{"o","0","0","0"},{"n","40","20","0"}}},
  117. {id=212, Atlas="yuansu12", prefix="神圣雷暴", size=50, type=11, typeParams={{"s","0","0","0"},{"o","0","0","0"},{"n","40","20","0"}}},
  118. {id=213, Atlas="yuansu13", prefix="黑暗雷暴", size=50, type=11, typeParams={{"s","0","0","0"},{"o","0","0","0"},{"n","40","20","0"}}},
  119. {id=214, Atlas="yuansu14", prefix="混沌雷暴", size=50, type=11, typeParams={{"s","0","0","0"},{"o","0","0","0"},{"n","40","20","0"}}},
  120. {id=301, Atlas="ComboAtlas", prefix="t连击", size=70, fontColor=255, typeParams={{"s","0","0","0"},{"o","0","0","0"},{"n","20","0","0"}}, Order=10, miniumFadeto=20},
  121. {id=401, Atlas="bianshen", prefix="t变身", size=70, fontColor=255, typeParams={{"s","0","0","0"},{"o","0","0","0"},{"n","20","0","0"}}, Order=10, miniumFadeto=20},
  122. }
  123. local defaults = {Atlas="", prefix="", size=100, fontColor=259, OtherFontColors=255, damageWeight=1, enable=1, type=5, typeParams={{"s","-53","0","0"},{"o","0","0","0"},{"n","20","0","0"}}, Order=4, miniumFadeto=100}
  124. local mt = {__index = defaults}
  125. for _, v in ipairs(cfg_damage_number) do
  126. setmetatable(v, mt)
  127. end
  128. return cfg_damage_number