Jump to content

Adding my own character ingredients

Recommended Posts

I'd like to add my own character ingredients to my mod. By this I mean non-item ingredients, an example being how the Tell-tale Heart, (aka reviver) costs 40 health to craft.

I was thinking I would need to modify the builder component via AddComponentPostInit but I wasn't sure if there was an easier way or not.

Link to comment
Share on other sites

I am pretty sure you just need to add character ingredient to the constants.lua

    --NOTE: Value is used as key for NAME string and inventory image
    HEALTH = "decrease_health",
    MAX_HEALTH = "half_health",
    SANITY = "decrease_sanity",
    MAX_SANITY = "half_sanity",
	OLDAGE = "decrease_oldage",

Then the builder component needs its RemoveIngredients and HasCharacterIngredient functions updated by appending to it. Which can be done using your addcomponentpostinit

  • Like 1
Link to comment
Share on other sites

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