mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 14:03:28 -04:00
Simulating games for Harrowland, now, too. Alternative way of loading hero when sticking with same hero from within level when changing inventory.
This commit is contained in:
parent
3be2b6406d
commit
7e889a2a80
2 changed files with 2 additions and 1 deletions
|
@ -295,6 +295,7 @@ module.exports = class PlayHeroesModal extends ModalView
|
|||
|
||||
saveAndHide: ->
|
||||
hero = @selectedHero?.get('original')
|
||||
hero ?= @visibleHero?.get('original') if @visibleHero?.loaded and not @visibleHero.locked
|
||||
unless hero
|
||||
console.error 'Somehow we tried to hide without having a hero selected yet...'
|
||||
noty {
|
||||
|
|
|
@ -128,7 +128,7 @@ module.exports.getTwoGames = (req, res) ->
|
|||
ogresGameID = req.body.ogresGameID
|
||||
return if simulatorIsTooOld req, res
|
||||
#ladderGameIDs = ['greed', 'criss-cross', 'brawlwood', 'dungeon-arena', 'gold-rush', 'sky-span'] # Let's not give any extra simulations to old ladders.
|
||||
ladderGameIDs = ['dueling-grounds', 'cavern-survival', 'multiplayer-treasure-grove']
|
||||
ladderGameIDs = ['dueling-grounds', 'cavern-survival', 'multiplayer-treasure-grove', 'harrowland']
|
||||
levelID = _.sample ladderGameIDs
|
||||
sortLimit = 200
|
||||
unless ogresGameID and humansGameID
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue