mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 12:40:00 +00:00
add backer pet, move backer styles into its own stylus
This commit is contained in:
parent
5cb5089e58
commit
fcc0c4d3f3
5 changed files with 29 additions and 24 deletions
|
|
@ -88,7 +88,6 @@ viewHelpers = (view) ->
|
|||
{gender, armorSet} = preferences
|
||||
item = parseInt(item)
|
||||
backerTier = parseInt(backerTier)
|
||||
console.log backerTier
|
||||
|
||||
switch type
|
||||
when'armor'
|
||||
|
|
|
|||
26
styles/app/backer.styl
Normal file
26
styles/app/backer.styl
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
.shop_weapon_7, .shop_armor_6, .shop_head_6, .shop_shield_6,
|
||||
.weapon_7, .armor_6, .head_6, .shield_6
|
||||
//background: url("/img/sprites/backer-only/BackerOnly-SpriteSheet.png") no-repeat
|
||||
width 105px
|
||||
height 105px
|
||||
|
||||
//FIXME
|
||||
margin-left: -3px;
|
||||
margin-top: -15px;
|
||||
|
||||
.shop_head_6, .head_6
|
||||
background: url("/img/sprites/backer-only/BackerOnly-Equip-ShadeHelmet.gif") no-repeat;
|
||||
|
||||
.shop_armor_6, .armor_6
|
||||
background: url("/img/sprites/backer-only/BackerOnly-Equip-ShadeArmor.gif") no-repeat;
|
||||
|
||||
.shop_shield_6, .shield_6
|
||||
background: url("/img/sprites/backer-only/BackerOnly-Shield-TormentedSkull.gif") no-repeat;
|
||||
|
||||
.shop_weapon_7, .weapon_7
|
||||
background: url("/img/sprites/backer-only/BackerOnly-Weapon-DarkSoulsBlade.gif") no-repeat;
|
||||
|
||||
.Pet-Wolf-Cerberus
|
||||
width 105px
|
||||
height 72px
|
||||
background: url("/img/sprites/backer-only/BackerOnly-Pet-CerberusPup.gif") no-repeat;
|
||||
|
|
@ -24,6 +24,7 @@
|
|||
@import "./scrollbars.styl";
|
||||
@import "./achievements.styl";
|
||||
@import "./game-pane.styl";
|
||||
@import "./backer.styl";
|
||||
|
||||
// fix exploding to very wide for some reason
|
||||
.datepicker
|
||||
|
|
|
|||
|
|
@ -30,26 +30,4 @@
|
|||
.shop_potion {background-position: -880px 0; width: 40px; height: 40px}
|
||||
.shop_copper {background-position: -923px -8px; width: 32px; height: 22px}
|
||||
.shop_silver {background-position: -963px -8px; width: 32px; height: 22px}
|
||||
.shop_gold {background-position: -1003px -8px; width: 32px; height: 22px}
|
||||
|
||||
.shop_weapon_7, .shop_armor_6, .shop_head_6, .shop_shield_6,
|
||||
.weapon_7, .armor_6, .head_6, .shield_6
|
||||
//background: url("/img/sprites/backer-only/BackerOnly-SpriteSheet.png") no-repeat
|
||||
width 105px
|
||||
height 105px
|
||||
|
||||
//FIXME
|
||||
margin-left: -3px;
|
||||
margin-top: -15px;
|
||||
|
||||
.shop_head_6, .head_6
|
||||
background: url("/img/sprites/backer-only/BackerOnly-Equip-ShadeHelmet.gif") no-repeat;
|
||||
|
||||
.shop_armor_6, .armor_6
|
||||
background: url("/img/sprites/backer-only/BackerOnly-Equip-ShadeArmor.gif") no-repeat;
|
||||
|
||||
.shop_shield_6, .shield_6
|
||||
background: url("/img/sprites/backer-only/BackerOnly-Shield-TormentedSkull.gif") no-repeat;
|
||||
|
||||
.shop_weapon_7, .weapon_7
|
||||
background: url("/img/sprites/backer-only/BackerOnly-Weapon-DarkSoulsBlade.gif") no-repeat;
|
||||
.shop_gold {background-position: -1003px -8px; width: 32px; height: 22px}
|
||||
|
|
@ -111,6 +111,7 @@
|
|||
<table>
|
||||
<tr>
|
||||
<td><app:pets:stable-pet potion='Veteran Wolf' pet="Wolf-Veteran" /></td>
|
||||
{{#if gt(_user.backer.npc.tier,70)}}<td><app:pets:stable-pet potion='Cerberus Pup' pet="Wolf-Cerberus" /></td>{{/}}
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue