mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 02:16:05 +00:00
Remember if your scrolling though the list and something is unchecked it should almost certainly be checked. Simple animals moved over to the actual mob code area and out of the defines. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2868 316c924e-a436-60f5-8080-3fe189b3f50e
13 lines
328 B
Plaintext
13 lines
328 B
Plaintext
var/list/prob_G_list = list()
|
|
|
|
/proc/probG(var/define,var/everyother)
|
|
if(prob_G_list["[define]"])
|
|
prob_G_list["[define]"] += 1
|
|
if(prob_G_list["[define]"] == everyother)
|
|
prob_G_list["[define]"] = 0
|
|
return 1
|
|
else
|
|
(prob_G_list["[define]"]) = 0
|
|
(prob_G_list["[define]"]) = rand(1,everyother-1)
|
|
return 0
|