This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Uses a reaction to spawn a living creature that uses the materials of the reagents as body components. Reactions must begin with LUA_HOOK_CONSTRUCTCREATURE | |
--[[ | |
You can have as many reagents as you like. | |
Reagents starting with USE will replace materials used in the creature, in the order that they are defined. | |
Make sure that each USE reagent consists of one item only. Otherwise, the second item taken will be counted as the second material. | |
Using tools as intermediary reagents is probably your best option for expensive creatures. | |
The product field determines the creature produced, where the material is CREATURE_MAT:(your creature):NONE. The probability should be set at 0 to avoid actually creating a boulder. | |
If you want to select a specific caste, the product field should have a PRODUCT_DIMENSION for the caste. | |
However, to make the creature's color show up based on its material, the creature must have 16 castes, one for each color. |