M_ActivityGetRichCFG.lua 614 B

1234567891011121314151617181920
  1. M_ActivityGetRichCFG = {}
  2. function M_ActivityGetRichCFG:getData(key)
  3. if self.datas == nil then
  4. return nil
  5. end
  6. return self.datas[key]
  7. end
  8. function M_ActivityGetRichCFG:init()
  9. self.datas = {}
  10. self.datas[1] = {ID = 1, Weight = 0, Rate = 2, Gold = 200000}
  11. self.datas[2] = {ID = 2, Weight = 0, Rate = 4, Gold = 400000}
  12. self.datas[3] = {ID = 3, Weight = 15, Rate = 6, Gold = 600000}
  13. self.datas[4] = {ID = 4, Weight = 50, Rate = 8, Gold = 800000}
  14. self.datas[5] = {ID = 5, Weight = 30, Rate = 9, Gold = 900000}
  15. self.datas[6] = {ID = 6, Weight = 5, Rate = 10, Gold = 1000000}
  16. end
  17. M_ActivityGetRichCFG:init()