MCPcopy Index your code
hub / github.com/codecombat/codecombat / getProgrammablePlan

Method getProgrammablePlan

app/models/Level.js:573–577  ·  view source on GitHub ↗
(team = 'humans')

Source from the content-addressed store, hash-verified

571 }
572
573 getProgrammablePlan (team = 'humans') {
574 const heroThangID = team === 'ogres' ? 'Hero Placeholder 1' : 'Hero Placeholder'
575 const hero = _.find(this.get('thangs') || [], { id: heroThangID })
576 return _.find(hero?.components || [], comp => comp.config?.programmableMethods?.plan)?.config.programmableMethods.plan
577 }
578
579 getCodeContext (plan) {
580 if (!plan) return {}

Callers 2

getSolutionsMethod · 0.95
getSampleCodeMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected