Changes all .len to length() where applicable (#25174)

* Globals work

* Double access works

* All other things

* Revert "All other things"

This reverts commit 6574442eb6.

* More changes that compile and work

* IT WORKS AAAAAA

* Changes even more .len to length()

* Apply suggestions from code review

* Update code/datums/mind.dm

* Update code/__HELPERS/sorts/InsertSort.dm

Co-authored-by: Deniz <66401072+Oyu07@users.noreply.github.com>

* Update code/__HELPERS/sanitize_values.dm

Co-authored-by: Deniz <66401072+Oyu07@users.noreply.github.com>

---------

Co-authored-by: FunnyMan3595 (Charlie Nolan) <funnyman@google.com>
Co-authored-by: Deniz <66401072+Oyu07@users.noreply.github.com>
This commit is contained in:
DGamerL
2024-04-19 19:32:09 +02:00
committed by GitHub
parent bdd417ada0
commit bad8b31afa
369 changed files with 1162 additions and 1163 deletions
@@ -37,7 +37,7 @@
return
var/list/L = get_destinations(user)
if(!L.len)
if(!length(L))
to_chat(user, "<span class='notice'>[src] found no beacons in the world to anchor a wormhole to.</span>")
return
var/chosen_beacon = pick(L)
+1 -1
View File
@@ -24,7 +24,7 @@ GLOBAL_LIST_EMPTY(total_extraction_beacons)
if(EP.beacon_network in beacon_networks)
possible_beacons += EP
if(!possible_beacons.len)
if(!length(possible_beacons))
to_chat(user, "There are no extraction beacons in existence!")
return
@@ -139,7 +139,7 @@
if(O.air)
var/datum/gas_mixture/G = O.air
G.copy_from(O.air)
if(prob(florachance) && NewFlora.len && !is_blocked_turf(O))
if(prob(florachance) && length(NewFlora) && !is_blocked_turf(O))
var/atom/Picked = pick(NewFlora)
new Picked(O)
continue
+1 -1
View File
@@ -192,7 +192,7 @@
generate_mineral(alloy.build_path)
/obj/machinery/mineral/processing_unit/proc/can_smelt(datum/design/D)
if(D.make_reagents.len)
if(length(D.make_reagents))
return FALSE
var/build_amount = SMELT_AMOUNT
+1 -1
View File
@@ -195,7 +195,7 @@
O.forceMove(src)
/mob/living/simple_animal/hostile/mining_drone/proc/DropOre(message = 1)
if(!contents.len)
if(!length(contents))
if(message)
to_chat(src, "<span class='warning'>You attempt to dump your stored ore, but you have none.</span>")
return