KMagicAttrib.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:4k
源码类别:

模拟服务器

开发平台:

C/C++

  1. #ifndef KMagicAttribH
  2. #define KMagicAttribH
  3. #define INVALID_ATTRIB -1
  4. // 枚举类型最后一个字母表示该数值的类型,v为整型,直接加的点数,p为百分比,b为布尔型
  5. enum MAGIC_ATTRIB
  6. {
  7. //改变技能的属性
  8. magic_skill_begin,
  9. magic_skill_cost_v, // 消耗MANA
  10. magic_skill_costtype_v, //
  11. magic_skill_mintimepercast_v, // 每次发魔法的间隔时间
  12. magic_skill_misslenum_v, // 
  13. magic_skill_misslesform_v,
  14. magic_skill_param1_v,
  15. magic_skill_param2_v,
  16. magic_skill_reserve1,
  17. magic_skill_reserve2,
  18. magic_skill_reserve3,
  19. magic_skill_reserve4,
  20. magic_skill_eventskilllevel,
  21. magic_skill_end,
  22. //改变发出子弹的属性
  23. magic_missle_begin,
  24. magic_missle_movekind_v, // 子弹格式
  25. magic_missle_speed_v, // 子弹飞行速度
  26. magic_missle_lifetime_v, // 子弹的生命时间
  27. magic_missle_height_v, // 子弹的高度
  28. magic_missle_damagerange_v, // 子弹破坏范围
  29. magic_missle_radius_v, // 子弹飞行半径
  30. magic_missle_reserve1,
  31. magic_missle_reserve2,
  32. magic_missle_reserve3,
  33. magic_missle_reserve4,
  34. magic_missle_reserve5,
  35. magic_missle_end,
  36. //装备属性
  37. magic_item_begin,
  38. magic_weapondamagemin_v,
  39. magic_weapondamagemax_v,
  40. magic_armordefense_v,
  41. magic_durability_v,
  42. magic_requirestr,
  43. magic_requiredex,
  44. magic_requirevit,
  45. magic_requireeng,
  46. magic_requirelevel,
  47. magic_requireseries,
  48. magic_requiresex,
  49. magic_requiremenpai,
  50. magic_weapondamageenhance_p,
  51. magic_armordefenseenhance_p,
  52. magic_requirementreduce_p,
  53. magic_indestructible_b,
  54. magic_item_reserve1,
  55. magic_item_reserve2,
  56. magic_item_reserve3,
  57. magic_item_reserve4,
  58. magic_item_reserve5,
  59. magic_item_reserve6,
  60. magic_item_reserve7,
  61. magic_item_reserve8,
  62. magic_item_reserve9,
  63. magic_item_reserve10,
  64. magic_item_end,
  65. //主动攻击伤害属性
  66. magic_damage_begin,
  67. magic_attackrating_v,
  68. magic_attackrating_p,
  69. magic_ignoredefense_p,
  70. magic_physicsdamage_v,
  71. magic_colddamage_v,
  72. magic_firedamage_v,
  73. magic_lightingdamage_v,
  74. magic_poisondamage_v,
  75. magic_magicdamage_v,
  76. magic_physicsenhance_p,
  77. magic_steallife_p,
  78. magic_stealmana_p,
  79. magic_stealstamina_p,
  80. magic_knockback_p,
  81. magic_deadlystrike_p,
  82. magic_fatallystrike_p,
  83. magic_stun_p,
  84. magic_damage_reserve1,
  85. magic_damage_reserve2,
  86. magic_damage_reserve3,
  87. magic_damage_reserve4,
  88. magic_damage_reserve5,
  89. magic_damage_reserve6,
  90. magic_damage_reserve7,
  91. magic_damage_reserve8,
  92. magic_damage_reserve9,
  93. magic_damage_reserve10,
  94. magic_damage_end,
  95. //被动、状态、光环类属性
  96. magic_normal_begin,
  97. magic_lifemax_v,
  98. magic_lifemax_p,
  99. magic_life_v,
  100. magic_lifereplenish_v,
  101. magic_manamax_v,
  102. magic_manamax_p,
  103. magic_mana_v,
  104. magic_manareplenish_v,
  105. magic_staminamax_v,
  106. magic_staminamax_p,
  107. magic_stamina_v,
  108. magic_staminareplenish_v,
  109. magic_strength_v,
  110. magic_dexterity_v,
  111. magic_vitality_v,
  112. magic_energy_v,
  113. magic_poisonres_p,
  114. magic_fireres_p,
  115. magic_lightingres_p,
  116. magic_physicsres_p,
  117. magic_coldres_p,
  118. magic_freezetimereduce_p,
  119. magic_burntimereduce_p,
  120. magic_poisontimereduce_p,
  121. magic_poisondamagereduce_v,
  122. magic_stuntimereduce_p,
  123. magic_fastwalkrun_p,
  124. magic_visionradius_p,
  125. magic_fasthitrecover_v,
  126. magic_allres_p,
  127. magic_attackspeed_v,
  128. magic_castspeed_v,
  129. magic_meleedamagereturn_v,
  130. magic_meleedamagereturn_p,
  131. magic_rangedamagereturn_v,
  132. magic_rangedamagereturn_p,
  133. magic_addphysicsdamage_v,
  134. magic_addfiredamage_v,
  135. magic_addcolddamage_v,
  136. magic_addlightingdamage_v,
  137. magic_addpoisondamage_v,
  138. magic_addphysicsdamage_p,
  139. magic_slowmissle_b,
  140. magic_changecamp_b,
  141. magic_physicsarmor_v,
  142. magic_coldarmor_v,
  143. magic_firearmor_v,
  144. magic_poisonarmor_v,
  145. magic_lightingarmor_v,
  146. magic_damagetomana_p,
  147. magic_lucky_v,
  148. magic_steallifeenhance_p,
  149. magic_stealmanaenhance_p,
  150. magic_stealstaminaenhance_p,
  151. magic_allskill_v,
  152. magic_metalskill_v,
  153. magic_woodskill_v,
  154. magic_waterskill_v,
  155. magic_fireskill_v,
  156. magic_earthskill_v,
  157. magic_knockbackenhance_p,
  158. magic_deadlystrikeenhance_p,
  159. magic_stunenhance_p,
  160. magic_badstatustimereduce_v,
  161. magic_manashield_p,
  162. magic_adddefense_v,
  163. magic_adddefense_p,
  164. magic_fatallystrikeenhance_p,
  165. magic_lifepotion_v,
  166. magic_manapotion_v,
  167. magic_physicsresmax_p,
  168. magic_coldresmax_p,
  169. magic_fireresmax_p,
  170. magic_lightingresmax_p,
  171. magic_poisonresmax_p,
  172. magic_allresmax_p,
  173. magic_coldenhance_p,
  174. magic_fireenhance_p,
  175. magic_lightingenhance_p,
  176. magic_poisonenhance_p,
  177. magic_magicenhance_p,
  178. magic_attackratingenhance_v,
  179. magic_attackratingenhance_p,
  180. magic_normal_end,
  181. };
  182. extern const char MAGIC_ATTRIB_STRING[magic_normal_end + 1][100] ; 
  183. #endif