Fixed bad droid naming routine.

This commit is contained in:
Cekis
2016-04-01 16:49:46 +01:00
parent bb1a5719ab
commit 842fd00322
@@ -55,9 +55,10 @@ public class droid_setup extends script.base_script
}
}
}
public String getLetter() throws InterruptedException
public char getLetter() throws InterruptedException
{
return "" + ((int)'A' + Math.random() * ((int)'Z' - (int)'A' + 1));
String abc = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
return abc.charAt(rand(0, abc.length() - 1));
}
public void setDroidHue(obj_id self) throws InterruptedException
{