Factory Integration, NPC improvements. #19 & #31.

This commit is contained in:
simon
2017-12-24 14:26:19 -05:00
parent 4f1342593f
commit 2e9248ea2e
17 changed files with 334 additions and 112 deletions

View File

@@ -98,7 +98,7 @@ public class Cubot extends GameObject implements Updatable, ControllableUnit {
public static Cubot deserialize(JSONObject json) {
Cubot cubot = new Cubot();
cubot.setObjectId((int) (long) json.get("i"));
cubot.setObjectId((long) json.get("i"));
cubot.setX((int) (long) json.get("x"));
cubot.setY((int) (long) json.get("y"));
cubot.hp = (int) (long) json.get("hp");