/*

DO NOT EDIT THIS FILE!

This file is mostly for making objects appear as they do in-game, like trees and teleports.

*/

world
	New()
		..()
		buildup_all()

proc
	spinning(atom/C,speed=2)
		animate(C, transform = turn(matrix(), 120), time = speed, loop = -1)
		animate(transform = turn(matrix(), 240), time = speed)
		animate(transform = null, time = speed)

client
	perspective=MOB_PERSPECTIVE|EDGE_PERSPECTIVE
	New()
		spawn()
			time=new
			make_all_trees()

		..()

	Move(loc,dir)
		..()
		check_trees(mob)

mob
	combat
		icon='base male normal 2.dmi'
		layer=7
		Login()
			..()
			gen_aftermove(usr)

proc
	check_trees(mob/combat/user)
		for(var/obj/placeable/trees/Z in view(8,user))
			Z.check_me()
	gen_aftermove(mob/combat/user)
		wo_eyes(user)
		reg_weatherse(user)
		reg_weatherscreen(user)
		update_music(user)