From 1ef4d825e5cdeb7232b4278472e0a7456ab70b56 Mon Sep 17 00:00:00 2001 From: DGamerL <108773801+DGamerL@users.noreply.github.com> Date: Mon, 30 Dec 2024 15:40:54 +0100 Subject: [PATCH] Wow this sure is bad code (#27769) --- .../hostile/retaliate/combat_drone.dm | 97 +++++++++---------- 1 file changed, 47 insertions(+), 50 deletions(-) diff --git a/code/modules/mob/living/simple_animal/hostile/retaliate/combat_drone.dm b/code/modules/mob/living/simple_animal/hostile/retaliate/combat_drone.dm index b8dacf1f796..bc0df94d624 100644 --- a/code/modules/mob/living/simple_animal/hostile/retaliate/combat_drone.dm +++ b/code/modules/mob/living/simple_animal/hostile/retaliate/combat_drone.dm @@ -146,64 +146,61 @@ K.amount = pick(1, 2, 3, 4) K.update_icon() - //also drop dummy circuit boards deconstructable for research (loot) - var/obj/item/circuitboard/C - - //spawn 1-4 boards of a random type - var/spawnees = 0 + // Spawn 1-4 boards of a random type var/num_boards = rand(1, 4) - var/list/options = list(1, 2, 4, 8, 16, 32, 64, 128, 256, 512) - for(var/i=0, i