fix(numbers): gentler damage taken

This commit is contained in:
Kalista Payne
2026-01-12 16:36:28 -06:00
parent 2a49d2e30e
commit 225259cd51
+5 -1
View File
@@ -115,7 +115,11 @@ function _subtractPoints (user, task, stats, delta) {
if (conBonus < 0.1) conBonus = 0.1;
const hpMod = delta * conBonus * task.priority * 2; // constant 2 multiplier for better results
stats.hp += Math.round(hpMod); // round to 0dp
if (hpMod > -1) {
stats.hp -= 1;
} else {
stats.hp += Math.ceil(hpMod); // round to 0dp
}
return stats.hp;
}