|  |  |  | 
|---|
|  |  |  | def CopyPlayerFuncAttr(curPlayer): | 
|---|
|  |  |  | for i in xrange(len(ObjProperty_AttrByIndex)): | 
|---|
|  |  |  | # Get | 
|---|
|  |  |  | if i+1 in [ChConfig.TYPE_Calc_AttrHP, ChConfig.TYPE_Calc_AttrMP]: | 
|---|
|  |  |  | if i+1 in [ChConfig.TYPE_Calc_AttrHP, ChConfig.TYPE_Calc_AttrMP, ChConfig.TYPE_Calc_ProDef]: | 
|---|
|  |  |  | continue | 
|---|
|  |  |  | value = ObjProperty_AttrByIndex[i][0](curPlayer) | 
|---|
|  |  |  | if value == 0 and curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_CopyFuncAttr%i) == 0: | 
|---|
|  |  |  | 
|---|
|  |  |  | # 恢复缓存功能属性的刷新结果,用于BUFF属性单独刷新 | 
|---|
|  |  |  | def RestorePlayerFuncAttr(curPlayer): | 
|---|
|  |  |  | for i in xrange(len(ObjProperty_AttrByIndex)): | 
|---|
|  |  |  | if i+1 in [ChConfig.TYPE_Calc_AttrHP, ChConfig.TYPE_Calc_AttrMP]: | 
|---|
|  |  |  | if i+1 in [ChConfig.TYPE_Calc_AttrHP, ChConfig.TYPE_Calc_AttrMP, ChConfig.TYPE_Calc_ProDef]: | 
|---|
|  |  |  | continue | 
|---|
|  |  |  | ObjProperty_AttrByIndex[i][1](curPlayer, | 
|---|
|  |  |  | curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_CopyFuncAttr%i)) | 
|---|