Fish_RedPackagelotteryCFG.lua 648 B

12345678910111213141516171819
  1. Fish_RedPackagelotteryCFG = {}
  2. function Fish_RedPackagelotteryCFG:getData(key)
  3. if self.datas == nil then
  4. return nil
  5. end
  6. return self.datas[key]
  7. end
  8. function Fish_RedPackagelotteryCFG:init()
  9. self.datas = {}
  10. self.datas[1] = {Id = 1, RedPageItem = 107, RedPageQuantity = 40, Weight = 0}
  11. self.datas[2] = {Id = 2, RedPageItem = 107, RedPageQuantity = 45, Weight = 3}
  12. self.datas[3] = {Id = 3, RedPageItem = 107, RedPageQuantity = 50, Weight = 50}
  13. self.datas[4] = {Id = 4, RedPageItem = 107, RedPageQuantity = 55, Weight = 40}
  14. self.datas[5] = {Id = 5, RedPageItem = 107, RedPageQuantity = 60, Weight = 7}
  15. end
  16. Fish_RedPackagelotteryCFG:init()