File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { pick } from '../../utils.js'
22import { html , Component } from '../lib.js'
33import CardChooser from './card-chooser.js'
4+ import { isCurrRoomCompleted } from '../../game/utils-state.js'
45
56export default class CampfireRoom extends Component {
67 rest ( ) {
@@ -23,6 +24,17 @@ export default class CampfireRoom extends Component {
2324 const { gameState} = props
2425 const { choice, isChoosingCard} = state
2526 let label = ''
27+ if ( isCurrRoomCompleted ( gameState ) ) {
28+ return html `
29+ < div class ="Container Container--center ">
30+ < h1 center > You've already made a choice</ h1 >
31+ < p center >
32+ < button onClick =${ props . onContinue } > Continue to the next room</ button >
33+ </ p >
34+ </ div >
35+ ` ;
36+ }
37+
2638 if ( choice === 'upgradeCard' ) label = 'Choose a card to upgrade'
2739 if ( choice === 'removeCard' ) label = 'Choose a card to remove'
2840 return html `
You can’t perform that action at this time.
0 commit comments