Change giant chestplate to regen 3

This commit is contained in:
2026-10-01 20:55:58 -03:00
parent 8396e8e895
commit 6e5703a482
3 changed files with 13 additions and 13 deletions
+3 -3
View File
@@ -22,8 +22,8 @@ interface UnhurtEffect {
}
// how long each unhurt effect is given for, topped up whenever it runs out, so it outlasts being hurt by at most this.
// a multiple of regeneration I and II's ticks between heals, so topping it up keeps their pace
const UNHURT_EFFECT_TICKS = 50;
// two of regeneration's heals at that level (every 50 ticks, halving each level), so topping it up keeps its pace
const unhurt_effect_ticks = (amplifier: number) => Math.max(1, 50 >> amplifier) * 2;
export function register_curios(ctx: ServerContext) {
const active = active_slots(ctx.tags);
@@ -111,7 +111,7 @@ export function register_curios(ctx: ServerContext) {
// only once what they have runs out, or when it's weaker. a stronger one, like from a potion, is left alone
const current = player.effect(effect);
if (current && current.amplifier >= amplifier) continue;
player.add_effect(effect, UNHURT_EFFECT_TICKS, { amplifier });
player.add_effect(effect, unhurt_effect_ticks(amplifier), { amplifier });
}
}
});