diff --git a/src/main/java/uulm/teamname/marvelous/gamelibrary/gamelogic/GameLogic.java b/src/main/java/uulm/teamname/marvelous/gamelibrary/gamelogic/GameLogic.java index f111a5b..f3e6b36 100644 --- a/src/main/java/uulm/teamname/marvelous/gamelibrary/gamelogic/GameLogic.java +++ b/src/main/java/uulm/teamname/marvelous/gamelibrary/gamelogic/GameLogic.java @@ -849,28 +849,7 @@ class GameLogic { public static ArrayList handleThanos(GameState state, NPC thanos) { ArrayList result = new ArrayList<>(); - if(thanos.inventory.getFreeSlots() > 0) { - IntVector2 picked = null; - float lowestDistance = Integer.MAX_VALUE; - for(int x = 0; x < state.mapSize.getX(); x++) { - for(int y = 0; y < state.mapSize.getY(); y++) { - IntVector2 pos = new IntVector2(x, y); - for(Entity e: state.entities.findByPosition(pos)) { - if(e instanceof InfinityStone || (e instanceof Character && ((Character)e).inventory.getSize() > 0)) { - float distance = thanos.getPosition().distanceChebyshev(pos); - if(distance < lowestDistance) { - picked = pos; - lowestDistance = distance; - break; - } - } - } - } - } - // - - } return result; }