1function CommonFun.calProfessionPropValue(joblv, job, attr)
2 if GameConfig.AttrRatio[job] == nil then
3 return 0
4 end
5 if GameConfig.AttrValue[job] == nil then
6 return 0
7 end
8 if GameConfig.Attr220Value[job] == nil then
9 return 0
10 end
11 if joblv <= 170 then
12 return math.floor((joblv - 10) / 160 * (GameConfig.AttrRatio[job][attr] - 0.5) + 0.5) + 1
13 elseif 170 < joblv and joblv <= 200 then
14 return GameConfig.AttrRatio[job][attr] + math.floor((joblv - 170) / 30 * GameConfig.AttrValue[job][attr]) + 1
15 elseif 200 < joblv and joblv <= 220 then
16 return GameConfig.AttrRatio[job][attr] + GameConfig.AttrValue[job][attr] + math.floor((joblv - 200) / 20 * GameConfig.Attr220Value[job][attr]) + 1
17 elseif 220 < joblv then
18 return GameConfig.AttrRatio[job][attr] + GameConfig.AttrValue[job][attr] + GameConfig.Attr220Value[job][attr] + 1
19 end
20end