M_Global_Config.lua 2.8 KB

12345678910111213141516171819202122232425262728
  1. M_Global_Config = {}
  2. function M_Global_Config:getData(key)
  3. if self.datas == nil then
  4. return nil
  5. end
  6. return self.datas[key]
  7. end
  8. function M_Global_Config:init()
  9. self.datas = {}
  10. self.datas["TestKey1"] = {Key = "TestKey1", Desc = "XX字段", IntValue = 1, IntListValue = {2,3}, StrValue = "", StrListValue = {"lbt","lbbt"}, BoolValue = true}
  11. self.datas["TestKey2"] = {Key = "TestKey2", Desc = "XX说明", IntValue = 2, IntListValue = {}, StrValue = "lbt", StrListValue = {}, BoolValue = false}
  12. self.datas["dropGL"] = {Key = "dropGL", Desc = "道县id8 随机强化石打开获取权重,权重", IntValue = nil, IntListValue = {10,20,50,30}, StrValue = "", StrListValue = {}, BoolValue = nil}
  13. self.datas["dropID"] = {Key = "dropID", Desc = "道县id8 随机强化石打开获取道具ID,道具ID", IntValue = nil, IntListValue = {11,22,15,13}, StrValue = "", StrListValue = {}, BoolValue = nil}
  14. self.datas["WarTime"] = {Key = "WarTime", Desc = "每一关战斗时长(s)", IntValue = 120, IntListValue = {}, StrValue = "", StrListValue = {}, BoolValue = nil}
  15. self.datas["SkillWeight"] = {Key = "SkillWeight", Desc = "技能选择权重 传说权重,史诗权重", IntValue = nil, IntListValue = {2,1}, StrValue = "", StrListValue = {}, BoolValue = nil}
  16. self.datas["Rampage"] = {Key = "Rampage", Desc = "狂暴技能:魔币消耗倍数,奖励倍数", IntValue = nil, IntListValue = {2,2}, StrValue = "", StrListValue = {}, BoolValue = nil}
  17. self.datas["TreasureChestRewards"] = {Key = "TreasureChestRewards", Desc = "魔导石宝箱 奖励百分比", IntValue = nil, IntListValue = {100,125,150}, StrValue = "", StrListValue = {}, BoolValue = nil}
  18. self.datas["TreasureChestProbability"] = {Key = "TreasureChestProbability", Desc = "魔导石宝箱 奖励概率(万分比)", IntValue = nil, IntListValue = {5000,2500,2500}, StrValue = "", StrListValue = {}, BoolValue = nil}
  19. self.datas["SuperTriggered"] = {Key = "SuperTriggered", Desc = "鱼阵时间触发 基础间隔,随机偏移", IntValue = nil, IntListValue = {60,20}, StrValue = "", StrListValue = {}, BoolValue = nil}
  20. self.datas["Death"] = {Key = "Death", Desc = "主角受击次数死亡", IntValue = 5, IntListValue = {}, StrValue = "", StrListValue = {}, BoolValue = nil}
  21. self.datas["MonsterRefresh"] = {Key = "MonsterRefresh", Desc = "刷怪圈(外圈直径,内圈直径)", IntValue = nil, IntListValue = {900,600}, StrValue = "", StrListValue = {}, BoolValue = nil}
  22. self.datas["Experience1"] = {Key = "Experience1", Desc = "道具ID:5 提供的经验值", IntValue = 10, IntListValue = {}, StrValue = "", StrListValue = {}, BoolValue = nil}
  23. self.datas["Experience2"] = {Key = "Experience2", Desc = "道具ID:6 提供的经验值", IntValue = 20, IntListValue = {}, StrValue = "", StrListValue = {}, BoolValue = nil}
  24. end
  25. M_Global_Config:init()