[MIRROR] Gets rid of = new in object defines (#11075)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-06-15 10:25:06 -07:00
committed by GitHub
parent 7872b8bf3c
commit 2653dac7da
30 changed files with 98 additions and 75 deletions

View File

@@ -246,7 +246,7 @@
/obj/item/blueprints/proc/detect_room_ex(var/turf/first, var/allowedAreas = AREA_SPACE)
if(!istype(first))
return ROOM_ERR_LOLWAT
var/list/turf/found = new
var/list/turf/found = list()
var/list/turf/pending = list(first)
while(pending.len)
if (found.len+pending.len > 300)

View File

@@ -671,7 +671,7 @@
return ROOM_ERR_LOLWAT
if(!visual && forbiddenAreas[first.loc.type] || forbiddenAreas[first.type]) //Is the area of the starting turf a banned area? Is the turf a banned area?
return ROOM_ERR_FORBIDDEN
var/list/turf/found = new
var/list/turf/found = list()
var/list/turf/pending = list(first)
while(pending.len)
if (found.len+pending.len > BP_MAX_ROOM_SIZE)
@@ -828,7 +828,7 @@
to_chat(usr, span_warning("You can not create a room here."))
return
if(get_new_area_type(first.loc) == 1) //Are they in an area they can build? I tried to do this BUILDABLE_AREA_TYPES[first.loc.type] but it refused.
var/list/turf/found = new
var/list/turf/found = list()
var/list/turf/pending = list(first)
while(pending.len)
if (found.len+pending.len > 70)

View File

@@ -35,7 +35,7 @@
for(var/reagent in picked_reagents)
reagents.add_reagent(reagent, picked_reagents[reagent])
var/list/names = new
var/list/names = list()
for(var/datum/reagent/R in reagents.reagent_list)
names += R.name

View File

@@ -67,7 +67,7 @@ var/global/list/default_medbay_channels = list(
var/list/internal_channels
var/datum/radio_frequency/radio_connection
var/list/datum/radio_frequency/secure_radio_connections = new
var/list/datum/radio_frequency/secure_radio_connections
/obj/item/radio/proc/set_frequency(new_frequency)
radio_controller.remove_object(src, frequency)
@@ -76,6 +76,7 @@ var/global/list/default_medbay_channels = list(
/obj/item/radio/Initialize(mapload)
. = ..()
secure_radio_connections = new
if(frequency < RADIO_LOW_FREQ || frequency > RADIO_HIGH_FREQ)
frequency = sanitize_frequency(frequency, RADIO_LOW_FREQ, RADIO_HIGH_FREQ)
set_frequency(frequency)