|
|
@ -1026,6 +1026,7 @@ class Action extends React.Component {
|
|
|
|
.find(p => p.player.name === this.props.game.currentPlayer).player;
|
|
|
|
.find(p => p.player.name === this.props.game.currentPlayer).player;
|
|
|
|
switch (this.props.ui.action) {
|
|
|
|
switch (this.props.ui.action) {
|
|
|
|
case 'otb':
|
|
|
|
case 'otb':
|
|
|
|
|
|
|
|
if (this.props.player.name === this.props.game.currentPlayer) {
|
|
|
|
view = (
|
|
|
|
view = (
|
|
|
|
<div className='game-card'>
|
|
|
|
<div className='game-card'>
|
|
|
|
<GroupBox title={itemCard}>
|
|
|
|
<GroupBox title={itemCard}>
|
|
|
@ -1034,6 +1035,13 @@ class Action extends React.Component {
|
|
|
|
</GroupBox>
|
|
|
|
</GroupBox>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
view = (
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<p>{currentPlayer.name} drew an {itemCard}</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
buttons = (<Button onClick={() => this.props.showNextAction()}>Continue</Button>);
|
|
|
|
buttons = (<Button onClick={() => this.props.showNextAction()}>Continue</Button>);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'farmers-fate':
|
|
|
|
case 'farmers-fate':
|
|
|
@ -1262,7 +1270,7 @@ class AlertOverlay extends React.Component {
|
|
|
|
{this.props.children}
|
|
|
|
{this.props.children}
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<Button onClick={this.buttonClick}>{this.props.buttonText}</Button>
|
|
|
|
<Button onClick={this.buttonClick}>{this.props.buttonText}</Button>
|
|
|
|
<label><input type='checkbox' /> {`Don't show again`}</label>
|
|
|
|
<label><input type='checkbox' onClick={this.hidePermanent} /> {`Don't show again`}</label>
|
|
|
|
<a href='#' onClick={this.hide}>close</a>
|
|
|
|
<a href='#' onClick={this.hide}>close</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|