From 815de9c6ece8224232c474d94891a4993ec4f009 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D1=80=D0=BA?= Date: Tue, 27 Feb 2024 16:58:10 +0500 Subject: [PATCH] =?UTF-8?q?=D0=94=D1=80=D0=BE=D0=BD=D1=8B=20=D1=82=D0=B5?= =?UTF-8?q?=D0=BF=D0=B5=D1=80=D1=8C=20=D0=B8=D0=B7=D0=BD=D0=B0=D1=87=D0=B0?= =?UTF-8?q?=D0=BB=D1=8C=D0=BD=D0=BE=20=D0=B0=D0=B3=D1=80=D0=B5=D1=81=D1=81?= =?UTF-8?q?=D0=B8=D0=B2=D0=BD=D1=8B=D0=B5.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../simple_animal/hostile/retaliate/drone.dm | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/code/modules/mob/living/simple_animal/hostile/retaliate/drone.dm b/code/modules/mob/living/simple_animal/hostile/retaliate/drone.dm index de88ef4f09e0..36c15871dfdd 100644 --- a/code/modules/mob/living/simple_animal/hostile/retaliate/drone.dm +++ b/code/modules/mob/living/simple_animal/hostile/retaliate/drone.dm @@ -29,7 +29,6 @@ faction = list("malf_drone") deathmessage = "suddenly breaks apart." del_on_death = 1 - var/passive_mode = TRUE // if true, don't target anything. /mob/living/simple_animal/hostile/malf_drone/Initialize(mapload) . = ..() @@ -38,18 +37,11 @@ /mob/living/simple_animal/hostile/malf_drone/Process_Spacemove(check_drift = 0) return 1 -/mob/living/simple_animal/hostile/malf_drone/ListTargets() - if(passive_mode) - return list() - return ..() - /mob/living/simple_animal/hostile/malf_drone/AttackingTarget() OpenFire(target) // prevents it pointlessly nuzzling its target in melee if its cornered /mob/living/simple_animal/hostile/malf_drone/update_icons() - if(passive_mode) - icon_state = "drone_dead" - else if(health / maxHealth > 0.9) + if(health / maxHealth > 0.9) icon_state = "drone3" else if(health / maxHealth > 0.7) icon_state = "drone2" @@ -60,7 +52,6 @@ /mob/living/simple_animal/hostile/malf_drone/adjustHealth(damage, updating_health) do_sparks(3, 1, src) - passive_mode = FALSE update_icons() . = ..() // this will handle finding a target if there is a valid one nearby @@ -73,11 +64,9 @@ /mob/living/simple_animal/hostile/malf_drone/proc/scramble_settings() if(prob(50)) do_sparks(3, 1, src) - passive_mode = !passive_mode - if(passive_mode) - visible_message("[src] retracts several targetting vanes.") - if(target) - LoseTarget() + visible_message("[src] retracts several targetting vanes.") + if(target) + LoseTarget() else visible_message("[src] suddenly lights up, and additional targetting vanes slide into place.") update_icons()