-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Discardable cards, combinations working, better dialog box
- Loading branch information
1317421
committed
Dec 19, 2017
1 parent
e8ded93
commit c23f4ab
Showing
6 changed files
with
230 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React, { Component } from 'react'; | ||
import '../css/Dialog.css'; | ||
|
||
export default class Card extends Component { | ||
constructor(props) { | ||
super(props); | ||
|
||
this.state = { | ||
name : this.props.name, | ||
character : "mage", | ||
stat1 : this.props.stat1, | ||
stat2 : this.props.stat2, | ||
stat3 : this.props.stat3, | ||
stat4 : this.props.stat4 | ||
} | ||
} | ||
|
||
render() { | ||
return ( | ||
<div className="dialog"> | ||
<div className="descriptor"> A {this.state.character} walks in and croaks </div> | ||
I need a potion with <div className="stat dialog-stat attack">{this.state.stat1}</div> as well as | ||
<div className="stat dialog-stat health">{this.state.stat2}</div> but dont exceed <div className="stat dialog-stat attack">{this.state.stat1}</div> | ||
</div> | ||
); | ||
} | ||
} |
Oops, something went wrong.