M_shop.lua 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. M_shop = {}
  2. function M_shop:getData(key)
  3. if self.datas == nil then
  4. return nil
  5. end
  6. return self.datas[key]
  7. end
  8. function M_shop:init()
  9. self.datas = {}
  10. self.datas[1001] = {ID = 1001, shop_type = 1, cost_Item = {1,100}, reward = {2,20000}, icon = "", sort = 1, condition = nil, value = ""}
  11. self.datas[1002] = {ID = 1002, shop_type = 1, cost_Item = {1,3000}, reward = {2,600000}, icon = "", sort = 2, condition = nil, value = ""}
  12. self.datas[1003] = {ID = 1003, shop_type = 1, cost_Item = {1,9800}, reward = {2,1960000}, icon = "", sort = 3, condition = nil, value = ""}
  13. self.datas[1004] = {ID = 1004, shop_type = 1, cost_Item = {1,19800}, reward = {2,3960000}, icon = "", sort = 4, condition = nil, value = ""}
  14. self.datas[1005] = {ID = 1005, shop_type = 1, cost_Item = {1,32800}, reward = {2,6560000}, icon = "", sort = 5, condition = nil, value = ""}
  15. self.datas[1006] = {ID = 1006, shop_type = 1, cost_Item = {1,64800}, reward = {2,12960000}, icon = "", sort = 6, condition = nil, value = ""}
  16. self.datas[2001] = {ID = 2001, shop_type = 2, cost_Item = {1,100}, reward = {9,1}, icon = "", sort = 1, condition = nil, value = ""}
  17. self.datas[2002] = {ID = 2002, shop_type = 2, cost_Item = {1,100}, reward = {10,1}, icon = "", sort = 2, condition = nil, value = ""}
  18. self.datas[2003] = {ID = 2003, shop_type = 2, cost_Item = {1,100}, reward = {11,1}, icon = "", sort = 3, condition = nil, value = ""}
  19. self.datas[2004] = {ID = 2004, shop_type = 2, cost_Item = {1,100}, reward = {12,1}, icon = "", sort = 4, condition = nil, value = ""}
  20. self.datas[2005] = {ID = 2005, shop_type = 2, cost_Item = {1,100}, reward = {13,1}, icon = "", sort = 5, condition = nil, value = ""}
  21. self.datas[3001] = {ID = 3001, shop_type = 3, cost_Item = {3,60000}, reward = {2,252000}, icon = "", sort = 1, condition = 3, value = "221"}
  22. self.datas[3002] = {ID = 3002, shop_type = 3, cost_Item = {3,360000}, reward = {2,1530000}, icon = "", sort = 2, condition = 3, value = "213"}
  23. self.datas[3003] = {ID = 3003, shop_type = 3, cost_Item = {3,880000}, reward = {2,3828000}, icon = "", sort = 3, condition = 3, value = "218"}
  24. self.datas[3004] = {ID = 3004, shop_type = 3, cost_Item = {3,1880000}, reward = {2,8460000}, icon = "", sort = 4, condition = 3, value = "225"}
  25. self.datas[3005] = {ID = 3005, shop_type = 3, cost_Item = {3,3880000}, reward = {2,17848000}, icon = "", sort = 5, condition = 3, value = "230"}
  26. self.datas[3006] = {ID = 3006, shop_type = 3, cost_Item = {3,6480000}, reward = {2,30780000}, icon = "", sort = 6, condition = 3, value = "238"}
  27. self.datas[4001] = {ID = 4001, shop_type = 4, cost_Item = {1,100}, reward = {2,20000}, icon = "", sort = 1, condition = nil, value = ""}
  28. self.datas[4002] = {ID = 4002, shop_type = 4, cost_Item = {1,3000}, reward = {2,600000}, icon = "", sort = 2, condition = nil, value = ""}
  29. self.datas[4003] = {ID = 4003, shop_type = 4, cost_Item = {1,9800}, reward = {2,1960000}, icon = "", sort = 3, condition = nil, value = ""}
  30. self.datas[4004] = {ID = 4004, shop_type = 4, cost_Item = {1,19800}, reward = {2,3960000}, icon = "", sort = 4, condition = nil, value = ""}
  31. self.datas[4005] = {ID = 4005, shop_type = 4, cost_Item = {1,32800}, reward = {2,6560000}, icon = "", sort = 5, condition = nil, value = ""}
  32. self.datas[4006] = {ID = 4006, shop_type = 4, cost_Item = {1,64800}, reward = {2,12960000}, icon = "", sort = 6, condition = nil, value = ""}
  33. end
  34. M_shop:init()