fix
This commit is contained in:
parent
0c79ef9b7e
commit
8fb4e83115
|
|
@ -55,7 +55,8 @@ public class Spiel {
|
|||
}
|
||||
for (Spieler s : ballteam.spieler) {
|
||||
double d = s.geschwindigkeit;
|
||||
if(s.hasBall()) d-=1;
|
||||
if (s.hasBall())
|
||||
d -= 1;
|
||||
s.p.moveTo(nichtballteam.torwart.p, d);
|
||||
System.out.println(s.getname() + " läuft!");
|
||||
}
|
||||
|
|
@ -90,11 +91,9 @@ public class Spiel {
|
|||
g.takeBall(s);
|
||||
s.motivation -= 20;
|
||||
ballWechsel();
|
||||
}
|
||||
if (rng < 90) {
|
||||
} else if (rng < 90) {
|
||||
|
||||
}
|
||||
if (rng < 101) {
|
||||
} else if (rng < 101) {
|
||||
Spieler t = null;
|
||||
double d = 200;
|
||||
for (Spieler temp : ballteam.spieler) {
|
||||
|
|
@ -234,5 +233,4 @@ public class Spiel {
|
|||
return r;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue