From 842fd003228cb028ea002aab3277d8d1181d1a8a Mon Sep 17 00:00:00 2001 From: Cekis Date: Fri, 1 Apr 2016 16:49:46 +0100 Subject: [PATCH] Fixed bad droid naming routine. --- .../compiled/game/script/creature/droid_setup.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sku.0/sys.server/compiled/game/script/creature/droid_setup.java b/sku.0/sys.server/compiled/game/script/creature/droid_setup.java index 7a9be1a38..b3c5140ef 100755 --- a/sku.0/sys.server/compiled/game/script/creature/droid_setup.java +++ b/sku.0/sys.server/compiled/game/script/creature/droid_setup.java @@ -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 {