Formula

CommonFun.calcEndlessTowerNpcAttrValue

function CommonFun.calcEndlessTowerNpcAttrValue(attr, Type, classtype, Layer)
  local result = {}
  if Type == 3 then
    result = CommonFun.calcTowerMonsterNpcAttrValue(attr, Type, classtype, Layer)
  elseif Type == 4 then
    result = CommonFun.calcTowerMiniNpcAttrValue(attr, Type, classtype, Layer)
  elseif Type == 5 then
    result = CommonFun.calcTowerMvpNpcAttrValue(attr, Type, classtype, Layer)
  elseif Type == 6 then
    result = CommonFun.calcTowerSmallMiniNpcAttrValue(attr, Type, classtype, Layer)
  end
  for k, v in pairs(result) do
    result[k] = math.floor(v * 1000) / 1000
  end
  return result
end