M_item = {}

function M_item:getData(key)
	if self.datas == nil then
		return nil
	end
	return self.datas[key]
end

function M_item:init()
	self.datas = {}
	self.datas[1] = {ID = 1, name = "水晶", desc = "充值货币", type = 1, quality = 1, icon = ""}
	self.datas[2] = {ID = 2, name = "魔币", desc = "打怪消耗的货币", type = 1, quality = 1, icon = ""}
	self.datas[3] = {ID = 3, name = "魔导石", desc = "可用于积分商城兑换", type = 1, quality = 1, icon = ""}
	self.datas[4] = {ID = 4, name = "魔法石", desc = "用于解锁魔法阵等级", type = 2, quality = 3, icon = ""}
	self.datas[5] = {ID = 5, name = "普通经验", desc = "获得10点经验", type = 2, quality = 2, icon = ""}
	self.datas[6] = {ID = 6, name = "精英经验", desc = "获得20点经验", type = 2, quality = 3, icon = ""}
	self.datas[7] = {ID = 7, name = "挑战券", desc = "用于挑战闯关模式", type = 2, quality = 3, icon = ""}
	self.datas[8] = {ID = 8, name = "随机强化石", desc = "获得后会随机获得1个强化石", type = 3, quality = 3, icon = ""}
	self.datas[9] = {ID = 9, name = "头盔强化石", desc = "升级头盔材料", type = 4, quality = 3, icon = ""}
	self.datas[10] = {ID = 10, name = "铠甲强化石", desc = "升级头盔材料", type = 4, quality = 3, icon = ""}
	self.datas[11] = {ID = 11, name = "首饰强化石", desc = "升级头盔材料", type = 4, quality = 3, icon = ""}
	self.datas[12] = {ID = 12, name = "护手强化石", desc = "升级头盔材料", type = 4, quality = 3, icon = ""}
	self.datas[13] = {ID = 13, name = "鞋子强化石", desc = "升级头盔材料", type = 4, quality = 3, icon = ""}
	self.datas[14] = {ID = 14, name = "传说英雄1", desc = "", type = 2, quality = 4, icon = ""}
	self.datas[15] = {ID = 15, name = "传说英雄2", desc = "", type = 2, quality = 4, icon = ""}
	self.datas[16] = {ID = 16, name = "传说英雄3", desc = "", type = 2, quality = 4, icon = ""}
	self.datas[17] = {ID = 17, name = "传说英雄4", desc = "", type = 2, quality = 4, icon = ""}
	self.datas[18] = {ID = 18, name = "功勋", desc = "龙王秘宝活动功勋", type = 1, quality = 4, icon = ""}
end

M_item:init()
