From 07bcaff6d56eb71bea2cdc51269aaabb0713bd51 Mon Sep 17 00:00:00 2001 From: Iamgoofball Date: Sat, 2 Sep 2023 13:10:55 -0700 Subject: [PATCH] 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 :cl: fix: You can no longer create non-synthesizable chemicals with bees. /:cl: --------- Co-authored-by: Zephyr <12817816+ZephyrTFA@users.noreply.github.com> Co-authored-by: Aki Ito <11748095+ExcessiveUseOfCobblestone@users.noreply.github.com> --- code/modules/mob/living/basic/farm_animals/bee/_bee.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/mob/living/basic/farm_animals/bee/_bee.dm b/code/modules/mob/living/basic/farm_animals/bee/_bee.dm index a175deacb93..655d08aa864 100644 --- a/code/modules/mob/living/basic/farm_animals/bee/_bee.dm +++ b/code/modules/mob/living/basic/farm_animals/bee/_bee.dm @@ -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