| | |
| | | propertyVariables["bookPer"] = GetBookPer(attrType) / 10000.0f; |
| | | propertyVariables["realmValue"] = officialAttrs.ContainsKey(attrType) ? officialAttrs[attrType] : 0; |
| | | propertyVariables["realmPer"] = GetOfficialPer(attrType) / 10000.0f; |
| | | propertyVariables["gubaoValue"] = 0; |
| | | propertyVariables["gubaoPer"] = 0; |
| | | propertyVariables["hjgValue"] = 0; |
| | | propertyVariables["hjgPer"] = 0; |
| | | |
| | | //!!!单武将战力预览的话需要排除队伍影响战力,只算武将自身的上阵属性 |
| | | propertyVariables["lineupInitAddPer"] = GetLineUpPer(attrType, "lineupInitAddPer") / 10000.0f; |
| | |
| | | var index = team.GetEmptyPosition(); |
| | | if (index < 0) |
| | | { |
| | | team.AddHero(heroInfo, 5); |
| | | team.AddHero(heroInfo, 5, false); |
| | | } |
| | | else |
| | | { |
| | | team.AddHero(heroInfo, index); |
| | | team.AddHero(heroInfo, index, false); |
| | | } |
| | | } |
| | | |