mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-01 23:40:25 +00:00
feat(accessories): head accessory
This commit is contained in:
parent
531fe5eb31
commit
bfc6bf44ff
2 changed files with 8 additions and 2 deletions
|
|
@ -130,14 +130,16 @@ var UserSchema = new Schema({
|
|||
armor: {type: String, 'default': 'armor_base_0'},
|
||||
head: {type: String, 'default': 'head_base_0'},
|
||||
shield: {type: String, 'default': 'shield_base_0'},
|
||||
back: String
|
||||
back: String,
|
||||
headAccessory: String
|
||||
},
|
||||
costume: {
|
||||
weapon: {type: String, 'default': 'weapon_base_0'},
|
||||
armor: {type: String, 'default': 'armor_base_0'},
|
||||
head: {type: String, 'default': 'head_base_0'},
|
||||
shield: {type: String, 'default': 'shield_base_0'},
|
||||
back: String
|
||||
back: String,
|
||||
headAccessory: String
|
||||
},
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -37,6 +37,10 @@ figure.herobox(ng-click='spell ? castEnd(profile, "user", $event) : clickMember(
|
|||
span(class='{{profile.items.gear.costume.head}}', ng-if='profile.preferences.costume')
|
||||
|
||||
// Head Accessory
|
||||
span(class='{{profile.items.gear.equipped.headAccessory}}', ng-if='!profile.preferences.costume')
|
||||
span(class='{{profile.items.gear.costume.headAccessory}}', ng-if='profile.preferences.costume')
|
||||
|
||||
// Flower
|
||||
span(class='hair_flower_{{profile.preferences.hair.flower}}')
|
||||
|
||||
// Shield
|
||||
|
|
|
|||
Loading…
Reference in a new issue