From 3d29261deb7c610740f738013e8d02ce20992964 Mon Sep 17 00:00:00 2001 From: Pan Date: Wed, 8 May 2019 16:51:43 +1200 Subject: [PATCH] h --- enemyAI/defenseManagerAI.java | 2 +- entity/rocketTank.java | 2 ++ gui/MiniMap.java | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/enemyAI/defenseManagerAI.java b/enemyAI/defenseManagerAI.java index 1101508..25910a9 100644 --- a/enemyAI/defenseManagerAI.java +++ b/enemyAI/defenseManagerAI.java @@ -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)); diff --git a/entity/rocketTank.java b/entity/rocketTank.java index c8e6b8a..615ebc2 100644 --- a/entity/rocketTank.java +++ b/entity/rocketTank.java @@ -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 ){ diff --git a/gui/MiniMap.java b/gui/MiniMap.java index bf07395..3e0faf8 100644 --- a/gui/MiniMap.java +++ b/gui/MiniMap.java @@ -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);