Fixing roll to work around the new year.
This commit is contained in:
@@ -1065,7 +1065,10 @@ class Action extends React.Component {
|
|||||||
buttons = (<Fragment />);
|
buttons = (<Fragment />);
|
||||||
break;
|
break;
|
||||||
case 'roll':
|
case 'roll':
|
||||||
view = (<Rolling num={this.props.ui.actionValue.to - this.props.ui.actionValue.from}
|
const roll = this.props.ui.actionValue.to -
|
||||||
|
(this.props.ui.actionValue.to < this.props.ui.actionValue.from ?
|
||||||
|
this.props.ui.actionValue.from - 49 : this.props.ui.actionValue.from);
|
||||||
|
view = (<Rolling num={roll}
|
||||||
name={this.props.game.currentPlayer}
|
name={this.props.game.currentPlayer}
|
||||||
showScreen={this.props.player.name === this.props.game.currentPlayer
|
showScreen={this.props.player.name === this.props.game.currentPlayer
|
||||||
? () => this.props.showNextAction()
|
? () => this.props.showNextAction()
|
||||||
|
|||||||
Reference in New Issue
Block a user