Jump to content

Recommended Posts

So I found this thread in the forum and I'm not sure where to put this coding (or really any coding) into the modmain.lua for my mod:

AddPrefabPostInit("nightmarefuel", function(inst)    inst:AddComponent("edible")    inst.components.edible.foodtype = GLOBAL.FOODTYPE.HORRIBLE    inst.components.edible.healthvalue = x    inst.components.edible.sanityvalue = y    inst.components.edible.hungervalue = zend

I also kinda want to see if you could make dark petals give a character sanity(when you pick evil flowers) and health like how the normal petals do and I wanna know how to add WX-78's "not a picky eater" perk since the character I'm modding is a robot

51 minutes ago, SuperDavid said:

Put this in YOURCHARACTER.lua inside the master_postinit for WX not a picky eater perk


inst.components.eater.ignoresspoilage = true

 

I had been looking for this for days with no luck until now! Thank you!

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...