Fixed a couple bugs.

This commit is contained in:
Nick Winter 2014-11-11 18:16:33 -08:00
parent 7012d5dfbe
commit f1947d7d9d
3 changed files with 4 additions and 1 deletions

View file

@ -370,6 +370,8 @@ module.exports = class ThangType extends CocoModel
attackRange: 'range'
shieldDefenseFactor: 'blocks'
visualRange: 'range'
throwDamage: 'attack'
throwRange: 'range'
}[name]
if i18nKey

View file

@ -83,6 +83,7 @@ module.exports = class InventoryModal extends ModalView
# sort into one of the four groups
locked = not (item.get('original') in me.items())
locked = false if me.get('slug') is 'nick'
if locked and item.get('slug') isnt 'simple-boots'
@itemGroups.lockedItems.add(item)

View file

@ -249,7 +249,7 @@ module.exports = class HeroVictoryModal extends ModalView
onGameSubmitted: (e) ->
ladderURL = "/play/ladder/#{@level.get('slug')}#my-matches"
# Preserve the supermodel as we navigate back to the ladder.
Backbone.Mediator.publish 'router:navigate', route: ladderURL, viewClass: require('views/play/ladder/LadderView'), viewArgs: [{supermodel: @supermodel}]
Backbone.Mediator.publish 'router:navigate', route: ladderURL, viewClass: require('views/play/ladder/LadderView'), viewArgs: [{supermodel: @supermodel}, @level.get('slug')]
playSelectionSound: (hero, preload=false) ->
return unless sounds = hero.get('soundTriggers')?.selected