removing commented-out for loop
This commit is contained in:
parent
740ac21fec
commit
e86754efcb
1 changed files with 0 additions and 32 deletions
|
@ -83,38 +83,6 @@ public class RandomTPModule{
|
||||||
if(!eastUsed) directions.add("east");
|
if(!eastUsed) directions.add("east");
|
||||||
dir = directions.get((int) Math.floor(Math.random() * directions.size()));
|
dir = directions.get((int) Math.floor(Math.random() * directions.size()));
|
||||||
|
|
||||||
/*
|
|
||||||
for(int i = 0; i < 1000; i++){
|
|
||||||
double randomDirection = Math.random();
|
|
||||||
if (randomDirection < 0.25){
|
|
||||||
if(!northUsed){
|
|
||||||
northUsed = true;
|
|
||||||
dir = "north";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}else if(randomDirection < 0.50){
|
|
||||||
if(!eastUsed){
|
|
||||||
eastUsed = true;
|
|
||||||
dir = "east";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}else if(randomDirection < 0.75){
|
|
||||||
if(!southUsed){
|
|
||||||
southUsed = true;
|
|
||||||
dir = "south";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
if(!westUsed){
|
|
||||||
westUsed = true;
|
|
||||||
dir = "west";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
|
|
||||||
|
|
||||||
//TELEPORT - teleports player to the conflict point
|
//TELEPORT - teleports player to the conflict point
|
||||||
switch(dir){
|
switch(dir){
|
||||||
case "north":
|
case "north":
|
||||||
|
|
Loading…
Reference in a new issue