diff --git a/leekscript b/leekscript index 22357e6..e4f5fcb 160000 --- a/leekscript +++ b/leekscript @@ -1 +1 @@ -Subproject commit 22357e6f72900b3676b3a62cf9633eb7d43e8ca7 +Subproject commit e4f5fcbdc4626be1b1d6522c920e74b7f25e3d35 diff --git a/src/main/java/com/leekwars/generator/FightFunctions.java b/src/main/java/com/leekwars/generator/FightFunctions.java index d30bebf..4a81611 100644 --- a/src/main/java/com/leekwars/generator/FightFunctions.java +++ b/src/main/java/com/leekwars/generator/FightFunctions.java @@ -268,7 +268,7 @@ public class FightFunctions { new CallableVersion(Type.ARRAY_INT_OR_NULL, new Type[] { Type.INT, Type.INT_OR_NULL }), new CallableVersion(Type.ARRAY_INT_OR_NULL, new Type[] { Type.INT }), }); - method("getAllWeapons", "Weapon", 200, true, Type.ARRAY, new Type[0]); + method("getAllWeapons", "Weapon", 200, true, Type.ARRAY_INT, new Type[0]); /** * Chip @@ -309,7 +309,7 @@ public class FightFunctions { new CallableVersion(Type.ARRAY_INT_OR_NULL, new Type[] { Type.INT, Type.INT, Type.INT_OR_NULL }), new CallableVersion(Type.ARRAY_INT_OR_NULL, new Type[] { Type.INT, Type.INT }), }); - method("getAllChips", "Chip", 200, true, Type.ARRAY, new Type[0]); + method("getAllChips", "Chip", 200, true, Type.ARRAY_INT, new Type[0]); /** * Field @@ -339,7 +339,7 @@ public class FightFunctions { new CallableVersion(Type.BOOL_OR_NULL, new Type[] { Type.INT, Type.INT, Type.compound(Type.ARRAY_INT, Type.INT, Type.NULL) }), new CallableVersion(Type.BOOL_OR_NULL, new Type[] { Type.INT, Type.INT }), }); - method("getObstacles", "Field", 85, true, Type.ARRAY, new Type[0]); + method("getObstacles", "Field", 85, true, Type.ARRAY_INT, new Type[0]); method("getMapType", "Field", 5, true, Type.INT, new Type[0]); /** @@ -502,7 +502,7 @@ public class FightFunctions { new CallableVersion(Type.BOOL, new Type[] { Type.INT }), }); method("pause", "Util", 30, true, Type.VOID, new Type[0]); - method("getRegisters", "Util", 25, true, Type.ARRAY, new Type[0]); + method("getRegisters", "Util", 25, true, Type.MAP_STRING_STRING, new Type[0]); method("getRegister", "Util", 15, true, Type.STRING_OR_NULL, new Type[] { Type.STRING }); method("setRegister", "Util", 50, true, Type.VOID, new Type[] { Type.STRING, Type.ANY }); method("deleteRegister", "Util", 16, true, Type.VOID, new Type[] { Type.STRING });