mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
remove poormanscron() from refresh for now, only in setInterval
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// Generated by CoffeeScript 1.3.3
|
||||
var content, expModifier, hpModifier, score, tally, updateStats;
|
||||
var content, expModifier, hpModifier, updateStats;
|
||||
|
||||
content = require('./content');
|
||||
|
||||
@@ -55,7 +55,7 @@ updateStats = function(user, stats) {
|
||||
}
|
||||
};
|
||||
|
||||
module.exports.score = score = function(spec) {
|
||||
module.exports.score = function(spec) {
|
||||
var adjustvalue, cron, delta, direction, exp, hp, lvl, money, sign, task, type, user, value, _ref, _ref1;
|
||||
if (spec == null) {
|
||||
spec = {
|
||||
@@ -108,7 +108,7 @@ module.exports.score = score = function(spec) {
|
||||
return delta;
|
||||
};
|
||||
|
||||
module.exports.tally = tally = function(model) {
|
||||
module.exports.tally = function(model) {
|
||||
var absVal, completed, expTally, key, lvl, task, todoTally, type, user, value, _ref;
|
||||
user = model.at('_user');
|
||||
todoTally = 0;
|
||||
@@ -117,7 +117,7 @@ module.exports.tally = tally = function(model) {
|
||||
_ref = [task.get('type'), task.get('value'), task.get('completed')], type = _ref[0], value = _ref[1], completed = _ref[2];
|
||||
if (type === 'todo' || type === 'daily') {
|
||||
if (!completed) {
|
||||
score({
|
||||
module.exports.score({
|
||||
user: user,
|
||||
task: task,
|
||||
direction: 'down',
|
||||
|
||||
Reference in New Issue
Block a user