Fish_JuKunCardCFG.lua 386 B

1234567891011121314151617
  1. Fish_JuKunCardCFG = {}
  2. function Fish_JuKunCardCFG:getData(key)
  3. if self.datas == nil then
  4. return nil
  5. end
  6. return self.datas[key]
  7. end
  8. function Fish_JuKunCardCFG:init()
  9. self.datas = {}
  10. self.datas[1] = {ID = 1, Name = "普通", Weight = 85}
  11. self.datas[2] = {ID = 2, Name = "稀有", Weight = 10}
  12. self.datas[3] = {ID = 3, Name = "史诗", Weight = 5}
  13. end
  14. Fish_JuKunCardCFG:init()