This commit is contained in:
Ghom
2020-11-02 17:33:18 -03:00
committed by Dip
parent 70f60a02ab
commit eeb7b709bd
+6
View File
@@ -381,6 +381,12 @@
i++
return i
/proc/count_occurences_of_value(list/L, val, limit) //special thanks to salmonsnake
. = 0
for (var/i in 1 to limit)
if (L[i] == val)
.++
/proc/find_record(field, value, list/L)
for(var/datum/data/record/R in L)
if(R.fields[field] == value)