Wonderlarr Posted December 13, 2021 Share Posted December 13, 2021 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 More sharing options...
IronHunter Posted December 13, 2021 Share Posted December 13, 2021 I am pretty sure you just need to add character ingredient to the constants.lua CHARACTER_INGREDIENT = { --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 1 Link to comment 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