From d3e3775ecd01be2230f9e06e20007cabda0c75bc Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Tue, 17 Dec 2013 00:53:23 -0700 Subject: [PATCH] [https://github.com/HabitRPG/habitrpg/issues/2001] hotfix, perception increases GP by .03/pt --- dist/habitrpg-shared.js | 2 +- script/index.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/habitrpg-shared.js b/dist/habitrpg-shared.js index 9ca5c4f56e..49a4b80213 100644 --- a/dist/habitrpg-shared.js +++ b/dist/habitrpg-shared.js @@ -11530,7 +11530,7 @@ var process=require("__browserify_process");(function() { intMod = 1 + (user._statsComputed.int / 100); stats.exp += Math.round(delta * XP * intMod * task.priority * crit); gpMod = delta * task.priority * crit; - gpMod *= user._statsComputed.per * .03; + gpMod *= 1 + user._statsComputed.per * .03; 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() { diff --git a/script/index.coffee b/script/index.coffee index 7f47be76db..cd371aeeff 100644 --- a/script/index.coffee +++ b/script/index.coffee @@ -679,7 +679,7 @@ api.wrap = (user) -> # GP modifier gpMod = delta * task.priority * crit - gpMod *= (user._statsComputed.per *.03) # Factor in PER + gpMod *= (1 + user._statsComputed.per *.03) # Factor in PER stats.gp += if task.streak streakBonus = task.streak / 100 + 1 # eg, 1-day streak is 1.1, 2-day is 1.2, etc