From 775ec7ed70388d5070b05f181f923f1774b2a41c Mon Sep 17 00:00:00 2001 From: Thomas Hintz Date: Wed, 15 Apr 2020 08:50:42 -0700 Subject: [PATCH] Hiding birthdays. --- assets/game/acf/game.js | 2 +- src/components/farm/Board.jsx | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/assets/game/acf/game.js b/assets/game/acf/game.js index 9987aac..82cde34 100644 --- a/assets/game/acf/game.js +++ b/assets/game/acf/game.js @@ -44,7 +44,7 @@ export const spaceContent = 'License expired. Head back to the second week in January.', 'Frugivore swarm forces you to cover fruit. PAY $2000 if you own fruit.', `Finished plowing. Time for Apple pie. Draw ${itemCardShort}`, - 'Birthday bonus! And corn in without major solar flare. Yield is doubled this year.', + 'Corn in without major solar flare. Yield is doubled this year.', 'Winds continue. Work halts. PAY $500.', 'AI malfunction. PAY $1000.', 'Dust storms head south. COLLECT $500.', diff --git a/src/components/farm/Board.jsx b/src/components/farm/Board.jsx index 87d1f61..7e990ba 100644 --- a/src/components/farm/Board.jsx +++ b/src/components/farm/Board.jsx @@ -283,16 +283,18 @@ class PlayerResources extends React.Component { {player.assets.tractor} - {' '} - - {player.assets.birthday ? player.assets.birthday : 0} ); } } +/* {' '} + * + * {player.assets.birthday ? player.assets.birthday : 0} + * */ + // http://stackoverflow.com/questions/149055 function formatMoney(n) { return n.toFixed(1).replace(/(\d)(?=(\d{3})+\.)/g, '$1,').slice(0, -2); }