mob
proc
season()
if(!season)
world << "Winter arrives with snow from the skies"
season = 1
for(var/turf/T in world)
if(T.icon_state == "grass")
T.overlays += new/turf/envoirment/snowing
sleep(200)
T.icon_state = "snowy"
sleep(900)
season()
if(season)
world << "Summer arrives with the sun shinning brightly"
season = 0
for(var/turf/envoirment/grass/T in world)
if(T.icon_state == "snowy")
T.overlays = null
sleep(100)
T.icon_state = "grass"
sleep(900)
season()
Problem description:
I get the error below when i use the admin verb to activate the season. I already tried to make it with world creation but that didnt work
runtime error: bad loc
proc name: season (/mob/proc/season)
usr: Mass (/mob)
src: Mass (/mob)
call stack:
Mass (/mob): season()
Mass (/mob): Season()