mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-31 23:11:15 +00:00
Show meats in inventory
This commit is contained in:
parent
f71e2fbade
commit
db132fad19
3 changed files with 14 additions and 2 deletions
|
|
@ -56,6 +56,10 @@ items = module.exports.items =
|
|||
{index: 15, text: 'Zombie Wolf', name: 'wolfZombie', icon: 'Pet-Wolf-Zombie.png', value: 3}
|
||||
{index: 16, text: 'Wolf', name: 'wolfBorder', icon: 'wolf_border.png', value: 3}
|
||||
]
|
||||
meats: [
|
||||
{index: 0, name: 'Red Meat', text: 'Turns your animal into a mean red meat eater.'}
|
||||
{index: 1, name: 'Blue Meat', text: 'Turns your animal into Neo.' }
|
||||
]
|
||||
|
||||
# add "type" to each item, so we can reference that as "weapon" or "armor" in the html
|
||||
_.each ['weapon', 'armor', 'head', 'shield'], (key) ->
|
||||
|
|
|
|||
|
|
@ -181,6 +181,11 @@
|
|||
<inventory:>
|
||||
<div class='row-fluid'>
|
||||
<div class='span6 well'>
|
||||
testing
|
||||
{#if not(_user.items.meats)}
|
||||
<p>You don't have any meat yet.</p>
|
||||
{/if}
|
||||
{#each _user.items.meats as :meat}
|
||||
{:meat}
|
||||
{/each}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,8 @@
|
|||
<modals:>
|
||||
<app:modals:modal modalId='dropsEnabled-modal' header="Drops Enabled!">
|
||||
<app:userTokens/>
|
||||
<p>Highly discouraged because red tasks provide good incentive to improve (<a target="_blank" href="https://github.com/lefnire/habitrpg#all-my-tasks-are-red-im-dying-too-fast">read more</a>). However, this becomes necessary after long bouts of bad habits.</p>
|
||||
<p>You've unlocked the drop system.</p>
|
||||
<@footer>
|
||||
<button data-dismiss="modal" class="btn btn-success">Ok</button>
|
||||
</@footer>
|
||||
</app:modals:modal>
|
||||
Loading…
Reference in a new issue