use mapid to decide starting hue for rainbow objects, also use mapid instead of title for direction etc

This commit is contained in:
yugecin
2016-10-01 15:10:20 +02:00
parent 3a507453f9
commit e08d5f2a83
4 changed files with 12 additions and 12 deletions

View File

@@ -76,8 +76,8 @@ public enum CursorColorOverrides {
this.nr = nr;
}
public static void reset(String mapname) {
hue = mapname.hashCode() % 360;
public static void reset(int mapID) {
hue = mapID % 360;
}
@Override

View File

@@ -59,8 +59,8 @@ public enum MoverDirection {
this.nr = nr;
}
public static void reset(String mapName) {
rand = new Random(mapName.hashCode());
public static void reset(int mapID) {
rand = new Random(mapID);
}
public abstract int getDirection(int currentDirection);

View File

@@ -78,8 +78,8 @@ public enum ObjectColorOverrides {
this.nr = nr;
}
public static void reset(String mapname) {
hue = mapname.hashCode() % 360;
public static void reset(int mapID) {
hue = mapID % 360;
}
@Override