import { RawRequirement } from '../../../../models/achievement/raw-requirement' ; import { GameEvent } from '../../../../models/game-event' ; import { Requirement } from './_requirement' ; export class MulliganDoneReq implements Requirement { private isMulliganOver : boolean ; public static create ( rawReq ) { return new MulliganDoneReq ( ) ; } reset ( ) { this . isMulliganOver = undefined ; } afterAchievementCompletionReset ( ) { this . isMulliganOver = undefined ; } isCompleted ( ) { return this . isMulliganOver ; } test ( gameEvent ) { if ( gameEvent . type === GameEvent . MULLIGAN_DONE ) { this . isMulliganOver = true ; } } }