属性bug
parent
1ec26b5c8b
commit
333446f2eb
|
@ -767,7 +767,7 @@ public class HeroLogic {
|
||||||
private void combinedAttribute(int[][] otherAttriMap,Map<Integer,Integer> heroAttributeMap){
|
private void combinedAttribute(int[][] otherAttriMap,Map<Integer,Integer> heroAttributeMap){
|
||||||
for(int[] item : otherAttriMap){
|
for(int[] item : otherAttriMap){
|
||||||
int propertyId = item[0];
|
int propertyId = item[0];
|
||||||
int propertyValue = item[0];
|
int propertyValue = item[1];
|
||||||
if(heroAttributeMap.containsKey(propertyId)){
|
if(heroAttributeMap.containsKey(propertyId)){
|
||||||
propertyValue += heroAttributeMap.get(propertyId);
|
propertyValue += heroAttributeMap.get(propertyId);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue