Hiding birthdays.

leave-game
Thomas Hintz 5 years ago
parent 333bd70d1a
commit 775ec7ed70

@ -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.',

@ -283,16 +283,18 @@ class PlayerResources extends React.Component {
<ResourceUnit img={TractorImg} h='240' s='100' label='Tractors'
amount={player.assets.tractor}>
{player.assets.tractor}
</ResourceUnit> {' '}
<ResourceUnit img={CakeImg} h='240' s='100' label='Birthday'
amount={player.assets.birthday ? player.assets.birthday : 0}>
{player.assets.birthday ? player.assets.birthday : 0}
</ResourceUnit>
</div>
);
}
}
/* {' '}
* <ResourceUnit img={CakeImg} h='240' s='100' label='Birthday'
* amount={player.assets.birthday ? player.assets.birthday : 0}>
* {player.assets.birthday ? player.assets.birthday : 0}
* </ResourceUnit> */
// http://stackoverflow.com/questions/149055
function formatMoney(n) {
return n.toFixed(1).replace(/(\d)(?=(\d{3})+\.)/g, '$1,').slice(0, -2); }

Loading…
Cancel
Save