mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-01 07:21:15 +00:00
half-baked commit to save my progress and show my direction, we may
want to rever this
This commit is contained in:
parent
b6398964fe
commit
e42d4e6ba6
3 changed files with 28 additions and 11 deletions
|
|
@ -73,6 +73,21 @@ module.exports =
|
|||
{type: 'armor', index: 4, text: "Red Armor", icon: 'item-redarmor', notes:'Decreases HP loss by 12%.', value:90}
|
||||
{type: 'armor', index: 5, text: "Golden Armor", icon: 'item-goldenarmor', notes:'Decreases HP loss by 15%.', value:120}
|
||||
]
|
||||
head: [
|
||||
{type: 'armor', index: 0, text: "No Helm", icon: 'item-nohelm', notes:'Training armor.', value:0}
|
||||
{type: 'armor', index: 1, text: "Leather Helm", icon: 'item-leatherhelm', notes:'Decreases HP loss by 3%.', value:30}
|
||||
{type: 'armor', index: 2, text: "Chain Coif", icon: 'item-mailhelm', notes:'Decreases HP loss by 6%.', value:45}
|
||||
{type: 'armor', index: 3, text: "Plate Helm", icon: 'item-platehelm', notes:'Decreases HP loss by 9%.', value:65}
|
||||
{type: 'armor', index: 4, text: "Red Helm", icon: 'item-redhelm', notes:'Decreases HP loss by 12%.', value:90}
|
||||
{type: 'armor', index: 5, text: "Golden Helm", icon: 'item-goldenhelm', notes:'Decreases HP loss by 15%.', value:120}
|
||||
]
|
||||
shield: [
|
||||
{type: 'armor', index: 0, text: "Shield 1", icon: 'item-clotharmor', notes:'Training armor.', value:0}
|
||||
{type: 'armor', index: 1, text: "Shield 2", icon: 'item-leatherarmor', notes:'Decreases HP loss by 3%.', value:30}
|
||||
{type: 'armor', index: 2, text: "Shield 3", icon: 'item-mailarmor', notes:'Decreases HP loss by 6%.', value:45}
|
||||
{type: 'armor', index: 3, text: "Shield 4", icon: 'item-platearmor', notes:'Decreases HP loss by 9%.', value:65}
|
||||
{type: 'armor', index: 4, text: "Shielf 5", icon: 'item-redarmor', notes:'Decreases HP loss by 12%.', value:90}
|
||||
]
|
||||
potion: {type: 'potion', text: "Potion", notes: "Recover 15 HP", value: 25, icon: 'item-flask'}
|
||||
reroll:
|
||||
type: 'reroll'
|
||||
|
|
|
|||
|
|
@ -17,17 +17,17 @@ table.customize td div
|
|||
position: relative
|
||||
display: block
|
||||
|
||||
.item-goldensword, .item-redsword, .item-bluesword, .item-morningstar, .item-axe, .item-sword2, .item-sword1, .f_shield_5, .f_shield_4, .f_shield_3, .f_shield_2, .f_shield_1, .m_shield_5, .m_shield_4, .m_shield_3, .m_shield_2, .m_shield_1, .m_head_5, .m_head_4, .m_head_3, .m_head_2, .m_head_1, .m_head_0, .f_head_5_v2, .f_head_5_v1, .f_head_4_v2, .f_head_4_v1, .f_head_3_v2, .f_head_3_v1, .f_head_2_v2, .f_head_2_v1, .f_head_1, .f_head_0, .f_hair_white, .f_hair_brown, .f_hair_black, .f_hair_blond, .m_hair_blond, .m_hair_black, .m_hair_brown, .m_hair_white, .f_armor_5, .f_armor_4, .f_armor_3, .f_armor_2, .f_armor_1, .f_armor_0_v2, .f_armor_0_v1, .m_armor_5, .m_armor_4, .m_armor_3, .m_armor_2, .m_armor_1, .m_armor_0, .f_skin_dead, .f_skin_orc, .f_skin_asian, .f_skin_black, .f_skin_white, .m_skin_dead, .m_skin_orc, .m_skin_asian, .m_skin_black, .m_skin_white {
|
||||
.weapon_6, .weapon_5, .weapon_4, .weapon_3, .weapon_2, .weapon_1, .weapon_0, .f_shield_5, .f_shield_4, .f_shield_3, .f_shield_2, .f_shield_1, .m_shield_5, .m_shield_4, .m_shield_3, .m_shield_2, .m_shield_1, .m_head_5, .m_head_4, .m_head_3, .m_head_2, .m_head_1, .m_head_0, .f_head_5_v2, .f_head_5_v1, .f_head_4_v2, .f_head_4_v1, .f_head_3_v2, .f_head_3_v1, .f_head_2_v2, .f_head_2_v1, .f_head_1, .f_head_0, .f_hair_white, .f_hair_brown, .f_hair_black, .f_hair_blond, .m_hair_blond, .m_hair_black, .m_hair_brown, .m_hair_white, .f_armor_5, .f_armor_4, .f_armor_3, .f_armor_2, .f_armor_1, .f_armor_0_v2, .f_armor_0_v1, .m_armor_5, .m_armor_4, .m_armor_3, .m_armor_2, .m_armor_1, .m_armor_0, .f_skin_dead, .f_skin_orc, .f_skin_asian, .f_skin_black, .f_skin_white, .m_skin_dead, .m_skin_orc, .m_skin_asian, .m_skin_black, .m_skin_white {
|
||||
background: url("img/BrowserQuest/habitrpg_mods/css_sprite.png") no-repeat;
|
||||
position: absolute;
|
||||
}
|
||||
.item-goldensword {background-position: 0 0; width: 90px; height: 90px}
|
||||
.item-redsword {background-position: -90px 0; width: 90px; height: 90px}
|
||||
.item-bluesword {background-position: -180px 0; width: 90px; height: 90px}
|
||||
.item-morningstar {background-position: -270px 0; width: 90px; height: 90px}
|
||||
.item-axe {background-position: -360px 0; width: 90px; height: 90px}
|
||||
.item-sword2 {background-position: -450px 0; width: 90px; height: 90px}
|
||||
.item-sword1 {background-position: -540px 0; width: 90px; height: 90px}
|
||||
.weapon_6 {background-position: 0 0; width: 90px; height: 90px}
|
||||
.weapon_5 {background-position: -90px 0; width: 90px; height: 90px}
|
||||
.weapon_4 {background-position: -180px 0; width: 90px; height: 90px}
|
||||
.weapon_3 {background-position: -270px 0; width: 90px; height: 90px}
|
||||
.weapon_2 {background-position: -360px 0; width: 90px; height: 90px}
|
||||
.weapon_1 {background-position: -450px 0; width: 90px; height: 90px}
|
||||
.weapon_0 {background-position: -540px 0; width: 90px; height: 90px}
|
||||
.f_shield_5 {background-position: -630px 0; width: 90px; height: 90px}
|
||||
.f_shield_4 {background-position: -720px 0; width: 90px; height: 90px}
|
||||
.f_shield_3 {background-position: -810px 0; width: 90px; height: 90px}
|
||||
|
|
|
|||
|
|
@ -221,11 +221,11 @@
|
|||
<div class='character-sprites'>
|
||||
{#with _user.preferences as :p}
|
||||
<span class='{:p.gender}_skin_{:p.skin}'></span>
|
||||
<span class='{head(_user)}'></span>
|
||||
<span class='{:p.gender}_hair_{:p.hair}'></span>
|
||||
<span class="{armor(_user)}"></span>
|
||||
<span class='{:p.gender}_shield_1'></span>
|
||||
<span class='item-sword1'></span>
|
||||
<span class='{:p.gender}_shield_{_user.items.shield}'></span>
|
||||
<span class='{head(_user)}'></span>
|
||||
<span class='weapon_{_user.items.weapon}'></span>
|
||||
{/}
|
||||
</div>
|
||||
<div class="lvl"><span class="badge badge-info">Lvl {_user.stats.lvl}</span></div>
|
||||
|
|
@ -353,6 +353,8 @@
|
|||
<ul class='items'>
|
||||
{#with _view.items.armor as :item}<app:item />{/}
|
||||
{#with _view.items.weapon as :item}<app:item />{/}
|
||||
{#with _view.items.head as :item}<app:item />{/}
|
||||
{#with _view.items.shield as :item}<app:item />{/}
|
||||
{#with _view.items.potion as :item}<app:item />{/}
|
||||
{#with _view.items.reroll as :item}<app:item reroll=true />{/}
|
||||
</ul>
|
||||
|
|
|
|||
Loading…
Reference in a new issue