[#1977] APIv2 WIP - start of a framework where operations are shared
between client & server. If the op is called on the client, it updates the user & then POSTs to the server with op of the same name. If called on server, it updates the user and user.save()s
This commit is contained in:
@@ -40,7 +40,7 @@ div(modal='user.flags.contributor')
|
||||
{{user.profile.name}}, you awesome person! You're now a level {{user.contributor.level}} contributor for helping HabitRPG. See <a href='http://habitrpg.wikia.com/wiki/Contributor_Rewards' target='_blank'>what prizes you've earned for your contribution!</a>
|
||||
|
||||
.modal-footer
|
||||
button.btn.btn-default.cancel(ng-click='set("flags.contributor",false)') Ok
|
||||
button.btn.btn-default.cancel(ng-click='set("{flags.contributor":false})') Ok
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -66,4 +66,4 @@
|
||||
span(class='weapon_healer_6')
|
||||
|
||||
.modal-footer
|
||||
button.btn.btn-default.cancel(ng-click='rerollSubmit()') Select
|
||||
button.btn.btn-default.cancel(ng-click='selectedClass && changeClass(selectedClass)') Select
|
||||
@@ -9,7 +9,7 @@ div(modal='user.stats.hp <= 0', options='{backdrop:true, keyboard:false, backdro
|
||||
.row-fluid
|
||||
.span4
|
||||
p
|
||||
a.btn.btn-danger.btn-large.notification-action(ng-click='User.revive()') Continue
|
||||
a.btn.btn-danger.btn-large.notification-action(ng-click='user.ops.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 Health Potion if you falter!
|
||||
|
||||
@@ -10,7 +10,7 @@ div(modal='modals.dropsEnabled')
|
||||
p
|
||||
span.item-drop-icon(class='Pet_Egg_Wolf', style='margin-left: 0px')
|
||||
span.
|
||||
You've unlocked the Drop System! Now when you complete tasks, you have a small chance of finding an item. You just found a <strong>{{Items.eggs.Wolf.text}}</strong> Egg! {{Items.eggs.Wolf.notes}}
|
||||
You've unlocked the Drop System! Now when you complete tasks, you have a small chance of finding an item. You just found a <strong>{{Content.eggs.Wolf.text}}</strong> Egg! {{Content.eggs.Wolf.notes}}
|
||||
br
|
||||
p.
|
||||
<span class='Pet_Currency_Gem item-drop-icon'></span> If you've got your eye on a pet, but can't wait any longer for it to drop, use Gems in <strong>Options > Inventory</strong> to buy one!
|
||||
|
||||
Reference in New Issue
Block a user