Jump to content

Recommended Posts

You can set sanity gain using:

inst.components.equippable.dapperness = VALUE

Commonly used values can be found in tuning.lua at line 1937:

SANITYAURA_TINY = 100/(seg_time*32),
SANITYAURA_SMALL_TINY = 100/(seg_time*20),
SANITYAURA_SMALL = 100/(seg_time*8),
SANITYAURA_MED = 100/(seg_time*5),
SANITYAURA_LARGE = 100/(seg_time*2),
SANITYAURA_HUGE = 100/(seg_time*.5),
SANITYAURA_SUPERHUGE = 100/(seg_time*.25),

 

  • Like 1
On 10/20/2021 at 1:50 PM, -t- said:

You can set sanity gain using:


inst.components.equippable.dapperness = VALUE

Commonly used values can be found in tuning.lua at line 1937:


SANITYAURA_TINY = 100/(seg_time*32),
SANITYAURA_SMALL_TINY = 100/(seg_time*20),
SANITYAURA_SMALL = 100/(seg_time*8),
SANITYAURA_MED = 100/(seg_time*5),
SANITYAURA_LARGE = 100/(seg_time*2),
SANITYAURA_HUGE = 100/(seg_time*.5),
SANITYAURA_SUPERHUGE = 100/(seg_time*.25),

 

tysm omg <3333

On 10/20/2021 at 2:26 PM, Sneaky Axolxtl said:

The hat I made is supposed to be a garland but better...

The Garland(FLOWERHAT) and the Tam o' Shanter(WALRUSHAT) that both give sanity to the wearer are defined in scripts/prefabs/hats.lua

To add to what -t- said, dapperness is the property that gives the wearer sanity and the Garland is defined with:

inst.components.equippable.dapperness = TUNING.DAPPERNESS_TINY

The property that makes the Garland rot is:

inst.components.perishable:SetPerishTime(TUNING.PERISH_FAST)

As -t- said you'll find the DAPPERNESS and PERISH values defined in tuning.lua

DAPPERNESS_TINY = 100/(day_time*15),
DAPPERNESS_SMALL = 100/(day_time*10),
DAPPERNESS_MED = 100/(day_time*6),
DAPPERNESS_MED_LARGE = 100/(day_time*4.5),
DAPPERNESS_LARGE = 100/(day_time*3),
DAPPERNESS_HUGE = 100/(day_time),
DAPPERNESS_SUPERHUGE = 100/(day_time*0.5),

PERISH_ONE_DAY = 1*total_day_time*perish_warp,
PERISH_TWO_DAY = 2*total_day_time*perish_warp,
PERISH_SUPERFAST = 3*total_day_time*perish_warp,
PERISH_FAST = 6*total_day_time*perish_warp,
PERISH_FASTISH = 8*total_day_time*perish_warp,
PERISH_MED = 10*total_day_time*perish_warp,
PERISH_SLOW = 15*total_day_time*perish_warp,
PERISH_PRESERVED = 20*total_day_time*perish_warp,
PERISH_SUPERSLOW = 40*total_day_time*perish_warp,

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...