Fixing message type 'money'.

logins
Thomas Hintz 5 years ago
parent 3ea60306b7
commit cf8ff248fe

@ -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 ' +

Loading…
Cancel
Save