Commit 108ae5b3 authored by nargessalehi98's avatar nargessalehi98

Update applyPrize method.

parent 1f8d4799
...@@ -137,11 +137,11 @@ public class Tank { ...@@ -137,11 +137,11 @@ public class Tank {
prize="empty"; prize="empty";
} }
if (prize.equals("shield")) { if (prize.equals("shield")) {
if (shieldCounter < 150) { if (shieldCounter < 450) {
bulletEffect = true; bulletEffect = true;
shieldCounter++; shieldCounter++;
} else { } else {
shieldCounter = 160; shieldCounter = 0;
bulletEffect = false; bulletEffect = false;
prize="empty"; prize="empty";
} }
...@@ -156,7 +156,7 @@ public class Tank { ...@@ -156,7 +156,7 @@ public class Tank {
} }
if (prize.equals("laser")) { if (prize.equals("laser")) {
Controller.laser = laser; Controller.laser = laser;
if (laserCounter < 120) { if (laserCounter < 90) {
laser = true; laser = true;
Controller.laser = true; Controller.laser = true;
Controller.bulletSpeed = 9; Controller.bulletSpeed = 9;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment