You can no longer create non-synthesizable chemicals with bees. (#78072)

## About The Pull Request

You can no longer create non-synthesizable chemicals with bees.

## Why It's Good For The Game

Fixes the ability to mass produce reagents that aren't supposed to be
directly synthesized.

## Changelog

🆑
fix: You can no longer create non-synthesizable chemicals with bees.
/🆑

---------

Co-authored-by: Zephyr <12817816+ZephyrTFA@users.noreply.github.com>
Co-authored-by: Aki Ito <11748095+ExcessiveUseOfCobblestone@users.noreply.github.com>
This commit is contained in:
Iamgoofball
2023-09-02 13:10:55 -07:00
committed by GitHub
parent f0b1f0a30d
commit 07bcaff6d5
@@ -258,6 +258,9 @@
var/datum/reagent/chemical = needle.reagents.get_master_reagent()
if(isnull(chemical))
return
if(!(chemical.chemical_flags & REAGENT_CAN_BE_SYNTHESIZED))
to_chat(user, span_warning("[chemical.name] cannot be inserted into a bee's genome!"))
return
if(chemical.type == queen.beegent?.type)
to_chat(user, span_warning("[queen] already has this chemical!"))
return