Sneaky Axolxtl Posted October 20, 2021 Share Posted October 20, 2021 I'm using the Custom Item Templates mod by <default>. The hat I made is supposed to be a garland but better, how do I make the hat give sanity? Link to comment https://forums.kleientertainment.com/forums/topic/134567-help-how-to-make-hats-give-sanity/ Share on other sites More sharing options...
-LukaS- Posted October 20, 2021 Share Posted October 20, 2021 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), 1 Link to comment https://forums.kleientertainment.com/forums/topic/134567-help-how-to-make-hats-give-sanity/#findComment-1505744 Share on other sites More sharing options...
Sneaky Axolxtl Posted October 22, 2021 Author Share Posted October 22, 2021 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 Link to comment https://forums.kleientertainment.com/forums/topic/134567-help-how-to-make-hats-give-sanity/#findComment-1506268 Share on other sites More sharing options...
Flit Posted November 5, 2021 Share Posted November 5, 2021 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, Link to comment https://forums.kleientertainment.com/forums/topic/134567-help-how-to-make-hats-give-sanity/#findComment-1510903 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now