local K=require("\109\111\115\101\115")local r=require("\115\117\112\112\111\114\116\046\102\097\099\116\111\114\121")local A=LoadKeyValues("\115\099\114\105\112\116\115\047\110\112\099\047\105\116\101\109\115\046\116\120\116")r.define("\100\111\116\097\095\105\116\101\109",function(r)return CDOTA_Item(K.extend({},A[r.name]or{},r))end)
local m = require("moses")
local Factory = require("support.factory")

local KEY_VALUES = LoadKeyValues("scripts/npc/items.txt")

Factory.define("dota_item", function(attributes)
  return CDOTA_Item(m.extend({}, KEY_VALUES[attributes.name] or {}, attributes))
end)
