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

Method initClass

app/models/ThangType.js:60–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 }
59
60 static initClass () {
61 this.className = 'ThangType'
62 this.schema = require('schemas/models/thang_type')
63 this.heroes = utils.showOzaria() ? ThangTypeConstants.ozariaHeroes : ThangTypeConstants.heroes
64 this.heroClasses = ThangTypeConstants.heroClasses
65 this.items = ThangTypeConstants.items
66 this.prototype.urlRoot = '/db/thang.type'
67 this.prototype.building = {}
68 this.prototype.editableByArtisans = true
69 this.defaultActions = ['idle', 'die', 'move', 'attack', 'trick', 'cast']
70 this.heroConfigStats = {}
71 // Build a cache of these for quickly determining hero/item loadout aggregate stats
72 }
73
74 initialize () {
75 super.initialize()

Callers 1

ThangType.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected