mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 15:08:02 +01:00
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:
co-authored by
Deniz
FunnyMan3595
parent
bdd417ada0
commit
bad8b31afa
@@ -45,7 +45,7 @@ GLOBAL_LIST_EMPTY(field_generator_fields)
|
||||
. = ..()
|
||||
if(warming_up)
|
||||
. += "+a[warming_up]"
|
||||
if(fields.len)
|
||||
if(length(fields))
|
||||
. += "+on"
|
||||
if(power_level)
|
||||
. += "+p[power_level]"
|
||||
@@ -182,7 +182,7 @@ GLOBAL_LIST_EMPTY(field_generator_fields)
|
||||
|
||||
|
||||
/obj/machinery/field/generator/proc/calc_power()
|
||||
var/power_draw = 2 + fields.len
|
||||
var/power_draw = 2 + length(fields)
|
||||
|
||||
if(draw_power(round(power_draw/2, 1)))
|
||||
check_power_level()
|
||||
@@ -333,11 +333,11 @@ GLOBAL_LIST_EMPTY(field_generator_fields)
|
||||
O.last_warning = world.time
|
||||
|
||||
/obj/machinery/field/generator/shock_field(mob/living/user)
|
||||
if(fields.len)
|
||||
if(length(fields))
|
||||
..()
|
||||
|
||||
/obj/machinery/field/generator/bump_field(atom/movable/AM as mob|obj)
|
||||
if(fields.len)
|
||||
if(length(fields))
|
||||
..()
|
||||
|
||||
#undef FG_UNSECURED
|
||||
|
||||
Reference in New Issue
Block a user