fixes this comment (#21730)

This commit is contained in:
Contrabang
2023-07-20 19:51:30 -05:00
committed by GitHub
parent 851be41a92
commit 3e7f262a13
+6 -1
View File
@@ -226,7 +226,12 @@
result = first ^ second
return result
//Pretends to pick an element based on its weight but really just seems to pick a random element.
/**
* Picks an element based on its weight.
* L - The input list
*
* example: list("a" = 1, "b" = 2) will pick "b" 2/3s of the time
*/
/proc/pickweight(list/L)
var/total = 0
var/item