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

Method usesSessionHeroInventory

app/models/Level.js:628–637  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

626 }
627
628 usesSessionHeroInventory () {
629 if (utils.showOzaria()) { return false }
630 if (this.get('product', true) === 'codecombat-junior') { return false }
631 if (this.isType('course') && !me.showHeroAndInventoryModalsToStudents()) { return false }
632 if (this.isType('course') && this.isAssessment()) { return false }
633 if (this.get('assessment')) { return false }
634 if (!this.isType('course', 'hero', 'hero-ladder', 'hero-coop')) { return false }
635 if (this.usesLevelHeroLadderEquipment()) { return false }
636 return true
637 }
638
639 isAssessment () { return Boolean(this.get('assessment')) }
640

Callers 2

denormalizeThangMethod · 0.95
onClickCourseVersionMethod · 0.80

Calls 5

isTypeMethod · 0.95
isAssessmentMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected