Skip to content

Commit

Permalink
Merge branch 'main' of github.com:battlecode/battlecode22 into main
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav-arya committed Jan 3, 2022
2 parents 056dfdf + 65fc1c5 commit a5b0c06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/src/main/battlecode/world/RobotControllerImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ public void mineLead(MapLocation loc) throws GameActionException {
this.gameWorld.setLead(loc, this.gameWorld.getLead(loc) - 1);
this.gameWorld.getTeamInfo().addLead(getTeam(), 1);
this.gameWorld.getMatchMaker().addAction(getID(), Action.MINE_LEAD, locationToInt(loc));
this.gameWorld.getMatchMaker().addLeadDrop(robot.getLocation(), -1);
this.gameWorld.getMatchMaker().addLeadDrop(loc, -1);
}

private void assertCanMineGold(MapLocation loc) throws GameActionException {
Expand Down Expand Up @@ -639,7 +639,7 @@ public void mineGold(MapLocation loc) throws GameActionException {
this.gameWorld.setGold(loc, this.gameWorld.getGold(loc) - 1);
this.gameWorld.getTeamInfo().addGold(getTeam(), 1);
this.gameWorld.getMatchMaker().addAction(getID(), Action.MINE_GOLD, locationToInt(loc));
this.gameWorld.getMatchMaker().addGoldDrop(robot.getLocation(), -1);
this.gameWorld.getMatchMaker().addGoldDrop(loc, -1);
}

// *************************
Expand Down

0 comments on commit a5b0c06

Please sign in to comment.