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

Function addGoal

app/lib/level-generation.js:209–215  ·  view source on GitHub ↗
(goal, config)

Source from the content-addressed store, hash-verified

207
208 const goals = []
209 function addGoal (goal, config) {
210 goal = _.cloneDeep(goal)
211 for (const key in config || {}) {
212 goal[key] = config[key]
213 }
214 goals.push(goal)
215 }
216
217 addGoal(exampleGoals.heroSurvives)
218 addGoal(exampleGoals.cleanCode)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected