Fix #78 -- provide chat message info on monopoly and YoP being played
Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
This commit is contained in:
parent
96723e135c
commit
1345e1a658
@ -2135,7 +2135,8 @@ router.put("/:id/:action/:value?", async (req, res) => {
|
||||
}
|
||||
|
||||
if (gave.length) {
|
||||
addChatMessage(game, session, `Players ${gave.join(', ')}. In total, ${session.name} received ${total} ${type}.`);
|
||||
addChatMessage(game, session, `${session.name} player Monopoly and selected ${display.join(', ')}. ` +
|
||||
`Players ${gave.join(', ')}. In total, they received ${total} ${type}.`);
|
||||
} else {
|
||||
addActivity(game, session, 'No players had that resource. Wa-waaaa.');
|
||||
}
|
||||
@ -2145,7 +2146,8 @@ router.put("/:id/:action/:value?", async (req, res) => {
|
||||
cards.forEach(type => {
|
||||
session.player[type]++;
|
||||
});
|
||||
addChatMessage(game, session, `${session.name} received ${display.join(', ')} from the bank.`);
|
||||
addChatMessage(game, session, `${session.name} player Year of Plenty.` +
|
||||
`They chose to receive ${display.join(', ')} from the bank.`);
|
||||
break;
|
||||
}
|
||||
delete game.turn.active;
|
||||
|
Loading…
x
Reference in New Issue
Block a user