A few minor fixes.

This commit is contained in:
Nick Winter 2014-09-04 15:14:27 -07:00
parent fca9a92167
commit b698200cf0
3 changed files with 3 additions and 6 deletions
app
schemas/models
styles/play/level
views/play/level

View file

@ -148,10 +148,7 @@ _.extend LevelComponentSchema.properties,
type: 'boolean'
title: 'Official'
description: 'Whether this is an official CodeCombat Component.'
searchStrings: {
type: 'array'
items: { type: 'string' }
}
searchStrings: {type: 'string'}
c.extendBasicProperties LevelComponentSchema, 'level.component'
c.extendSearchableProperties LevelComponentSchema

View file

@ -121,7 +121,7 @@
background-position-x: -4 * $iconSize
&.prop-label-icon-attackDamage
background-position-x: -5 * $iconSize
&.prop-label-icon-attackRange
&.prop-label-icon-attackRange, &.prop-label-icon-attackNearbyEnemyRange
background-position-x: -6 * $iconSize
&.prop-label-icon-maxSpeed
background-position-x: -7 * $iconSize

View file

@ -265,7 +265,7 @@ module.exports = class LevelHUDView extends CocoView
return null # included in the bar
context =
prop: prop
hasIcon: prop in ['health', 'pos', 'target', 'collectedThangIDs', 'gold', 'bountyGold', 'visualRange', 'attackDamage', 'attackRange', 'maxSpeed']
hasIcon: prop in ['health', 'pos', 'target', 'collectedThangIDs', 'gold', 'bountyGold', 'visualRange', 'attackDamage', 'attackRange', 'maxSpeed', 'attackNearbyEnemyRange']
hasBar: prop in ['health']
$(prop_template(context))