Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions engine/src/main/battlecode/world/RobotControllerImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,10 @@ public void pickUpCheese(MapLocation loc, int pickUpAmount) throws GameActionExc
this.gameWorld.addCheese(loc, -pickUpAmount);
this.robot.addCheese(pickUpAmount);
this.gameWorld.getMatchMaker().addCheesePickUpAction(loc);

if (this.gameWorld.getCheeseAmount(loc) > 0)
this.gameWorld.getMatchMaker().addCheeseSpawnAction(loc, this.gameWorld.getCheeseAmount(loc));

this.gameWorld.getTeamInfo().addCheeseCollected(getTeam(), pickUpAmount);

if (getType() == UnitType.RAT_KING) {
Expand Down
Binary file modified specs/specs.pdf
Binary file not shown.