diff --git a/code/modules/mob/living/carbon/life.dm b/code/modules/mob/living/carbon/life.dm index 0d684e19024b..318ffba79184 100644 --- a/code/modules/mob/living/carbon/life.dm +++ b/code/modules/mob/living/carbon/life.dm @@ -123,14 +123,11 @@ adjustOxyLoss(3) failed_last_breath = TRUE if(oxyloss <= OXYGEN_DAMAGE_CHOKING_THRESHOLD && stat == CONSCIOUS) - to_chat(src, "You hold in your breath!") + to_chat(src, span_userdanger("You hold in your breath!")) else //Try and drink water - var/datum/reagents/tempr = our_turf.liquids.take_reagents_flat(CHOKE_REAGENTS_INGEST_ON_BREATH_AMOUNT) - tempr.trans_to(src, tempr.total_volume, methods = INGEST) - qdel(tempr) - visible_message("[src] chokes on water!", \ - "You're choking on water!") + our_turf.liquids.liquid_group.transfer_to_atom(src, CHOKE_REAGENTS_INGEST_ON_BREATH_AMOUNT) + visible_message(span_warning("[src] chokes on water!"), span_userdanger("You're choking on water!")) return FALSE if(isopenturf(our_turf)) var/turf/open/open_turf = our_turf @@ -142,7 +139,7 @@ var/breath_moles = 0 if(environment) - breath_moles = environment.total_moles()*BREATH_PERCENTAGE + breath_moles = environment.total_moles() * BREATH_PERCENTAGE breath = loc.remove_air(breath_moles) else //Breathe from loc as obj again diff --git a/monkestation/code/modules/liquids/liquid_pump.dm b/monkestation/code/modules/liquids/liquid_pump.dm index c10382011014..353c9ad557fc 100644 --- a/monkestation/code/modules/liquids/liquid_pump.dm +++ b/monkestation/code/modules/liquids/liquid_pump.dm @@ -67,9 +67,7 @@ var/target_siphon_amt = (T.liquids.liquid_group.total_reagent_volume * pump_speed_percentage) + pump_speed_flat if(target_siphon_amt > free_space) target_siphon_amt = free_space - var/datum/reagents/tempr = T.liquids.take_reagents_flat(target_siphon_amt) - tempr.trans_to(reagents, tempr.total_volume) - qdel(tempr) + T.liquids.liquid_group.transfer_to_atom(src, target_siphon_amt) return /obj/structure/liquid_pump/update_icon()