From 549f7813e29a335e94f39c97b96f6b3b4697fd8f Mon Sep 17 00:00:00 2001 From: Penelope Haze Date: Sat, 21 Sep 2024 14:37:10 -0400 Subject: [PATCH] Fix invalid arguments to add_overlay --- code/modules/hydroponics/seed_packets.dm | 2 +- code/modules/integrated_electronics/core/detailer.dm | 2 +- code/modules/projectiles/guns/magnetic/magnetic.dm | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/code/modules/hydroponics/seed_packets.dm b/code/modules/hydroponics/seed_packets.dm index 3addc040701..aca1014088d 100644 --- a/code/modules/hydroponics/seed_packets.dm +++ b/code/modules/hydroponics/seed_packets.dm @@ -72,7 +72,7 @@ if(is_seeds) underlays += overlay_image(seed_mask_icon, "seed-mask", seed.get_trait(TRAIT_PLANT_COLOUR), RESET_COLOR) else - add_overlay(overlay_image(seed_mask_icon, "spore-mask"), null, RESET_COLOR) + add_overlay(overlay_image(seed_mask_icon, "spore-mask", null, RESET_COLOR)) update_strings(is_seeds) /obj/item/seeds/proc/update_strings(is_seeds) diff --git a/code/modules/integrated_electronics/core/detailer.dm b/code/modules/integrated_electronics/core/detailer.dm index 79c81561699..302140e38ce 100644 --- a/code/modules/integrated_electronics/core/detailer.dm +++ b/code/modules/integrated_electronics/core/detailer.dm @@ -39,7 +39,7 @@ /obj/item/integrated_electronics/detailer/on_update_icon() . = ..() - add_overlay('icons/obj/assemblies/electronic_tools.dmi', "detailer-color", detail_color) + add_overlay(overlay_image('icons/obj/assemblies/electronic_tools.dmi', "detailer-color", detail_color)) /obj/item/integrated_electronics/detailer/attack_self(mob/user) var/color_choice = input(user, "Select color.", "Assembly Detailer") as null|anything in color_list diff --git a/code/modules/projectiles/guns/magnetic/magnetic.dm b/code/modules/projectiles/guns/magnetic/magnetic.dm index 3fb228c6ccc..06e3c1c0951 100644 --- a/code/modules/projectiles/guns/magnetic/magnetic.dm +++ b/code/modules/projectiles/guns/magnetic/magnetic.dm @@ -69,19 +69,19 @@ if(cell) add_overlay("[icon_state]_cell") if(capacitor) - add_overlay(icon, "[icon_state]_capacitor") + add_overlay("[icon_state]_capacitor") if(!cell || !capacitor) - add_overlay(icon, "[icon_state]_red") + add_overlay("[icon_state]_red") else if(capacitor.charge < power_cost) - add_overlay(icon, "[icon_state]_amber") + add_overlay("[icon_state]_amber") else - add_overlay(icon, "[icon_state]_green") + add_overlay("[icon_state]_green") if(loaded) - add_overlay(icon, "[icon_state]_loaded") + add_overlay("[icon_state]_loaded") var/obj/item/magnetic_ammo/mag = loaded if(istype(mag)) if(mag.remaining) - add_overlay(icon, "[icon_state]_ammo") + add_overlay("[icon_state]_ammo") /obj/item/gun/magnetic/proc/show_ammo(var/mob/user) if(loaded)