ID:149785
 
i am trying to make it so that you can use a shovel to dig a hole. i figured that out using an underlay proc similar to the one in Sariats explosion demo. that code is ...

obj/shovel
icon = 'shovel.dmi'
verb
Shovel()
UnEarth()

obj/dirt
icon = 'dirt.dmi'

proc
UnEarth()
for (var/turf/X in range(src,0))
X.underlays+=/obj/dirt

That part works fine. It is the next part that is difficult. I want to make it so that now I can plant things in the new hole. I tried this with an overlay proc but then i could plant the seeds everywhere. I want it so that it cna only be planted in the wholes. I tried a few things but I was getting nowhere. If someone could help that would be great.