From 563219e2bf0cbc010d69bb50fc82619a2530bdf3 Mon Sep 17 00:00:00 2001 From: Bierkraan Date: Wed, 15 May 2024 21:38:34 +0200 Subject: [PATCH 1/2] Oops --- code/game/objects/items/devices/drone.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/objects/items/devices/drone.dm b/code/game/objects/items/devices/drone.dm index 99c5cfc6e5..86b1784c1d 100644 --- a/code/game/objects/items/devices/drone.dm +++ b/code/game/objects/items/devices/drone.dm @@ -39,7 +39,7 @@ return /obj/item/drone_controller/dropped() - if (controller.using_drone) + if (controller) controller.unset_using_drone(src) ..() From 9c6de8c26fd7c6da30d9475019741f404d31df10 Mon Sep 17 00:00:00 2001 From: Bierkraan Date: Wed, 15 May 2024 21:59:36 +0200 Subject: [PATCH 2/2] Update drones to be less tanky --- code/game/objects/items/devices/drone.dm | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/code/game/objects/items/devices/drone.dm b/code/game/objects/items/devices/drone.dm index 86b1784c1d..90bddb064b 100644 --- a/code/game/objects/items/devices/drone.dm +++ b/code/game/objects/items/devices/drone.dm @@ -33,9 +33,9 @@ /obj/item/drone_controller/proc/cut_connection() if(controller) + to_chat(controller, SPAN_NOTICE("The connection to \the [connected_drone] has been lost.")) connected_drone = null controller.unset_using_drone(src) - to_chat(controller, SPAN_NOTICE("The connection to \the [connected_drone] has been lost.")) return /obj/item/drone_controller/dropped() @@ -114,7 +114,13 @@ health = 0 visible_message(SPAN_DANGER("\The [src] took too much damage and explodes!")) do_special() - return + else if (health <= 50 && !broken) + if (prob(5)) + broken = TRUE + visible_message(SPAN_DANGER("\The [src] breaks down!")) + if (connected_controller) + connected_controller.is_moving = FALSE + return /obj/structure/drone/ex_act(severity) switch(severity) @@ -132,7 +138,7 @@ try_destroy() /obj/structure/drone/bullet_act(var/obj/item/projectile/proj) - health -= proj.damage * 0.01 + health -= proj.damage * 0.1 visible_message(SPAN_DANGER("\The [src] is hit by \the [proj.name]!")) try_destroy() @@ -212,11 +218,10 @@ /obj/structure/drone/goliath name = "Goliath SdKfz. 302" desc = "The SdKfz. 302, also known as the Goliath, is a remote-controlled tracked mine carrying either 60 or 100 kg of high explosives. It is used for destroying tanks, disrupting dense infantry formations, and the demolition of buildings or bridges." - movement_delay = 4 + movement_delay = 4.5 has_special = TRUE heavy_armor_penetration = 40 devastation_range = 2 heavy_impact_range = 3 light_impact_range = 5 flash_range = 6 -