Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Soup recipes that make items spawn the correct number of items (tgsta…
…tion#78120) ## About The Pull Request Soup recipes, that make items, spawn the correct number of items per reaction instead of just one item Soup recipes, that make and consume items, re-add unused reagents Soup recipes that produce no reagents do not delete all required ingredients ## Why It's Good For The Game Soup recipes should be correctly followed, however, there's some issues that happen with a soup recipe creates an item with no corresponding soup reagents. 1. Only 1 item is produced, no matter how many reagents or ingredients are used 2. All ingredients that are required_ingredients are deleted, this is done because the standard soup behavior would have transferred some of the reagents from any "required_ingredients into the soup. However, since no soup is made, the ingredients are wasted. 3. The reagents for the soup recipe itself are consumed to the highest multiple, even if there is insufficient required_ingredients in the pot. This PR ensure the proper number of items are spawned, the proper amount of required_reagents are used, and the proper amount of ingredients are used. Fixes tgstation#77821 ## Changelog :cl: fix: Soup recipes, that make items, spawn the correct number of items per reaction instead of just one item fix: Soup recipes, that make items, consumes the correct number of reagents instead of the largest multiple of the reagents /:cl: --------- Co-authored-by: Jacquerel <[email protected]>
- Loading branch information