diff --git a/engine/src/main/battlecode/common/RobotInfo.java b/engine/src/main/battlecode/common/RobotInfo.java index 39a056f6..df1d1c8d 100644 --- a/engine/src/main/battlecode/common/RobotInfo.java +++ b/engine/src/main/battlecode/common/RobotInfo.java @@ -42,14 +42,14 @@ public class RobotInfo { */ public final RobotInfo carryingRobot; - public RobotInfo(int ID, Team team, UnitType type, int health, MapLocation location, int paintAmount, RobotInfo carryingRobot, boolean crouching) { + public RobotInfo(int ID, Team team, UnitType type, int health, MapLocation location, RobotInfo carryingRobot, boolean crouching) { super(); this.ID = ID; this.team = team; this.type = type; this.health = health; this.location = location; - this.crouching = type.isRatType() && crouching; + this.crouching = type.isCatType() && crouching; this.carryingRobot = carryingRobot; } diff --git a/engine/src/main/battlecode/world/InternalRobot.java b/engine/src/main/battlecode/world/InternalRobot.java index 370d5d7b..8334cbfa 100644 --- a/engine/src/main/battlecode/world/InternalRobot.java +++ b/engine/src/main/battlecode/world/InternalRobot.java @@ -212,12 +212,13 @@ public RobotInfo getRobotInfo() { && cachedRobotInfo.ID == ID && cachedRobotInfo.team == team && cachedRobotInfo.health == health - && cachedRobotInfo.paintAmount == paintAmount + && cachedRobotInfo.crouching == crouching && cachedRobotInfo.location.equals(location)) { return cachedRobotInfo; } - this.cachedRobotInfo = new RobotInfo(ID, team, type, health, location, paintAmount, carryingRobot != null ? carryingRobot.getRobotInfo() : null); + this.cachedRobotInfo = new RobotInfo(ID, team, type, health, location, carryingRobot != null ? + carryingRobot.getRobotInfo() : null, crouching); return this.cachedRobotInfo; } diff --git a/engine/src/main/battlecode/world/MapBuilder.java b/engine/src/main/battlecode/world/MapBuilder.java index 0584e936..23a90010 100644 --- a/engine/src/main/battlecode/world/MapBuilder.java +++ b/engine/src/main/battlecode/world/MapBuilder.java @@ -97,7 +97,7 @@ public void addTower(int id, Team team, MapLocation loc) { UnitType.LEVEL_ONE_PAINT_TOWER, UnitType.LEVEL_ONE_PAINT_TOWER.health, loc, - 500 + false )); }