Eremus007 Posted January 13, 2016 Share Posted January 13, 2016 I am trying to write a code so my character gains 5 sanity (sanitymult.tiny) when he is has completely mined a gold vein or boulder.This code doesn't let the game crash but it doesn't work. Like this in the modmain: function onfinish (inst, destroyer) if inst:HasTag ("boulder" and destroyer and destroyer:HasTag("dwarf") then inst.components.sanity:DoDelta(TUNING.SANITY_TINY) endend Can someone tell me what I am doing wrong?I would really appreciate it Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now