mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Blobs now randomly pick a random turf without obstructions in maintenance, instead of from a pre-determined list of locations. Blobs also now log their spawn location, which admins can use to jump to it. Space vines and nuclear discs have been updated to use the same mechanics.
15 lines
359 B
Plaintext
15 lines
359 B
Plaintext
/proc/all_predicates_true(var/input, var/list/predicates)
|
|
for(var/i = 1 to predicates.len)
|
|
if(!call(predicates[i])(input))
|
|
return FALSE
|
|
return TRUE
|
|
|
|
/proc/any_predicate_true(var/input, var/list/predicates)
|
|
if(!predicates.len)
|
|
return TRUE
|
|
|
|
for(var/i = 1 to predicates.len)
|
|
if(call(predicates[i])(input))
|
|
return TRUE
|
|
return FALSE
|