mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-27 06:23:41 -04:00
Tweaked Nalfar's hero modal positioning.
This commit is contained in:
parent
32b10b33e4
commit
ccd96122e1
1 changed files with 2 additions and 2 deletions
|
@ -172,11 +172,11 @@ module.exports = class PlayHeroesModal extends ModalView
|
|||
layer.on 'new-spritesheet', ->
|
||||
#- maybe put some more normalization here?
|
||||
m = multiplier
|
||||
m *= 0.75 if fullHero.get('slug') in ['knight', 'samurai', 'librarian', 'sorcerer'] # these heroes are larger for some reason, shrink 'em
|
||||
m *= 0.75 if fullHero.get('slug') in ['knight', 'samurai', 'librarian', 'sorcerer', 'necromancer'] # these heroes are larger for some reason, shrink 'em
|
||||
layer.container.scaleX = layer.container.scaleY = m
|
||||
layer.container.children[0].x = 160/m
|
||||
layer.container.children[0].y = 250/m
|
||||
if fullHero.get('slug') in ['forest-archer', 'librarian', 'sorcerer', 'potion-master']
|
||||
if fullHero.get('slug') in ['forest-archer', 'librarian', 'sorcerer', 'potion-master', 'necromancer']
|
||||
layer.container.children[0].y -= 3
|
||||
if fullHero.get('slug') in ['librarian', 'sorcerer', 'potion-master']
|
||||
layer.container.children[0].x -= 3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue