mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
Merge branch 'develop'
This commit is contained in:
commit
b0b591dc96
3 changed files with 39 additions and 36 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -5,3 +5,4 @@ node_modules
|
||||||
*.swp
|
*.swp
|
||||||
.idea*
|
.idea*
|
||||||
config.json
|
config.json
|
||||||
|
npm-debug.log
|
||||||
|
|
@ -143,8 +143,10 @@ updateStats = (model, newStats, batch) ->
|
||||||
if newStats.exp >= tnl
|
if newStats.exp >= tnl
|
||||||
silent = true
|
silent = true
|
||||||
user.set('stats.exp', newStats.exp)
|
user.set('stats.exp', newStats.exp)
|
||||||
|
while newStats.exp >= tnl # keep levelling up
|
||||||
newStats.exp -= tnl
|
newStats.exp -= tnl
|
||||||
obj.stats.lvl++
|
obj.stats.lvl++
|
||||||
|
tnl = algos.tnl(obj.stats.lvl)
|
||||||
obj.stats.hp = 50
|
obj.stats.hp = 50
|
||||||
|
|
||||||
obj.stats.exp = newStats.exp
|
obj.stats.exp = newStats.exp
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@
|
||||||
</div>
|
</div>
|
||||||
<app:newTask type="reward" inputValue="{_newReward}" placeHolder="New Reward" />
|
<app:newTask type="reward" inputValue="{_newReward}" placeHolder="New Reward" />
|
||||||
|
|
||||||
{#if _user.flags.petsEnabled}
|
{#if equals(_user.flags.petsEnabled,true)}
|
||||||
<div class='tabbable tabs-below'>
|
<div class='tabbable tabs-below'>
|
||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
|
|
@ -128,7 +128,7 @@
|
||||||
<input class="btn" type="submit" value="Add" />
|
<input class="btn" type="submit" value="Add" />
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<task:>
|
<task:>
|
||||||
<li data-id={{:task.id}} class="task {taskClasses(:task.type, :task.completed, :task.value, :task.repeat)}">
|
<li data-id={{:task.id}} class="task {taskClasses(:task.type, :task.completed, :task.value, :task.repeat)}">
|
||||||
<pre>
|
<pre>
|
||||||
<div class="task-meta-controls">
|
<div class="task-meta-controls">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue