Provide chat info on receiving cards for Road Building, etc.
Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
This commit is contained in:
parent
e3ccc122dd
commit
d517c8793a
@ -1858,7 +1858,7 @@ router.put("/:id/:action/:value?", async (req, res) => {
|
||||
|
||||
debugChat(game, 'Before development purchase');
|
||||
addActivity(game, session, `${session.name} purchased a development card.`);
|
||||
addChatMessage(game, session, `${session.name} spent 1 stone, 1 wheat, and 1 sheep to purchase a development card.`)
|
||||
addChatMessage(game, session, `${session.name} spent 1 stone, 1 wheat, 1 sheep to purchase a development card.`)
|
||||
player.stone--;
|
||||
player.wheat--;
|
||||
player.sheep--;
|
||||
@ -1924,6 +1924,7 @@ router.put("/:id/:action/:value?", async (req, res) => {
|
||||
case 'road-1':
|
||||
case 'road-2':
|
||||
addActivity(game, session, `${session.name} played a Road Building card. The server is giving them 2 brick and 2 wood to build those roads!`);
|
||||
addChatMessage(game, session, `${server.name} received 2 wood, 2 brick from the bank.`);
|
||||
player.brick += 2;
|
||||
player.wood += 2;
|
||||
break;
|
||||
@ -2120,7 +2121,7 @@ router.put("/:id/:action/:value?", async (req, res) => {
|
||||
player.settlements--;
|
||||
|
||||
if (!game.turn.free) {
|
||||
addChatMessage(game, session, `${session.name} spent 1 brick, 1 wood, 1 sheep, and 1 wheat to purchase a settlement.`)
|
||||
addChatMessage(game, session, `${session.name} spent 1 brick, 1 wood, 1 sheep, 1 wheat to purchase a settlement.`)
|
||||
player.brick--;
|
||||
player.wood--;
|
||||
player.wheat--;
|
||||
@ -2279,7 +2280,7 @@ router.put("/:id/:action/:value?", async (req, res) => {
|
||||
player.cities--;
|
||||
player.settlements++;
|
||||
if (!game.turn.free) {
|
||||
addChatMessage(game, session, `${session.name} spent 2 wheat, and 1 stone to upgrade to a city.`)
|
||||
addChatMessage(game, session, `${session.name} spent 2 wheat, 1 stone to upgrade to a city.`)
|
||||
player.wheat -= 2;
|
||||
player.stone -= 3;
|
||||
}
|
||||
@ -2368,7 +2369,7 @@ router.put("/:id/:action/:value?", async (req, res) => {
|
||||
|
||||
player.roads--;
|
||||
if (!game.turn.free) {
|
||||
addChatMessage(game, session, `${session.name} spent 1 brick and 1 wood to purchase a road.`)
|
||||
addChatMessage(game, session, `${session.name} spent 1 brick, 1 wood to purchase a road.`)
|
||||
player.brick--;
|
||||
player.wood--;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user