Skip to content

Commit

Permalink
fixed recipes and added a logRobber
Browse files Browse the repository at this point in the history
  • Loading branch information
andsam0 committed Feb 17, 2024
1 parent 3612fa0 commit e6eeeac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/it/unibo/common/Recipes.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static Map<ResourceType, Integer> getRoadResources() {
* card
*/
public static Map<ResourceType, Integer> getCardResources() {
return Map.of(ResourceType.LUMBER, 1, ResourceType.WOOL, 1, ResourceType.GRAIN, 1);
return Map.of(ResourceType.ORE, 1, ResourceType.WOOL, 1, ResourceType.GRAIN, 1);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ public void buyCard() {
checkGameOver();
if (card.equals(CardType.KNIGHT)) {
mustPlaceRobber = true;
logRobber();
}
redrawResourcesView();
this.appView.redrawPlayers();
Expand Down

0 comments on commit e6eeeac

Please sign in to comment.