lolz
This commit is contained in:
parent
6a62be8883
commit
14fcd78931
1 changed files with 3 additions and 3 deletions
|
|
@ -35,12 +35,12 @@ public class BomberWeapon extends Weapon{
|
|||
public void update() {
|
||||
|
||||
if(!hit) {
|
||||
for(int i=position.getX()-1; i<position.getX()+1; i++ ) {
|
||||
for(int j=position.getY()-1; j<position.getY()+1; j++) {
|
||||
for(int i=position.getX()-1; i<=position.getX()+1; i++ ) {
|
||||
for(int j=position.getY(); j<=position.getY()+2; j++) {
|
||||
System.out.println("i :"+i+" j: "+j);
|
||||
if(InGameState.getMap().posExist(i, j)&& !InGameState.getMap().isPosEmpty(i, j)) {
|
||||
System.out.println("Damaged");
|
||||
InGameState.getMap().getPos(i, j).damaged(getDamage());
|
||||
InGameState.getMap().getPos(i, j).damaged(getDamage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue