This commit is contained in:
Pan 2019-05-08 16:51:43 +12:00
parent 473c363586
commit 3d29261deb
3 changed files with 5 additions and 3 deletions

View File

@ -238,7 +238,7 @@ public class defenseManagerAI {
float x1 = playerStructures[i].centre.x;
float z1 = playerStructures[i].centre.z;
for(int j = 0; j < constructionYards.length; j++) {
if(constructionYards[j] != null && constructionYards[i].teamNo != 0 && constructionYards[j].currentHP > 0) {
if(constructionYards[j] != null && constructionYards[j].teamNo != 0 && constructionYards[j].currentHP > 0) {
float x2 = constructionYards[j].centre.x;
float z2 = constructionYards[j].centre.z;
double d = Math.sqrt((x1-x2)*(x1-x2) + (z1-z2)*(z1-z2));

View File

@ -1037,6 +1037,8 @@ public class rocketTank extends solidObject{
if(targetObject.type > 100){
multiplier = damageMultiplier;
multiplier*=damageAginstBuildingMulitplier;
}else if(targetObject.type == 6) {
multiplier = 0.7f;
}
if(attackCoolDown == 0 && targetObject.currentHP >0 ){

View File

@ -50,8 +50,8 @@ public class MiniMap {
drawBackground(screen, minimapBitmap);
//remove fog of war for testing
for(int i = 0; i < minimapBitmap.length; i++)
minimapBitmap[i] = true;
//for(int i = 0; i < minimapBitmap.length; i++)
// minimapBitmap[i] = true;
//draw unit positions on minimap
drawUnit(screen, minimapBitmap, unitsForMiniMap, unitsForMiniMapCount);