From 211fd3c7fbeda92c4b34278df9b62683b659ed92 Mon Sep 17 00:00:00 2001 From: DGamerL <108773801+DGamerL@users.noreply.github.com> Date: Wed, 26 Jun 2024 22:40:10 +0200 Subject: [PATCH] Removes meh proc (#26044) --- code/__HELPERS/mob_helpers.dm | 13 ------------- code/game/machinery/doors/airlock.dm | 6 +++--- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/code/__HELPERS/mob_helpers.dm b/code/__HELPERS/mob_helpers.dm index 86d883626db..88668d23bc0 100644 --- a/code/__HELPERS/mob_helpers.dm +++ b/code/__HELPERS/mob_helpers.dm @@ -493,19 +493,6 @@ GLOBAL_LIST_EMPTY(do_after_once_tracker) if(H.dna && istype(H.dna.species, species_datum)) . = TRUE -/proc/spawn_atom_to_turf(spawn_type, target, amount, admin_spawn=FALSE, list/extra_args) - var/turf/T = get_turf(target) - if(!T) - CRASH("attempt to spawn atom type: [spawn_type] in nullspace") - - var/list/new_args = list(T) - if(extra_args) - new_args += extra_args - - for(var/j in 1 to amount) - var/atom/X = new spawn_type(arglist(new_args)) - X.admin_spawned = admin_spawn - /proc/admin_mob_info(mob/M, mob/user = usr) if(!ismob(M)) to_chat(user, "This can only be used on instances of type /mob") diff --git a/code/game/machinery/doors/airlock.dm b/code/game/machinery/doors/airlock.dm index e524f50d8c2..c1246041050 100644 --- a/code/game/machinery/doors/airlock.dm +++ b/code/game/machinery/doors/airlock.dm @@ -1063,7 +1063,7 @@ GLOBAL_LIST_EMPTY(airlock_emissive_underlays) security_level = AIRLOCK_SECURITY_NONE modify_max_integrity(normal_integrity) damage_deflection = AIRLOCK_DAMAGE_DEFLECTION_N - spawn_atom_to_turf(/obj/item/stack/sheet/plasteel, user.loc, 1) + new /obj/item/stack/sheet/plasteel(get_turf(user)) update_icon() else if(panel_open && security_level == AIRLOCK_SECURITY_PLASTEEL_O_S) to_chat(user, "You start removing outer layer of shielding...") @@ -1073,7 +1073,7 @@ GLOBAL_LIST_EMPTY(airlock_emissive_underlays) user.visible_message("[user] removes \the [src]'s shielding.", "You remove \the [src]'s shielding.") security_level = AIRLOCK_SECURITY_PLASTEEL_I - spawn_atom_to_turf(/obj/item/stack/sheet/plasteel, user.loc, 1) + new /obj/item/stack/sheet/plasteel(get_turf(user)) else try_to_crowbar(user, I) @@ -1127,7 +1127,7 @@ GLOBAL_LIST_EMPTY(airlock_emissive_underlays) "You cut through \the [src]'s shielding.", "You hear welding.") security_level = AIRLOCK_SECURITY_NONE - spawn_atom_to_turf(/obj/item/stack/sheet/metal, user.loc, 2) + new /obj/item/stack/sheet/metal(get_turf(user), 2) if(AIRLOCK_SECURITY_PLASTEEL_O) to_chat(user, "You begin cutting the outer layer of shielding...") if(!I.use_tool(src, user, 40, volume = I.tool_volume))