accounts for permanent resources

This commit is contained in:
2022-08-05 20:28:07 -05:00
parent e0ad965ac2
commit 9c067172bf
4 changed files with 19 additions and 28 deletions

View File

@@ -27,6 +27,11 @@ export default function Player({ player, state, setState }: PlayerProps) {
<div key={v4()} className="mini-card" style={{backgroundColor: 'white'}}>
<p>{data.gemValue} card</p>
<p>{data.points + " points" || null}</p>
{
Object.entries(data.resourceCost).map(([key, value]) => {
return value > 0 && <p key={v4()}>{key}: {value}</p>
})
}
</div>
)
})