mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
Optimize a couple things
This commit is contained in:
@@ -111,8 +111,7 @@ GLOBAL_LIST_EMPTY(all_blobs)
|
||||
|
||||
shuffle_inplace(blobs_to_affect)
|
||||
|
||||
for(var/L in blobs_to_affect)
|
||||
var/obj/structure/blob/B = L
|
||||
for(var/obj/structure/blob/B as anything in blobs_to_affect)
|
||||
if(B.faction != faction)
|
||||
continue
|
||||
|
||||
|
||||
@@ -197,8 +197,7 @@ var/list/blob_cores = list()
|
||||
if(!difficulty_threshold)
|
||||
return
|
||||
var/list/valid_types = list()
|
||||
for(var/thing in subtypesof(/datum/blob_type))
|
||||
var/datum/blob_type/BT = thing
|
||||
for(var/datum/blob_type/BT as anything in subtypesof(/datum/blob_type))
|
||||
if(initial(BT.difficulty) > difficulty_threshold) // Too hard.
|
||||
continue
|
||||
if(initial(BT.difficulty) < difficulty_floor) // Too easy.
|
||||
|
||||
Reference in New Issue
Block a user