From e0c82546c728fb8f45e589a6cfba34b61302e0e3 Mon Sep 17 00:00:00 2001 From: Alphas00 <154434082+Alphas00@users.noreply.github.com> Date: Mon, 9 Sep 2024 22:06:51 +0200 Subject: [PATCH] Bee banned reagents Added a list of reagents that cannot be injected into queen bees --- .../mob/living/simple_animal/hostile/bees.dm | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/code/modules/mob/living/simple_animal/hostile/bees.dm b/code/modules/mob/living/simple_animal/hostile/bees.dm index 89264441..e42ab836 100644 --- a/code/modules/mob/living/simple_animal/hostile/bees.dm +++ b/code/modules/mob/living/simple_animal/hostile/bees.dm @@ -1,3 +1,4 @@ +GLOBAL_LIST_INIT(bee_banned_chem, list(/datum/reagent/fermi_fat, /datum/reagent/fermi_slim)) #define BEE_IDLE_ROAMING 70 //The value of idle at which a bee in a beebox will try to wander #define BEE_IDLE_GOHOME 0 //The value of idle at which a bee will try to go home @@ -272,13 +273,16 @@ queen.paxed = TRUE else var/datum/reagent/R = GLOB.chemical_reagents_list[S.reagents.get_master_reagent_id()] - if(R && S.reagents.has_reagent(R.type, 5)) - S.reagents.remove_reagent(R.type,5) - queen.assign_reagent(R) - user.visible_message("[user] injects [src]'s genome with [R.name], mutating it's DNA!","You inject [src]'s genome with [R.name], mutating it's DNA!") - name = queen.name + if(!is_type_in_list(R, GLOB.bee_banned_chem)) + if(R && S.reagents.has_reagent(R.type, 5)) + S.reagents.remove_reagent(R.type,5) + queen.assign_reagent(R) + user.visible_message("[user] injects [src]'s genome with [R.name], mutating it's DNA!","You inject [src]'s genome with [R.name], mutating it's DNA!") + name = queen.name + else + to_chat(user, "You don't have enough units of that chemical to modify the bee's DNA!") else - to_chat(user, "You don't have enough units of that chemical to modify the bee's DNA!") + to_chat(user, "The bee rejects the injection! This chem is incompatible!") ..()