Hiding birthdays.
This commit is contained in:
@@ -44,7 +44,7 @@ export const spaceContent =
|
|||||||
'License expired. Head back to the second week in January.',
|
'License expired. Head back to the second week in January.',
|
||||||
'Frugivore swarm forces you to cover fruit. PAY $2000 if you own fruit.',
|
'Frugivore swarm forces you to cover fruit. PAY $2000 if you own fruit.',
|
||||||
`Finished plowing. Time for Apple pie. Draw ${itemCardShort}`,
|
`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.',
|
'Winds continue. Work halts. PAY $500.',
|
||||||
'AI malfunction. PAY $1000.',
|
'AI malfunction. PAY $1000.',
|
||||||
'Dust storms head south. COLLECT $500.',
|
'Dust storms head south. COLLECT $500.',
|
||||||
|
|||||||
@@ -283,16 +283,18 @@ class PlayerResources extends React.Component {
|
|||||||
<ResourceUnit img={TractorImg} h='240' s='100' label='Tractors'
|
<ResourceUnit img={TractorImg} h='240' s='100' label='Tractors'
|
||||||
amount={player.assets.tractor}>
|
amount={player.assets.tractor}>
|
||||||
{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>
|
</ResourceUnit>
|
||||||
</div>
|
</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
|
// http://stackoverflow.com/questions/149055
|
||||||
function formatMoney(n) {
|
function formatMoney(n) {
|
||||||
return n.toFixed(1).replace(/(\d)(?=(\d{3})+\.)/g, '$1,').slice(0, -2); }
|
return n.toFixed(1).replace(/(\d)(?=(\d{3})+\.)/g, '$1,').slice(0, -2); }
|
||||||
|
|||||||
Reference in New Issue
Block a user