| | |
| | | # 特权效果类型
|
| | | GubaoPowerType_TravelMultiRate = 1 # 游历双倍奖励概率
|
| | | GubaoPowerType_InvestMonthAwardPer = 2 # 月卡领取额外奖励
|
| | | GubaoPowerType_InvestLifeAwardPer = 3 # 永久卡领取额外奖励
|
| | |
|
| | | def GetGubaoInfo(curPlayer, gubaoID):
|
| | | info = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_GubaoInfo % gubaoID)
|
| | |
| | | # 特殊属性
|
| | | attrID = ipyData.GetSpecAttrID()
|
| | | if attrID:
|
| | | #effType = ipyData.GetSpecEffType()
|
| | | effType = ipyData.GetSpecEffType()
|
| | | layerMax = ipyData.GetSpecEffLayerMax()
|
| | | SpecAttrValue = ipyData.GetSpecAttrValue()
|
| | | SpecAttrPerStarAdd = ipyData.GetSpecAttrPerStarAdd()
|
| | |
| | | for sIndex in range(min(len(specAttrIDList), len(specAttrValueList))):
|
| | | if specAttrIDList[sIndex] == attrID:
|
| | | specLVAttr = specAttrValueList[sIndex]
|
| | | if not layerMax:
|
| | | if not layerMax or not effType:
|
| | | layer, layerMax = 1, 1 # 无层级限制的默认1层
|
| | | attrValue = int((SpecAttrValue + SpecAttrPerStarAdd * star + specLVAttr / float(layerMax)) * layer)
|
| | | attrDict[attrID] = attrDict.get(attrID, 0) + attrValue
|