Skip to content

Commit 94dd30f

Browse files
authored
Merge pull request #95 from battlecode/master
Cheese visualization
2 parents e1f6c7d + 576e83f commit 94dd30f

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

engine/src/main/battlecode/world/RobotControllerImpl.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,10 @@ public void pickUpCheese(MapLocation loc, int pickUpAmount) throws GameActionExc
513513
this.gameWorld.addCheese(loc, -pickUpAmount);
514514
this.robot.addCheese(pickUpAmount);
515515
this.gameWorld.getMatchMaker().addCheesePickUpAction(loc);
516+
517+
if (this.gameWorld.getCheeseAmount(loc) > 0)
518+
this.gameWorld.getMatchMaker().addCheeseSpawnAction(loc, this.gameWorld.getCheeseAmount(loc));
519+
516520
this.gameWorld.getTeamInfo().addCheeseCollected(getTeam(), pickUpAmount);
517521

518522
if (getType() == UnitType.RAT_KING) {

specs/specs.pdf

1.61 KB
Binary file not shown.

0 commit comments

Comments
 (0)