Skip to content

Commit 7b33113

Browse files
committed
Finished implementing resource payout (tests pending) and added a new sprite sheet with updated images
1 parent f8a310b commit 7b33113

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
1020 KB
Binary file not shown.

src/GameBoard.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,5 +633,11 @@ void GameBoard::enableRobber()
633633
*/
634634
void GameBoard::payoutResources(int roll)
635635
{
636-
636+
for (auto& it : resources)
637+
{
638+
if (it.second->getDiceValue() == roll)
639+
{
640+
it.second->Payout();
641+
}
642+
}
637643
}

0 commit comments

Comments
 (0)