From 8568b20f5cbc6e86e24c2404351205cb139bb1c5 Mon Sep 17 00:00:00 2001 From: p9en66vudttmst4 Date: Thu, 13 Jul 2023 20:02:00 +0200 Subject: [PATCH] Reverts 75% chance change. Me and ihatethisengine big dumb dumb. Code adjustments. --- code/modules/mob/living/carbon/xenomorph/castes/Carrier.dm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/code/modules/mob/living/carbon/xenomorph/castes/Carrier.dm b/code/modules/mob/living/carbon/xenomorph/castes/Carrier.dm index 2f6d0c6ddb57..cfde3337f030 100644 --- a/code/modules/mob/living/carbon/xenomorph/castes/Carrier.dm +++ b/code/modules/mob/living/carbon/xenomorph/castes/Carrier.dm @@ -172,7 +172,7 @@ /mob/living/carbon/xenomorph/carrier/death(cause, gibbed) . = ..(cause, gibbed) if(.) - var/chance = .75 + var/chance = 75 //75% to drop an egg or hugger. if(mutation_type == CARRIER_EGGSAC) visible_message(SPAN_XENOWARNING("[src] throes as its eggsac bursts into a mess of acid!")) playsound(src.loc, 'sound/effects/alien_egg_burst.ogg', 25, 1) @@ -187,14 +187,13 @@ step_away(hugger, src, 1) var/eggs_dropped = FALSE - while (eggs_cur > 0) + for(var/i in 1 to eggs_cur) if(prob(chance)) new /obj/item/xeno_egg(loc, hivenumber) eggs_cur-- eggs_dropped = TRUE - update_icons() - if(eggs_dropped == TRUE) + if(eggs_dropped == TRUE) //Checks whether or not to announce egg drop. xeno_message(SPAN_XENOANNOUNCE("[src] has dropped some precious eggs!"), 2, hive.hivenumber) /mob/living/carbon/xenomorph/carrier/get_status_tab_items()