mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-03 00:09:41 +00:00
gpMod typo
This commit is contained in:
parent
b5c7f554ab
commit
9d49176997
2 changed files with 2 additions and 3 deletions
4
dist/habitrpg-shared.js
vendored
4
dist/habitrpg-shared.js
vendored
|
|
@ -10715,7 +10715,7 @@ var process=require("__browserify_process");(function() {
|
|||
newHistory.push({
|
||||
date: moment(group[0].date).toDate(),
|
||||
value: _.reduce(group, (function(m, obj) {
|
||||
return m + api.value;
|
||||
return m + obj.value;
|
||||
}), 0) / group.length
|
||||
});
|
||||
return true;
|
||||
|
|
@ -11614,7 +11614,7 @@ var process=require("__browserify_process");(function() {
|
|||
stats.exp += Math.round(delta * intBonus * task.priority * _crit * 6);
|
||||
perBonus = 1 + user._statsComputed.per * .02;
|
||||
gpMod = delta * task.priority * _crit * perBonus;
|
||||
return gpMod *= stats.gp += task.streak ? (streakBonus = task.streak / 100 + 1, afterStreak = gpMod * streakBonus, gpMod > 0 ? user._tmp.streakBonus = afterStreak - gpMod : void 0, afterStreak) : gpMod;
|
||||
return stats.gp += task.streak ? (streakBonus = task.streak / 100 + 1, afterStreak = gpMod * streakBonus, gpMod > 0 ? user._tmp.streakBonus = afterStreak - gpMod : void 0, afterStreak) : gpMod;
|
||||
};
|
||||
subtractPoints = function() {
|
||||
var conBonus, hpMod;
|
||||
|
|
|
|||
|
|
@ -704,7 +704,6 @@ api.wrap = (user) ->
|
|||
# TODO Increases Gold gained from tasks by .3% per point.
|
||||
perBonus = (1 + user._statsComputed.per *.02)
|
||||
gpMod = (delta * task.priority * _crit * perBonus)
|
||||
gpMod *=
|
||||
stats.gp +=
|
||||
if task.streak
|
||||
streakBonus = task.streak / 100 + 1 # eg, 1-day streak is 1.1, 2-day is 1.2, etc
|
||||
|
|
|
|||
Loading…
Reference in a new issue