Fixing message type 'money'.
This commit is contained in:
@@ -215,9 +215,9 @@ function initialize(st, sc) {
|
|||||||
}, 5000);
|
}, 5000);
|
||||||
break;
|
break;
|
||||||
case 'money':
|
case 'money':
|
||||||
store.dispatch(message(state.farm.game.currentPlayer +
|
store.dispatch(message(state.farm.ui.actionValue.player +
|
||||||
(state.farm.ui.actionValue < 0 ? ' lost ' : ' gained ') +
|
(state.farm.ui.actionValue.amount < 0 ? ' lost ' : ' gained ') +
|
||||||
'$' + formatMoney(Math.abs(state.farm.ui.actionValue))));
|
'$' + formatMoney(Math.abs(state.farm.ui.actionValue.amount))));
|
||||||
break;
|
break;
|
||||||
case 'farmers-fate':
|
case 'farmers-fate':
|
||||||
store.dispatch(message(state.farm.game.currentPlayer + ' drew a ' +
|
store.dispatch(message(state.farm.game.currentPlayer + ' drew a ' +
|
||||||
|
|||||||
Reference in New Issue
Block a user