mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-19 02:04:10 +00:00
* Avatar model can be set to have eyes open, eyes shut, or left to default by specifying the sleep parameter in generatedAvatar to be false, true, or null (respectively). * Explicitly check true and false and switched to using triple equals for equality comparisons for avatar sleep setting.
This commit is contained in:
parent
3d53781bd3
commit
aac38dda91
1 changed files with 3 additions and 1 deletions
|
|
@ -8,8 +8,10 @@ mixin generatedAvatar(options)
|
|||
- options = options || {}
|
||||
span(class='chair_{{profile.preferences.chair}}')
|
||||
+costumeSetting('back')
|
||||
if options.sleep
|
||||
if options.sleep === true
|
||||
span(ng-class="'skin_' + profile.preferences.skin + '_sleep'")
|
||||
else if options.sleep === false
|
||||
span(ng-class="'skin_' + profile.preferences.skin")
|
||||
else
|
||||
span(ng-class="profile.preferences.sleep ? 'skin_' + profile.preferences.skin + '_sleep' : 'skin_' + profile.preferences.skin")
|
||||
span(class='{{profile.preferences.size}}_shirt_{{profile.preferences.shirt}}')
|
||||
|
|
|
|||
Loading…
Reference in a new issue