mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-24 00:12:07 +00:00
Revival and expansion of #1002 (thanks Iamgoofball!) Creates a reagent blacklist for use with random chem stuff like pills! - Currently blacklists admin-only, antag-only, and other bad-times chems like mutationtoxin. Creates a SECOND blacklist for further refinement, intended for use with strange plants in botany. - Currently just blocks alcohol / alcoholic bar drinks from the random chems to avoid "watering down" the selections Creates a new helper proc/get_random_chemical() to return a randomly selected chemical/reagent that is not blacklisted. - If passed with no arguments, will only look at the first blacklist. - If passed with an argument, will also include the second "plant" blacklist - Will attempt to select a random chemical, then compare it to the blacklisted chems to see if it is acceptable - If the chem is on the blacklist, it will start over until it finds an acceptable one Rewrote the random chemical portion of Strange Plants to utilize the new get_random_chemical proc rather than rely on a hardcoded "whitelist" Updates Strange Plants to not only contain Nutriment - They can now contain Nutriment, Plant-Matter, Protein... OR A COMBO OF THEM! Hydro trays and soil now recognize Nutriment, Plant-Matter, and Protein as actual nutrients for plants, as well as (slightly) improving yield modifiers. Extension of #2596 (thanks Fox for the temp-fix) Fixes #2416 Fixes #2439 (again)