Basic stats.
This commit is contained in:
@@ -2098,9 +2098,13 @@ class BoardApp extends React.Component {
|
||||
handler={() => { return false; }}>
|
||||
<Fragment>
|
||||
<h1>Game Over!</h1>
|
||||
{alert.contents.map((e, i) => (
|
||||
{alert.contents.results.map((e, i) => (
|
||||
<p key={i}>{e}</p>
|
||||
))}
|
||||
<p>{alert.contents.stats.pro}</p>
|
||||
<p>{alert.contents.stats.back}</p>
|
||||
<p>{alert.contents.stats.taxPerson}</p>
|
||||
<p>{alert.contents.stats.emergency}</p>
|
||||
</Fragment>
|
||||
</AlertOverlay>
|
||||
);
|
||||
|
||||
@@ -126,7 +126,7 @@ function handleMessage(evt) {
|
||||
store.dispatch(autoSkip(data.component));
|
||||
}
|
||||
if (data.event === 'end-of-game') {
|
||||
store.dispatch(alert(ALERTS.endOfGame, data.results, 'endOfGame' + data.game.turn));
|
||||
store.dispatch(alert(ALERTS.endOfGame, { results: data.results, stats: data.stats }, 'endOfGame' + data.game.turn));
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user