rons0n Posted February 12, 2015 Share Posted February 12, 2015 This is out of general curiosity, but how do i change the penalty of Waxwelljournal? I thought for sure it was:local function canread(inst) return inst.components.sanity:GetMaxWithPenalty() >= TUNING.SHADOWWAXWELL_SANITY_PENALTYendAnd then just change the tuning to whatever number i want it to be but it still penalizes me heavily. I have a character with 200 Sanity, using it once drains me to 90, using it twice drains me to 35. Any help is appreciated thanks Link to comment https://forums.kleientertainment.com/forums/topic/50876-quick-questionprefab/ Share on other sites More sharing options...
rezecib Posted February 13, 2015 Share Posted February 13, 2015 @rons0n, As it's written now, the sanity penalty is calculated by just going through every entity in the world and seeing if they have a defined sanity penalty. So if you have preexisting shadowwaxwells, their penalties will be added to it. So it sounds like you had one shadowwaxwell already (penalty of 55, bringing you to 145) then made a second (causing the penalty to be calculated, based on two shadowwaxwells, 110 bringing you to 90), then made a third, (165 bringing you to 35). Changing the tuning value in your modmain would probably work, but you could also modify the inst.components.sanity.penalty of shadowwaxwell in a postinit, or even override RecalculatePenalty() for your character's sanity component. Link to comment https://forums.kleientertainment.com/forums/topic/50876-quick-questionprefab/#findComment-612536 Share on other sites More sharing options...
rons0n Posted February 13, 2015 Author Share Posted February 13, 2015 (edited) @rons0n, As it's written now, the sanity penalty is calculated by just going through every entity in the world and seeing if they have a defined sanity penalty. So if you have preexisting shadowwaxwells, their penalties will be added to it. So it sounds like you had one shadowwaxwell already (penalty of 55, bringing you to 145) then made a second (causing the penalty to be calculated, based on two shadowwaxwells, 110 bringing you to 90), then made a third, (165 bringing you to 35). Changing the tuning value in your modmain would probably work, but you could also modify the inst.components.sanity.penalty of shadowwaxwell in a postinit, or even override RecalculatePenalty() for your character's sanity component. @rezecib Haha i just realized this the moment you made your post. But now have a better understanding thanks! Edited February 13, 2015 by rons0n Link to comment https://forums.kleientertainment.com/forums/topic/50876-quick-questionprefab/#findComment-612542 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