Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /obj/spacepod/proc/get_active_part(var/num = 1)
- var/first
- var/second
- var/third
- var/fourth
- switch(dir)
- if(NORTH)
- first = get_step(src, NORTH)
- second = get_step(first,EAST)
- third = get_step(src, EAST)
- fourth = get_turf(src)
- if(SOUTH)
- first = get_turf(src)
- second = get_step(first,EAST)
- third = get_step(src, NORTH)
- fourth = get_step(second, NORTH)
- if(EAST)
- first = get_turf(src)
- first = get_step(first, EAST)
- second = get_step(first,NORTH)
- third = get_step(first, WEST)
- fourth = get_step(second, WEST)
- if(WEST)
- first = get_turf(src)
- second = get_step(first,NORTH)
- third = get_step(first, EAST)
- fourth = get_step(second, EAST)
- switch(num)
- if(1)
- return first
- if(2)
- return second
- if(3)
- return third
- if(4)
- return fourth
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement