Sanity: Descent Into Madness

Sanity: Descent Into Madness

2M Downloads

Un-hardcode garland sanity rate

Treeways opened this issue ยท 0 comments

commented

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