mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
Fixed a couple bugs.
This commit is contained in:
parent
7012d5dfbe
commit
f1947d7d9d
3 changed files with 4 additions and 1 deletions
|
@ -370,6 +370,8 @@ module.exports = class ThangType extends CocoModel
|
|||
attackRange: 'range'
|
||||
shieldDefenseFactor: 'blocks'
|
||||
visualRange: 'range'
|
||||
throwDamage: 'attack'
|
||||
throwRange: 'range'
|
||||
}[name]
|
||||
|
||||
if i18nKey
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue