M_BankGiftCFG.lua 506 B

123456789101112131415161718
  1. M_BankGiftCFG = {}
  2. function M_BankGiftCFG:getData(key)
  3. if self.datas == nil then
  4. return nil
  5. end
  6. return self.datas[key]
  7. end
  8. function M_BankGiftCFG:init()
  9. self.datas = {}
  10. self.datas[1] = {ID = 1, RechangId = {145,149}, Weight = 60, Multiple = 3}
  11. self.datas[2] = {ID = 2, RechangId = {146,150}, Weight = 25, Multiple = 4}
  12. self.datas[3] = {ID = 3, RechangId = {147,151}, Weight = 10, Multiple = 5}
  13. self.datas[4] = {ID = 4, RechangId = {148,152}, Weight = 5, Multiple = 6}
  14. end
  15. M_BankGiftCFG:init()