custom races
This commit is contained in:
@@ -43,8 +43,8 @@ public class CityZoneMsg extends ClientNetMsg {
|
||||
this.locY = locY;
|
||||
this.locZ = locZ;
|
||||
this.name = name;
|
||||
this.radiusX = Enum.CityBoundsType.GRID.extents;
|
||||
this.radiusZ = Enum.CityBoundsType.GRID.extents;
|
||||
this.radiusX = Enum.CityBoundsType.ZONE.extents;
|
||||
this.radiusZ = Enum.CityBoundsType.ZONE.extents;
|
||||
this.unknown01 = 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import engine.net.ByteBufferReader;
|
||||
import engine.net.ByteBufferWriter;
|
||||
import engine.net.client.Protocol;
|
||||
import engine.net.client.msg.ClientNetMsg;
|
||||
import engine.objects.Race;
|
||||
|
||||
public class CommitNewCharacterMsg extends ClientNetMsg {
|
||||
|
||||
@@ -175,7 +176,7 @@ public class CommitNewCharacterMsg extends ClientNetMsg {
|
||||
|
||||
public int getRace() {
|
||||
for (int i = 0; i < 23; i++)
|
||||
if (this.runes[i] > 1999 && this.runes[i] < 2030)
|
||||
if(Race.getRace(this.runes[i]) != null)
|
||||
return this.runes[i];
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user