mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-03 08:21:07 +00:00
rewrite2 add death
This commit is contained in:
parent
a172214bf1
commit
4a372bfc98
3 changed files with 17 additions and 32 deletions
15
views/modals/death.jade
Normal file
15
views/modals/death.jade
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
div(modal='user.stats.hp <= 0', options='{backdrop:true, keyboard:false, backdropClick:false}')
|
||||
.modal-body
|
||||
.row-fluid
|
||||
.span4
|
||||
figure.notification-character
|
||||
img(src='/img/sprites/dead.png')
|
||||
.span8
|
||||
h2 You Died!
|
||||
.row-fluid
|
||||
.span4
|
||||
p
|
||||
a.btn.btn-danger.btn-large.notification-action(ng-click='revive()') Continue
|
||||
.span8
|
||||
p
|
||||
| You've lost a level, all your gold, and a random piece of equipment. Arise, Habiteer, and try again! Curb those negative Habits, be vigilant in completion of Dailies, and hold death at arm's length with a Potion if you falter!
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
include ./achievements
|
||||
include ./login
|
||||
include ./reroll
|
||||
include ./reroll
|
||||
include ./death
|
||||
|
|
@ -1,36 +1,5 @@
|
|||
<modals:>
|
||||
|
||||
<app:avatar:modals />
|
||||
<app:settings:modals />
|
||||
<app:pets:modals />
|
||||
<app:alerts:modals />
|
||||
<app:rewards:modals />
|
||||
<app:tasks:modals />
|
||||
|
||||
<!-- Game Over Modal -->
|
||||
<div style="{#unless lt(_user.stats.hp,1)}display:none;{/}">
|
||||
<app:modals:modal noDismiss=true modalId='dead-modal'>
|
||||
<div class='row-fluid'>
|
||||
<div class='span4'>
|
||||
<figure class="notification-character">
|
||||
<img src="/img/sprites/dead.png">
|
||||
</figure>
|
||||
</div>
|
||||
<div class='span8'>
|
||||
<h2>You Died!</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class='row-fluid'>
|
||||
<div class='span4'>
|
||||
<p><a x-bind=click:revive class="btn btn-danger btn-large notification-action">Continue</a></p>
|
||||
</div>
|
||||
<div class='span8'>
|
||||
<p>You've lost a level, all your gold, and a random piece of equipment. Arise, Habiteer, and try again! Curb those negative Habits, be vigilant in completion of Dailies, and hold death at arm's length with a Potion if you falter!</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</app:modals:modal>
|
||||
</div>
|
||||
|
||||
<!-- Buy more Gems modal -->
|
||||
<app:modals:modal modalId='more-gems-modal' header="Out Of Gems">
|
||||
|
|
|
|||
Loading…
Reference in a new issue