From a0e2d6a05eeb07b34e4da6f84e1fcd80fbc13c8e Mon Sep 17 00:00:00 2001 From: SabreCat Date: Tue, 29 May 2018 21:02:42 +0000 Subject: [PATCH] feat(customize): earrings and headbands --- website/client/components/creatorIntro.vue | 29 ++++++++-- website/common/locales/en/character.json | 2 + website/common/locales/en/gear.json | 14 +++++ .../script/content/appearance/hair/flower.js | 10 ++++ .../script/content/gear/sets/special/index.js | 51 +++++++++++++++++- .../customize/flowers/hair_flower_10.png | Bin 0 -> 818 bytes .../customize/flowers/hair_flower_11.png | Bin 0 -> 817 bytes .../customize/flowers/hair_flower_12.png | Bin 0 -> 820 bytes .../customize/flowers/hair_flower_13.png | Bin 0 -> 820 bytes .../customize/flowers/hair_flower_14.png | Bin 0 -> 820 bytes .../customize/flowers/hair_flower_15.png | Bin 0 -> 818 bytes .../customize/flowers/hair_flower_16.png | Bin 0 -> 820 bytes .../customize/flowers/hair_flower_7.png | Bin 0 -> 839 bytes .../customize/flowers/hair_flower_8.png | Bin 0 -> 304 bytes .../customize/flowers/hair_flower_9.png | Bin 0 -> 303 bytes .../headAccessory_special_blackHeadband.png | Bin 0 -> 244 bytes .../headAccessory_special_blueHeadband.png | Bin 0 -> 272 bytes .../headAccessory_special_greenHeadband.png | Bin 0 -> 258 bytes .../headAccessory_special_pinkHeadband.png | Bin 0 -> 267 bytes .../headAccessory_special_redHeadband.png | Bin 0 -> 269 bytes .../headAccessory_special_whiteHeadband.png | Bin 0 -> 243 bytes .../headAccessory_special_yellowHeadband.png | Bin 0 -> 260 bytes ...op_headAccessory_special_blackHeadband.png | Bin 0 -> 207 bytes ...hop_headAccessory_special_blueHeadband.png | Bin 0 -> 242 bytes ...op_headAccessory_special_greenHeadband.png | Bin 0 -> 221 bytes ...hop_headAccessory_special_pinkHeadband.png | Bin 0 -> 235 bytes ...shop_headAccessory_special_redHeadband.png | Bin 0 -> 237 bytes ...op_headAccessory_special_whiteHeadband.png | Bin 0 -> 205 bytes ...p_headAccessory_special_yellowHeadband.png | Bin 0 -> 222 bytes website/server/models/user/schema.js | 2 +- 30 files changed, 102 insertions(+), 6 deletions(-) create mode 100644 website/raw_sprites/spritesmith/customize/flowers/hair_flower_10.png create mode 100644 website/raw_sprites/spritesmith/customize/flowers/hair_flower_11.png create mode 100644 website/raw_sprites/spritesmith/customize/flowers/hair_flower_12.png create mode 100644 website/raw_sprites/spritesmith/customize/flowers/hair_flower_13.png create mode 100644 website/raw_sprites/spritesmith/customize/flowers/hair_flower_14.png create mode 100644 website/raw_sprites/spritesmith/customize/flowers/hair_flower_15.png create mode 100644 website/raw_sprites/spritesmith/customize/flowers/hair_flower_16.png create mode 100644 website/raw_sprites/spritesmith/customize/flowers/hair_flower_7.png create mode 100644 website/raw_sprites/spritesmith/customize/flowers/hair_flower_8.png create mode 100644 website/raw_sprites/spritesmith/customize/flowers/hair_flower_9.png create mode 100644 website/raw_sprites/spritesmith/gear/headAccessory/headAccessory_special_blackHeadband.png create mode 100644 website/raw_sprites/spritesmith/gear/headAccessory/headAccessory_special_blueHeadband.png create mode 100644 website/raw_sprites/spritesmith/gear/headAccessory/headAccessory_special_greenHeadband.png create mode 100644 website/raw_sprites/spritesmith/gear/headAccessory/headAccessory_special_pinkHeadband.png create mode 100644 website/raw_sprites/spritesmith/gear/headAccessory/headAccessory_special_redHeadband.png create mode 100644 website/raw_sprites/spritesmith/gear/headAccessory/headAccessory_special_whiteHeadband.png create mode 100644 website/raw_sprites/spritesmith/gear/headAccessory/headAccessory_special_yellowHeadband.png create mode 100644 website/raw_sprites/spritesmith/gear/headAccessory/shop/shop_headAccessory_special_blackHeadband.png create mode 100644 website/raw_sprites/spritesmith/gear/headAccessory/shop/shop_headAccessory_special_blueHeadband.png create mode 100644 website/raw_sprites/spritesmith/gear/headAccessory/shop/shop_headAccessory_special_greenHeadband.png create mode 100644 website/raw_sprites/spritesmith/gear/headAccessory/shop/shop_headAccessory_special_pinkHeadband.png create mode 100644 website/raw_sprites/spritesmith/gear/headAccessory/shop/shop_headAccessory_special_redHeadband.png create mode 100644 website/raw_sprites/spritesmith/gear/headAccessory/shop/shop_headAccessory_special_whiteHeadband.png create mode 100644 website/raw_sprites/spritesmith/gear/headAccessory/shop/shop_headAccessory_special_yellowHeadband.png diff --git a/website/client/components/creatorIntro.vue b/website/client/components/creatorIntro.vue index 19ca0efc5e..c28bb5a3e9 100644 --- a/website/client/components/creatorIntro.vue +++ b/website/client/components/creatorIntro.vue @@ -191,11 +191,13 @@ b-modal#avatar-modal(title="", :size='editing ? "lg" : "md"', :hide-header='true .col-4.text-center.sub-menu-item(@click='changeSubPage("wheelchair")', :class='{active: activeSubPage === "wheelchair"}') strong(v-once) {{$t('wheelchair')}} .col-3.text-center.sub-menu-item(@click='changeSubPage("flower")', :class='{active: activeSubPage === "flower"}') - strong(v-once) {{$t('flower')}} + strong(v-once) {{$t('accent')}} .row.sub-menu(v-if='editing') - .col-4.offset-4.text-center.sub-menu-item(@click='changeSubPage("ears")' :class='{active: activeSubPage === "ears"}') + .col-4.offset-2.text-center.sub-menu-item(@click='changeSubPage("ears")' :class='{active: activeSubPage === "ears"}') strong(v-once) {{$t('animalEars')}} - .row(v-if='activeSubPage === "glasses"') + .col-4.text-center.sub-menu-item(@click='changeSubPage("headband")' :class='{active: activeSubPage === "headband"}') + strong(v-once) {{$t('headband')}} + #glasses.row(v-if='activeSubPage === "glasses"') .col-12.customize-options .option(v-for='option in eyewear', :class='{active: option.active}') .sprite.customize-option(:class="`eyewear_special_${option.key}`", @click='option.click') @@ -212,6 +214,10 @@ b-modal#avatar-modal(title="", :size='editing ? "lg" : "md"', :hide-header='true .svg-icon.gem(v-html='icons.gem') span 5 button.btn.btn-secondary.purchase-all(@click='unlock(animalEarsUnlockString)') {{ $t('purchaseAll') }} + #headband.row(v-if='activeSubPage === "headband"') + .col-12.customize-options + .option(v-for='option in headbands', :class='{active: option.active}') + .sprite.customize-option(:class="`headAccessory_special_${option.key}`", @click='option.click') #wheelchairs.row(v-if='activeSubPage === "wheelchair"') .col-12.customize-options .option(@click='set({"preferences.chair": "none"})', :class='{active: user.preferences.chair === "none"}') @@ -222,7 +228,7 @@ b-modal#avatar-modal(title="", :size='editing ? "lg" : "md"', :hide-header='true #flowers.row(v-if='activeSubPage === "flower"') .col-12.customize-options .head_0.option(@click='set({"preferences.hair.flower":0})', :class='{active: user.preferences.hair.flower === 0}') - .option(v-for='option in [1, 2, 3, 4, 5, 6]', + .option(v-for='option in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]', :class='{active: user.preferences.hair.flower === option}') .sprite.customize-option(:class="`hair_flower_${option}`", @click='set({"preferences.hair.flower": option})') .row(v-if='activeSubPage === "flower"') @@ -1038,6 +1044,21 @@ export default { }, computed: { ...mapState({user: 'user.data'}), + headbands () { + let keys = ['blackHeadband', 'blueHeadband', 'greenHeadband', 'pinkHeadband', 'redHeadband', 'whiteHeadband', 'yellowHeadband']; + let options = keys.map(key => { + let newKey = `headAccessory_special_${key}`; + let option = {}; + option.key = key; + option.active = this.user.preferences.costume ? this.user.items.gear.costume.headAccessory === newKey : this.user.items.gear.equipped.headAccessory === newKey; + option.click = () => { + let type = this.user.preferences.costume ? 'costume' : 'equipped'; + return this.equip(newKey, type); + }; + return option; + }); + return options; + }, eyewear () { let keys = ['blackTopFrame', 'blueTopFrame', 'greenTopFrame', 'pinkTopFrame', 'redTopFrame', 'whiteTopFrame', 'yellowTopFrame']; let options = keys.map(key => { diff --git a/website/common/locales/en/character.json b/website/common/locales/en/character.json index 7bfe47d255..d64fa13da6 100644 --- a/website/common/locales/en/character.json +++ b/website/common/locales/en/character.json @@ -45,6 +45,8 @@ "beard": "Beard", "mustache": "Mustache", "flower": "Flower", + "accent": "Accent", + "headband": "Headband", "wheelchair": "Wheelchair", "extra": "Extra", "basicSkins": "Basic Skins", diff --git a/website/common/locales/en/gear.json b/website/common/locales/en/gear.json index ab43f3208b..786571f827 100644 --- a/website/common/locales/en/gear.json +++ b/website/common/locales/en/gear.json @@ -1591,6 +1591,20 @@ "headAccessoryTigerEarsNotes": "These ears make you look like a fierce tiger! Confers no benefit.", "headAccessoryWolfEarsText": "Wolf Ears", "headAccessoryWolfEarsNotes": "These ears make you look like a loyal wolf! Confers no benefit.", + "headAccessoryBlackHeadbandText": "Black Headband", + "headAccessoryBlackHeadbandNotes": "A simple black headband. Confers no benefit.", + "headAccessoryBlueHeadbandText": "Blue Headband", + "headAccessoryBlueHeadbandNotes": "A simple blue headband. Confers no benefit.", + "headAccessoryGreenHeadbandText": "Green Headband", + "headAccessoryGreenHeadbandNotes": "A simple green headband. Confers no benefit.", + "headAccessoryPinkHeadbandText": "Pink Headband", + "headAccessoryPinkHeadbandNotes": "A simple pink headband. Confers no benefit.", + "headAccessoryRedHeadbandText": "Red Headband", + "headAccessoryRedHeadbandNotes": "A simple red headband. Confers no benefit.", + "headAccessoryWhiteHeadbandText": "White Headband", + "headAccessoryWhiteHeadbandNotes": "A simple white headband. Confers no benefit.", + "headAccessoryYellowHeadbandText": "Yellow Headband", + "headAccessoryYellowHeadbandNotes": "A simple yellow headband. Confers no benefit.", "headAccessoryMystery201403Text": "Forest Walker Antlers", "headAccessoryMystery201403Notes": "These antlers shimmer with moss and lichen. Confers no benefit. March 2014 Subscriber Item.", diff --git a/website/common/script/content/appearance/hair/flower.js b/website/common/script/content/appearance/hair/flower.js index b1322252bd..9b4b967748 100644 --- a/website/common/script/content/appearance/hair/flower.js +++ b/website/common/script/content/appearance/hair/flower.js @@ -8,4 +8,14 @@ module.exports = prefill({ 4: {}, 5: {}, 6: {}, + 7: {}, + 8: {}, + 9: {}, + 10: {}, + 11: {}, + 12: {}, + 13: {}, + 14: {}, + 15: {}, + 16: {}, }); diff --git a/website/common/script/content/gear/sets/special/index.js b/website/common/script/content/gear/sets/special/index.js index 1f2f026127..88e4f64575 100644 --- a/website/common/script/content/gear/sets/special/index.js +++ b/website/common/script/content/gear/sets/special/index.js @@ -8,7 +8,7 @@ import takeThisGear from './special-takeThis'; import wonderconGear from './special-wondercon'; import t from '../../../translation'; -const CURRENT_SEASON = 'spring'; +const CURRENT_SEASON = '_NONE_'; let armor = { 0: backerGear.armorSpecial0, @@ -2361,6 +2361,55 @@ let headAccessory = { return CURRENT_SEASON === 'spring'; }, }, + blackHeadband: { + gearSet: 'headband', + text: t('headAccessoryBlackHeadbandText'), + notes: t('headAccessoryBlackHeadbandNotes'), + value: 0, + canOwn: ownsItem('headAccessory_special_blackHeadband'), + }, + blueHeadband: { + gearSet: 'headband', + text: t('headAccessoryBlueHeadbandText'), + notes: t('headAccessoryBlueHeadbandNotes'), + value: 0, + canOwn: ownsItem('headAccessory_special_blueHeadband'), + }, + greenHeadband: { + gearSet: 'headband', + text: t('headAccessoryGreenHeadbandText'), + notes: t('headAccessoryGreenHeadbandNotes'), + value: 0, + canOwn: ownsItem('headAccessory_special_greenHeadband'), + }, + pinkHeadband: { + gearSet: 'headband', + text: t('headAccessoryPinkHeadbandText'), + notes: t('headAccessoryPinkHeadbandNotes'), + value: 0, + canOwn: ownsItem('headAccessory_special_pinkHeadband'), + }, + redHeadband: { + gearSet: 'headband', + text: t('headAccessoryRedHeadbandText'), + notes: t('headAccessoryRedHeadbandNotes'), + value: 0, + canOwn: ownsItem('headAccessory_special_redHeadband'), + }, + whiteHeadband: { + gearSet: 'headband', + text: t('headAccessoryWhiteHeadbandText'), + notes: t('headAccessoryWhiteHeadbandNotes'), + value: 0, + canOwn: ownsItem('headAccessory_special_whiteHeadband'), + }, + yellowHeadband: { + gearSet: 'headband', + text: t('headAccessoryYellowHeadbandText'), + notes: t('headAccessoryYellowHeadbandNotes'), + value: 0, + canOwn: ownsItem('headAccessory_special_yellowHeadband'), + }, }; let shield = { diff --git a/website/raw_sprites/spritesmith/customize/flowers/hair_flower_10.png b/website/raw_sprites/spritesmith/customize/flowers/hair_flower_10.png new file mode 100644 index 0000000000000000000000000000000000000000..836e0a7f760c0e0b7a903b5fdf8e72f0f72eb644 GIT binary patch literal 818 zcmeAS@N?(olHy`uVBq!ia0vp^ML-Ae#yX4YQVtoDuIE)Y6b&?c>bjL zqizfgOe;KH978H@CH?vT-~OTAe#yX4YQVtoDuIE)Y6b&?c>bjL zqizfgOv^o8978H@CH?vT-~OTbP0l+XkKhiKQc literal 0 HcmV?d00001 diff --git a/website/raw_sprites/spritesmith/customize/flowers/hair_flower_12.png b/website/raw_sprites/spritesmith/customize/flowers/hair_flower_12.png new file mode 100644 index 0000000000000000000000000000000000000000..5ca51c4c089e0005f6c0b66455bde514d4a8f74c GIT binary patch literal 820 zcmeAS@N?(olHy`uVBq!ia0vp^ML-Ae#yX4YQVtoDuIE)Y6b&?c>bjL zqizfgOshOy978H@CH?vT-~OTbP0l+XkK D&9~Tb literal 0 HcmV?d00001 diff --git a/website/raw_sprites/spritesmith/customize/flowers/hair_flower_13.png b/website/raw_sprites/spritesmith/customize/flowers/hair_flower_13.png new file mode 100644 index 0000000000000000000000000000000000000000..936f8ead177b10577883f3888fb922e0bd583d20 GIT binary patch literal 820 zcmeAS@N?(olHy`uVBq!ia0vp^ML-Ae#yX4YQVtoDuIE)Y6b&?c>bjL zqizfgOshOy978H@CH?vT-~OTAe#yX4YQVtoDuIE)Y6b&?c>bjL zqizfgOshOy978H@CH?vT-~OTR>Gq7C9=tBop_i9 zB<;c{%pl;fSkTgk!GWRI?TG;+1EY!5NR&)qsL0}5&zB-!0Zicxp00i_>zopr0NNMW Ai~s-t literal 0 HcmV?d00001 diff --git a/website/raw_sprites/spritesmith/customize/flowers/hair_flower_15.png b/website/raw_sprites/spritesmith/customize/flowers/hair_flower_15.png new file mode 100644 index 0000000000000000000000000000000000000000..8b6d388c07c21f80d14306cd4a03b12e30b63b84 GIT binary patch literal 818 zcmeAS@N?(olHy`uVBq!ia0vp^ML-Ae#yX4YQVtoDuIE)Y6b&?c>bjL zqizfgOe;KH978H@CH?vT-~OTAe#yX4YQVtoDuIE)Y6b&?c>bjL zqizfgOshOy978H@CH?vT-~OT*LHnt_P-Y22WQ%mvv4FO#nx8-{t@S literal 0 HcmV?d00001 diff --git a/website/raw_sprites/spritesmith/customize/flowers/hair_flower_7.png b/website/raw_sprites/spritesmith/customize/flowers/hair_flower_7.png new file mode 100644 index 0000000000000000000000000000000000000000..dd4f8014728202362b25b108314360960f2a1354 GIT binary patch literal 839 zcmeAS@N?(olHy`uVBq!ia0vp^ML-Ae#yX4YQVtoDuIE)Y6b&?c>bjL zqizfgOnW_D978H@CH?vT-~OT@ f`)p)H95VyIw1oYW_J6?Kz`)??>gTe~DWM4fBxdOK literal 0 HcmV?d00001 diff --git a/website/raw_sprites/spritesmith/customize/flowers/hair_flower_8.png b/website/raw_sprites/spritesmith/customize/flowers/hair_flower_8.png new file mode 100644 index 0000000000000000000000000000000000000000..d687c0fb4c5782f2d31d6665514bcd605dcd96e0 GIT binary patch literal 304 zcmeAS@N?(olHy`uVBq!ia0vp^ML-jA5L~c#`DCC7XMsm# zF#`j)FbFd;%$g$s6l5>)^mS!_#3Ci6Ba&!(@;*>#ucwP+NX4zUcNF;!DDXH0?($LI z@n2GXhl9Ff!ZcRLPyblGDpuyEq+R?OyN_Xs1J@FVCJ~QD5swK>njoaW8l=D~ge2a` zf-cUb0#XkaU%CJ8@jYKwKHiY?dShkS%(R;xjaQBz(#(;@qX%k7kb)!7ZX~lbCq#W^ YN`1qzopr0N&$VZ~y=R literal 0 HcmV?d00001 diff --git a/website/raw_sprites/spritesmith/customize/flowers/hair_flower_9.png b/website/raw_sprites/spritesmith/customize/flowers/hair_flower_9.png new file mode 100644 index 0000000000000000000000000000000000000000..2e596890a0d78b1c3796d6f9fc94bc5163aa8b6a GIT binary patch literal 303 zcmeAS@N?(olHy`uVBq!ia0vp^ML-jA5L~c#`DCC7XMsm# zF#`j)FbFd;%$g$s6l5>)^mS!_#3Ci6qkiw{ijzR0J)SO(Ar-gY-cjT`puppBvD8ty z?7y*JL8Fr68J*KElfR3uYndLUWXyl{{TCJm)*uB|p(PGnOB|X+JQ{(BMRNj^<^&{h zE){g~AO%ODdWd-K+NnEV-o5@)s{Z_`+^`!SjaPOb3cq0nG!XDn1x8< cU$3zIyvx1*o7Mazpg$NqUHx3vIVCg!0F?1ue*gdg literal 0 HcmV?d00001 diff --git a/website/raw_sprites/spritesmith/gear/headAccessory/headAccessory_special_blackHeadband.png b/website/raw_sprites/spritesmith/gear/headAccessory/headAccessory_special_blackHeadband.png new file mode 100644 index 0000000000000000000000000000000000000000..a200ad69c1ece3f1b875adee03f8ea72e5fddbdc GIT binary patch literal 244 zcmeAS@N?(olHy`uVBq!ia0vp^ML-jA5L~c#`DCC7XMsm# zF#`j)FbFd;%$g$s6l5>)^mS!_#3IF@YZCKly$4XJ(bL5-q~g}wD;xO^2#Bx-^o0HY z-x;>JY}HEN<6_T!l=Ow>l{*8~A;5#!Ie(d!PI(-)e9E!9_kXwjTe<9-)z@g1`bu6Y z&8Yp8i{%P$MRnKPUUpeDaZ%}Ei&)Jx-z6EW2m_E=W(7>87E%J&IkOgmggssTT-G@y GGywnvrAFrf literal 0 HcmV?d00001 diff --git a/website/raw_sprites/spritesmith/gear/headAccessory/headAccessory_special_blueHeadband.png b/website/raw_sprites/spritesmith/gear/headAccessory/headAccessory_special_blueHeadband.png new file mode 100644 index 0000000000000000000000000000000000000000..df03d44ae50eeb141f39c9ec664b4cd2efd1fb4f GIT binary patch literal 272 zcmeAS@N?(olHy`uVBq!ia0vp^ML-jA5L~c#`DCC7XMsm# zF#`j)FbFd;%$g$s6l5>)^mS!_#3IF@C$#iXWf@RtuBVG*NX4zU*9^Iu4MZ3MboE;G z-o8+fJ1Si%mj5JhNpo@xi@Wv9l#8An`^;NE2v7R+WU>k)P$L{9#7q5V>+-kOfBSrO z^zY>x@AUi^|I8bDCH-T;^!1KP`byn}7k}=aY3`k5VPNs*{7wGSSFTDE?>x9(mG-iG kjA5L~c#`DCC7XMsm# zF#`j)FbFd;%$g$s6l5>)^mS!_#3IFDAkS}PB?1)c_jGX#skrs_%1+(}0|6EXo{8ED zOIWlPiMi;8xNx?FI2;jnWKnuDyHn?N%1OKXYMekl2yp$-ZT*02M>nlqUU={O<{5I= z=3g!G{r_sa$KR*<7d$Rj&EL~iJ%{hD#Js9yoi56*ulXN;@ixp>a@9r{fz0~Ato`kT Ult9n|PGyj=r>mdKI;Vst0An3W*8l(j literal 0 HcmV?d00001 diff --git a/website/raw_sprites/spritesmith/gear/headAccessory/headAccessory_special_pinkHeadband.png b/website/raw_sprites/spritesmith/gear/headAccessory/headAccessory_special_pinkHeadband.png new file mode 100644 index 0000000000000000000000000000000000000000..be84aa8f94d1ba47039f2c21170efc22959dbdd0 GIT binary patch literal 267 zcmeAS@N?(olHy`uVBq!ia0vp^ML-jA5L~c#`DCC7XMsm# zF#`j)FbFd;%$g$s6l5>)^mS!_#3IF@&$KWvA{Zz%!_&nvq~g}wYld9S1|kd>T&kF@ zJJMe~xbpkFpKMjzqXp?5lP@hix>TgDCZFq}@T5O~{DYW)`rzO}L|bP0l+XkKL@rh4 literal 0 HcmV?d00001 diff --git a/website/raw_sprites/spritesmith/gear/headAccessory/headAccessory_special_redHeadband.png b/website/raw_sprites/spritesmith/gear/headAccessory/headAccessory_special_redHeadband.png new file mode 100644 index 0000000000000000000000000000000000000000..09c72c0ce8119fea5553f9eaa55f67e93a732c7b GIT binary patch literal 269 zcmeAS@N?(olHy`uVBq!ia0vp^ML-jA5L~c#`DCC7XMsm# zF#`j)FbFd;%$g$s6l5>)^mS!_#3IF@FSj+HMFuD|%hSa%q~g}wYld8h3`7_%xNv=w z;A(yJpwlMa|4BfLlWp7FM@uZWluUHG^nICto#M&!|5aFk`VipS(L4MfcEnsx|Ffq5 z{?E(VvwGvZGJjWJD=+*o?X<$g))hr}O3L#t?T>!+e%AKF4lSY16!!hsbfe?@a>HD+ g)*=i-W*y+$!}vB_@|^llzm*_yPgg&ebxsLQ0M=JmqW}N^ literal 0 HcmV?d00001 diff --git a/website/raw_sprites/spritesmith/gear/headAccessory/headAccessory_special_whiteHeadband.png b/website/raw_sprites/spritesmith/gear/headAccessory/headAccessory_special_whiteHeadband.png new file mode 100644 index 0000000000000000000000000000000000000000..f4f20bac72f32ef62d3c749fb03c8fa85a71319e GIT binary patch literal 243 zcmeAS@N?(olHy`uVBq!ia0vp^ML-jA5L~c#`DCC7XMsm# zF#`j)FbFd;%$g$s6l5>)^mS!_#3IFDV0xwV^C6&6gQtsQNX4zUR}8rhDDbcb1Q&e% zr(RmTA$V?-)wWmFlRX4Xo-JnqDujaryJ!4mTD!GwZT8ya{Zopf|A$O2p7%?aufCF3 zN;7Kz0H*Mr18UHx3vIVCg! E09Ob^w*UYD literal 0 HcmV?d00001 diff --git a/website/raw_sprites/spritesmith/gear/headAccessory/headAccessory_special_yellowHeadband.png b/website/raw_sprites/spritesmith/gear/headAccessory/headAccessory_special_yellowHeadband.png new file mode 100644 index 0000000000000000000000000000000000000000..b6b19112a66bd0f85cf5c82b2f0d42c90b8175b7 GIT binary patch literal 260 zcmeAS@N?(olHy`uVBq!ia0vp^ML-jA5L~c#`DCC7XMsm# zF#`j)FbFd;%$g$s6l5>)^mS!_#3IFDDEM)r8px=Lo-U3d6}R4AvE_4h5Mc`_5fWY6 zH222DqcmdKI;Vst07RNUx&QzG literal 0 HcmV?d00001 diff --git a/website/raw_sprites/spritesmith/gear/headAccessory/shop/shop_headAccessory_special_blueHeadband.png b/website/raw_sprites/spritesmith/gear/headAccessory/shop/shop_headAccessory_special_blueHeadband.png new file mode 100644 index 0000000000000000000000000000000000000000..be5f672cca7f9910829354f527168417df32f4c8 GIT binary patch literal 242 zcmeAS@N?(olHy`uVBq!ia0vp^E+EXo1|%(nCvO5$Y)RhkE)4%caKYZ?lYt_f1s;*b z3=G`DAk4@xYmNj^kiEpy*OmPdtE`Bw?9vmujXEG?_Ucs0$3vczy3(c>C-|wUb%3UX$+R z?|$}YYn|TjlmB*3=)6{RD$&{gTH52MhmU^R_rA!sM99b;DDZq*{Xxddi#M9N!Wt~$(697e5Qj`Dy literal 0 HcmV?d00001 diff --git a/website/raw_sprites/spritesmith/gear/headAccessory/shop/shop_headAccessory_special_greenHeadband.png b/website/raw_sprites/spritesmith/gear/headAccessory/shop/shop_headAccessory_special_greenHeadband.png new file mode 100644 index 0000000000000000000000000000000000000000..6edfe96572066c20631ac5dc492e51ffabfc206d GIT binary patch literal 221 zcmeAS@N?(olHy`uVBq!ia0vp^E+EXo1|%(nCvO5$Y)RhkE)4%caKYZ?lYt_f1s;*b z3=G`DAk4@xYmNj^kiEpy*OmPdtE`BwZnL1QE>I}T)5S5Q;?~W4H=U1wo44SUu89eLk z@ASXlcD?_0zS}1!_Ir%kmfFA19%aXy+jX_bT)gnDbnhqoGZO_MdKnr%S22qw%WSdK R+^`-b`NTP^$m{ literal 0 HcmV?d00001 diff --git a/website/raw_sprites/spritesmith/gear/headAccessory/shop/shop_headAccessory_special_redHeadband.png b/website/raw_sprites/spritesmith/gear/headAccessory/shop/shop_headAccessory_special_redHeadband.png new file mode 100644 index 0000000000000000000000000000000000000000..953508fda028f086f20612687413e425bb834f7e GIT binary patch literal 237 zcmeAS@N?(olHy`uVBq!ia0vp^E+EXo1|%(nCvO5$Y)RhkE)4%caKYZ?lYt_f1s;*b z3=G`DAk4@xYmNj^kiEpy*OmPdtE`Bg#*MIDi9n$$PZ!6Kid%0l8FC$R5MaF^FZjri zhef4T{ZozQL{|Y8+qSUmsY=ttJUiY`-F)WEp+77@O(2jEyh?T2ylWKSdumzW=l%TxgSP?d547Pi4}A|m^&lZnS3j3^P65NNwNzhvSI z35A?Vy*CVJJ2-NR3N2lEk|AQ#J?-;WbG!8!fjU4S!z=vpi%qrOlja$Z}>$Tm~<=;duRY{t91#&=iFgV=Sb8S=MFle|n9VFuE>gTe~DWM4f DdkaXM literal 0 HcmV?d00001 diff --git a/website/server/models/user/schema.js b/website/server/models/user/schema.js index d1ac96b7f2..56a0d7e82a 100644 --- a/website/server/models/user/schema.js +++ b/website/server/models/user/schema.js @@ -252,7 +252,7 @@ let schema = new Schema({ gear: { owned: _.transform(shared.content.gear.flat, (m, v) => { m[v.key] = {type: Boolean}; - if (v.key.match(/(armor|head|shield)_warrior_0/) || v.gearSet === 'glasses') { + if (v.key.match(/(armor|head|shield)_warrior_0/) || v.gearSet === 'glasses' || v.gearSet === 'headband' ) { m[v.key].default = true; } }),