战力修改
parent
cd199adfe1
commit
8c06c9fed2
|
@ -100,12 +100,13 @@ public class MonsterUtil {
|
|||
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()*5+(monster.getAttack()*20<monster.getHp()?monster.getAttack()*20:monster.getHp()*0.8)+monster.getPhysicalDefence()*1.5+monster.getMagicDefence()*1.5);
|
||||
int monsterForce = (int)(monster.getAttack()*5+(monster.getAttack()*20<monster.getHp()?monster.getAttack()*20:monster.getHp())+monster.getPhysicalDefence()*1.5+monster.getMagicDefence()*1.5);
|
||||
monsterCount++;
|
||||
totalMonsterForce+=monsterForce;
|
||||
}
|
||||
}
|
||||
totalMonsterForce = (int)(totalMonsterForce*((1.1-0.1*monsterCount)>0.8?(1.1-0.1*monsterCount):0.8));
|
||||
totalMonsterForce = (int)(totalMonsterForce*((1.05-0.05*monsterCount)>1?(1.05-0.05*monsterCount):1));
|
||||
|
||||
if(totalMonsterForce>maxForce){
|
||||
maxForce = totalMonsterForce;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue