MCPcopy Create free account
hub / github.com/codecombat/codecombat / increaseDifficulty

Method increaseDifficulty

app/models/LevelSession.js:75–83  ·  view source on GitHub ↗
(callback)

Source from the content-addressed store, hash-verified

73 }
74
75 increaseDifficulty (callback) {
76 let left
77 const state = (left = this.get('state')) != null ? left : {}
78 state.difficulty = (state.difficulty != null ? state.difficulty : 0) + 1
79 delete state.lastUnsuccessfulSubmissionTime
80 this.set('state', state)
81 this.trigger('change-difficulty')
82 return this.save(null, { success: callback })
83 }
84
85 timeUntilResubmit () {
86 let last, left

Callers 1

onSubmissionCompleteMethod · 0.80

Calls 3

getMethod · 0.45
setMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected