mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Two random optimizations (#30759)
* There's no need to check those here because use_power already has to * is_type_in_list with a temporary list is way more expensive than a naive istype loop, make it static
This commit is contained in:
@@ -251,9 +251,6 @@ Class Procs:
|
||||
qdel(src)
|
||||
|
||||
/obj/machinery/proc/auto_use_power()
|
||||
if(!powered(power_channel) && !connected_cell)
|
||||
return 0
|
||||
|
||||
switch (use_power)
|
||||
if (1)
|
||||
use_power(idle_power_usage, power_channel)
|
||||
|
||||
@@ -1815,7 +1815,7 @@ Thanks.
|
||||
block = check_contact_sterility(FEET)
|
||||
bleeding = check_bodypart_bleeding(FEET)
|
||||
|
||||
var/list/viral_cleanable_types = list(
|
||||
var/static/list/viral_cleanable_types = list(
|
||||
/obj/effect/decal/cleanable/blood,
|
||||
/obj/effect/decal/cleanable/mucus,
|
||||
/obj/effect/decal/cleanable/vomit,
|
||||
|
||||
Reference in New Issue
Block a user