About This File
This is a small API that augments how recipes work. The Ingredient class now has a fourth constructor argument, a list of prefab tags. Ingredients with this argument specified will only qualify to be used in the recipe if the prefab has all of the specified tags.
Example:
Recipe("goldnugget", {Ingredient("rocks", 4, nil, {"magic"})}, RECIPETABS.REFINE, TECH.MAGIC_TWO)
This recipe allows the crafting of four rocks into one gold nugget, but only if the rocks have the tag "magic".
NOTE: This mod overwrites the functions CanBuild and RemoveIngredients in the builder component.
THIS FILE IS DISCONTINUED. THE MAIN PROJECT CAN BE FOUND HERE.
What's New in Version 1.0 See changelog
Released
- Added tag recognition to recipes.
Recommended Comments
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