ID:178356
 
I'm trying to make a proc that when called (for now, just upon world creation) it will randomly populate the word with obj/Herb . This is what I have.
    proc
Herbs()
if(Herbs > 0)
new /obj/Herb(28,28,1)
--Herbs
spawn() Herbs()
The problem is it works completely (if I have it output "test" to the world, it shows all the tests it should) except that the Herbs are not getting created it seems. The 28,28,1 is just what I use for now, so that I can quickly check to see if they are spawned. How can I get the Herbs to spawn correctly?

Nevermind, I fixed it! For those of you who could use this information, I changed the code to...
    proc
Herbs()
if(Herbs > 0)
var/obj/O = new /obj/Herb(28,28,1)
O.loc = locate(28,28,1)
--Herbs
spawn() Herbs()

Now I want to know how I can check the location if it has a dense turf or not.