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

@@ -61,7 +61,7 @@ public class BiomassBlob extends GameObject implements InventoryHolder {
BiomassBlob biomassBlob = new BiomassBlob();
biomassBlob.setObjectId((int) (long) json.get("i"));
biomassBlob.setObjectId((long) json.get("i"));
biomassBlob.setX((int) (long) json.get("x"));
biomassBlob.setY((int) (long) json.get("y"));
// biomassBlob.style = (int) (long) json.get("style");

View File

@@ -15,8 +15,6 @@ public class WorldUtils {
*/
public static ArrayList<BiomassBlob> generateBlobs(World world, int minCount, int maxCount, int yield) {
System.out.println("Generating blobs...");
Random random = new Random();
int blobCount = random.nextInt(maxCount - minCount) + minCount;
ArrayList<BiomassBlob> biomassBlobs = new ArrayList<>(maxCount);