v3.0.1: salt cube's regen reduction is now paused in locked floors

This commit is contained in:
Evan Debenham
2025-03-07 14:38:14 -05:00
parent 1a46ae3af2
commit 20c60e6280
2 changed files with 7 additions and 3 deletions

View File

@@ -1387,8 +1387,8 @@ items.trinkets.ratskull.stats_desc=At its current level this trinket will make r
items.trinkets.saltcube.name=salt cube
items.trinkets.saltcube.desc=This large salt crystal was cut into an almost perfect cube shape, and it somehow managed to drain half the water from the alchemy pot instead of dissolving. It seems to be magically dehydrating and preserving the food you eat, extending the satiety you get, but also lessening your health restoration when not starving.
items.trinkets.saltcube.typical_stats_desc=Typically this trinket will increase the amount of time before you grow hungry by _%1$s%%_, but will also reduce your rate of health regeneration by _%2$s%%_.
items.trinkets.saltcube.stats_desc=At its current level this trinket will increase the amount of time before you grow hungry by _%1$s%%_, but will also reduce your rate of health regeneration by _%2$s%%_.
items.trinkets.saltcube.typical_stats_desc=Typically this trinket will increase the amount of time before you grow hungry by _%1$s%%_, but will also reduce your rate of health regeneration by _%2$s%%_ unless the floor is locked.
items.trinkets.saltcube.stats_desc=At its current level this trinket will increase the amount of time before you grow hungry by _%1$s%%_, but will also reduce your rate of health regeneration by _%2$s%%_ unless the floor is locked.
items.trinkets.shardofoblivion.name=shard of oblivion
items.trinkets.shardofoblivion.desc=After stewing in the alchemy pot, this small shard of cursed metal has changed to be made of... nothing? Light seems to bend around it, and it hovers in place when you aren't holding it. The shard seems to be magically drawing power from your ignorance, so it's probably best to not think about it too much.

View File

@@ -75,7 +75,11 @@ public class Regeneration extends Buff {
delay /= RingOfEnergy.artifactChargeMultiplier(target);
}
}
delay /= SaltCube.healthRegenMultiplier();
//salt cube is turned off while regen is disabled.
if (target.buff(LockedFloor.class) == null) {
delay /= SaltCube.healthRegenMultiplier();
}
partialRegen += 1f / delay;