怪物战力
parent
2fc51f01c8
commit
8b8a89cd73
|
@ -84,14 +84,17 @@ public class MonsterUtil {
|
|||
}
|
||||
SMonsterGroup sMonsterGroup = integerSMonsterGroupMap.get(groupIds[i]);
|
||||
int[][] contents = sMonsterGroup.getContents();
|
||||
int monsterCount = 0;
|
||||
int totalMonsterForce = 0;
|
||||
for(int j = 0; j<contents.length;j++){
|
||||
for(int k = 0;k<contents[j].length;k++){
|
||||
SMonsterConfig monster = integerSMonsterConfigMap.get(contents[j][k]);
|
||||
int monsterForce = (int)(monster.getAttack()*3+monster.getHp()*0.32+monster.getPhysicalDefence()*0.8+monster.getMagicDefence()*0.8);
|
||||
int monsterForce = (int)(monster.getAttack()*5+monster.getHp()*1+monster.getPhysicalDefence()*1.5+monster.getMagicDefence()*1.5);
|
||||
monsterCount++;
|
||||
totalMonsterForce+=monsterForce;
|
||||
}
|
||||
}
|
||||
totalMonsterForce = (int)(totalMonsterForce*(1.1-0.1*monsterCount));
|
||||
if(totalMonsterForce>maxForce){
|
||||
maxForce = totalMonsterForce;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue