Fixing message type 'money'.

logins
Thomas Hintz 5 years ago
parent 3ea60306b7
commit cf8ff248fe

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

Loading…
Cancel
Save