croissantnova/SanityDescentIntoMadness

Un-hardcode garland sanity rate

Opened this issue · 0 comments

It'd be great if the garland had a configurable passive sanity rate in ticks:

ItemStack headItem = player.getItemBySlot(EquipmentSlot.HEAD);
if (headItem.is(ItemRegistry.GARLAND.get()))
{
// TODO: unhardcode
passive -= .00005 * ConfigProxy.getPosMul(dim);
if (garlandTimer <= 0)
headItem.hurtAndBreak(player.isInWaterOrRain() ? 2 : 1, player, ent -> {});
}
if (garlandTimer <= 0)
garlandTimer = MAX_GARLAND_TIMER;

Basil