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