The StarvingOne Posted November 18, 2024 Share Posted November 18, 2024 I am trying to create a custom character mod with a character specific crafting recipe, that removes monster sanity drain or possibly reduces it greatly. Is it possible in DST? Link to comment https://forums.kleientertainment.com/forums/topic/160717-hat-that-removes-monster-sanity-drain/ Share on other sites More sharing options...
yanecc Posted November 18, 2024 Share Posted November 18, 2024 (edited) Certainly. You could do something like Wendy does -- inst.components.sanity:AddSanityAuraImmunity("ghost") local function OnEquip(inst, owner) if owner.components.sanity ~= nil then owner.components.sanity:AddSanityAuraImmunity("monster") end end local function OnUnequip(inst, owner) if owner.components.sanity ~= nil then owner.components.sanity:RemoveSanityAuraImmunity("monster") end end Edited November 18, 2024 by yanecc 1 Link to comment https://forums.kleientertainment.com/forums/topic/160717-hat-that-removes-monster-sanity-drain/#findComment-1757592 Share on other sites More sharing options...
gaymime Posted November 19, 2024 Share Posted November 19, 2024 spider hat does this for spiders, maybe check there first? Link to comment https://forums.kleientertainment.com/forums/topic/160717-hat-that-removes-monster-sanity-drain/#findComment-1757633 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