From a9d530dc712e913f7ada9f828f514b23b61de314 Mon Sep 17 00:00:00 2001 From: Time-Green Date: Fri, 30 Dec 2022 00:54:58 +0100 Subject: [PATCH] Unfuckies pod blood (#72323) I broke it in #72220 Thanks to @Fikou for catching this list(variable = 0.1) doesnt work on byond, so I last-minute improvised and changed it to list("[variable]" = 0.1), using a string instead of a typepath. I already tested it thoroughly so decided it was probably good without thinking of it anymore :cl: fix: fixes pod blood I swear /:cl: Co-authored-by: Fikou <23585223+Fikou@users.noreply.github.com> --- code/modules/hydroponics/grown/replicapod.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/modules/hydroponics/grown/replicapod.dm b/code/modules/hydroponics/grown/replicapod.dm index eacdcbe5fb4..c8736d769f7 100644 --- a/code/modules/hydroponics/grown/replicapod.dm +++ b/code/modules/hydroponics/grown/replicapod.dm @@ -205,10 +205,11 @@ podman.set_cloned_appearance() //Get the most plentiful reagent, if there's none: get water - var/most_plentiful_reagent = list(/datum/reagent/water = 0) + var/list/most_plentiful_reagent = list(/datum/reagent/water = 0) for(var/reagent in reagents_add) if(reagents_add[reagent] > most_plentiful_reagent[most_plentiful_reagent[1]]) - most_plentiful_reagent = list("[reagent]" = reagents_add[reagent]) + most_plentiful_reagent.Cut() + most_plentiful_reagent[reagent] = reagents_add[reagent] podman.dna.species.exotic_blood = most_plentiful_reagent[1] investigate_log("[key_name(mind)] cloned as a podman via [src] in [parent]", INVESTIGATE_BOTANY)