M_hero.lua 2.4 KB

1234567891011121314151617181920212223242526
  1. M_hero = {}
  2. function M_hero:getData(key)
  3. if self.datas == nil then
  4. return nil
  5. end
  6. return self.datas[key]
  7. end
  8. function M_hero:init()
  9. self.datas = {}
  10. self.datas[1001] = {ID = 1001, name = "狂屠", grade_type = 1, default_have = 1, skill_id = 1001, attribute = 1, atk = 15, icon = "", aspect = "hero1001", speed = 1, zoom_factor = 1}
  11. self.datas[1002] = {ID = 1002, name = "圣天使", grade_type = 1, default_have = 1, skill_id = 1001, attribute = 2, atk = 15, icon = "", aspect = "hero1001", speed = 1, zoom_factor = 1}
  12. self.datas[1003] = {ID = 1003, name = "英雄3", grade_type = 1, default_have = 1, skill_id = 1001, attribute = 3, atk = 15, icon = "", aspect = "hero1001", speed = 1, zoom_factor = 1}
  13. self.datas[1004] = {ID = 1004, name = "英雄4", grade_type = 1, default_have = 1, skill_id = 1001, attribute = 4, atk = 15, icon = "", aspect = "hero1001", speed = 1, zoom_factor = 1}
  14. self.datas[1005] = {ID = 1005, name = "英雄5", grade_type = 1, default_have = 1, skill_id = 1001, attribute = 1, atk = 15, icon = "", aspect = "hero1001", speed = 1, zoom_factor = 1}
  15. self.datas[1006] = {ID = 1006, name = "英雄6", grade_type = 1, default_have = 1, skill_id = 1001, attribute = 2, atk = 15, icon = "", aspect = "hero1001", speed = 1, zoom_factor = 1}
  16. self.datas[1007] = {ID = 1007, name = "英雄7", grade_type = 1, default_have = 1, skill_id = 1001, attribute = 3, atk = 15, icon = "", aspect = "hero1001", speed = 1, zoom_factor = 1}
  17. self.datas[1008] = {ID = 1008, name = "英雄8", grade_type = 1, default_have = 1, skill_id = 1001, attribute = 4, atk = 15, icon = "", aspect = "hero1001", speed = 1, zoom_factor = 1}
  18. self.datas[1009] = {ID = 1009, name = "传说英雄1", grade_type = 2, default_have = 0, skill_id = 1001, attribute = 1, atk = 20, icon = "", aspect = "hero1001", speed = 1, zoom_factor = 1}
  19. self.datas[1010] = {ID = 1010, name = "传说英雄2", grade_type = 2, default_have = 0, skill_id = 1001, attribute = 2, atk = 20, icon = "", aspect = "hero1001", speed = 1, zoom_factor = 1}
  20. self.datas[1011] = {ID = 1011, name = "传说英雄3", grade_type = 2, default_have = 0, skill_id = 1001, attribute = 3, atk = 20, icon = "", aspect = "hero1001", speed = 1, zoom_factor = 1}
  21. self.datas[1012] = {ID = 1012, name = "传说英雄4", grade_type = 2, default_have = 0, skill_id = 1001, attribute = 4, atk = 20, icon = "", aspect = "hero1001", speed = 1, zoom_factor = 1}
  22. end
  23. M_hero:init()