mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 03:25:49 +01:00
Changes over all instances of new/list() to something more sensible (#25569)
Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
|
||||
/datum/ai_laws/proc/laws_to_state()
|
||||
sort_laws()
|
||||
var/list/statements = new()
|
||||
var/list/statements = list()
|
||||
for(var/datum/ai_law/law in sorted_laws)
|
||||
if(get_state_law(law))
|
||||
statements += law
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
permeability_mod = 0.75
|
||||
severity = MINOR
|
||||
/// A mapping of `num2text(SLOT_HUD_XYZ)` -> item path
|
||||
var/list/magic_fashion = new
|
||||
var/list/magic_fashion = list()
|
||||
|
||||
|
||||
/datum/disease/wizarditis/New()
|
||||
@@ -62,7 +62,7 @@
|
||||
return // Woe, wizard xeno upon ye
|
||||
|
||||
// Which slots can we replace?
|
||||
var/list/eligible_slot_IDs = new
|
||||
var/list/eligible_slot_IDs = list()
|
||||
for(var/slot in magic_fashion)
|
||||
var/slot_ID = text2num(slot) // Convert back to numeric defines
|
||||
|
||||
|
||||
+2
-2
@@ -1707,8 +1707,8 @@
|
||||
|
||||
S.team = team
|
||||
|
||||
var/list/obj/effect/landmark/abductor/agent_landmarks = new
|
||||
var/list/obj/effect/landmark/abductor/scientist_landmarks = new
|
||||
var/list/obj/effect/landmark/abductor/agent_landmarks = list()
|
||||
var/list/obj/effect/landmark/abductor/scientist_landmarks = list()
|
||||
agent_landmarks.len = 4
|
||||
scientist_landmarks.len = 4
|
||||
for(var/obj/effect/landmark/abductor/A in GLOB.landmarks_list)
|
||||
|
||||
@@ -143,7 +143,7 @@
|
||||
/proc/select_recipe(list/datum/recipe/available_recipes, obj/obj, exact = INGREDIENT_CHECK_EXACT, list/ignored_items = null)
|
||||
if(!exact)
|
||||
exact = -1
|
||||
var/list/datum/recipe/possible_recipes = new
|
||||
var/list/datum/recipe/possible_recipes = list()
|
||||
for(var/datum/recipe/recipe in available_recipes)
|
||||
if(recipe.check_reagents(obj.reagents) == exact && recipe.check_items(obj, ignored_items) == exact)
|
||||
possible_recipes += recipe
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
playsound(get_turf(user), sound1, 50, TRUE)
|
||||
|
||||
for(var/mob/living/target in targets)
|
||||
var/list/turfs = new/list()
|
||||
var/list/turfs = list()
|
||||
for(var/turf/T in range(target,outer_tele_radius))
|
||||
if(T in range(target,inner_tele_radius)) continue
|
||||
if(isspaceturf(T) && !include_space) continue
|
||||
|
||||
Reference in New Issue
Block a user