proc
NewVillage(mob/owner)
var/randomX = rand(1,world.maxx)
var/randomY = rand(1,world.maxy)
var/obj/village/NewVillage = new
NewVillage.loc = locate(randomX,randomY,1)
for(var/obj/O in oview(NewVillage,0))
del(O)
usr.loc = locate(NewVillage.x,NewVillage.y,NewVillage.z)
proc/randomizeMap()
for(var/turf/T in world)
var/random = rand(1,100)
if(random<=8)
else if(random<=92)
var/obj/tree/Tr = new(T)
Tr.icon = Tr.icon
else
var/obj/mountains/M = new(T)
M.icon = M.icon
Problem description:
Whenever I call the newvillage proc, it doesnt create a new village it just moves the old one to the new location.